This article introduces the design of a wireless module based on the wireless chip SX1212, which has many advantages such as relatively long transmission distance, high receiving sensitivity, and low working power consumption. Therefore, it is suitable for wireless water and gas meter reading, wireless remote control system, wireless
System circuit design
The system mainly consists of an MCU and SX1212 as shown in Figure 1. The MCU uses ST's low-power single-chip STM8L101F3. The SX1212 communicates with the single-chip using the SPI interface and communicates with the external terminal using the UART interface. Since the highly integrated SX1212 has very few peripheral parts, the key to the design is
the design of the matching circuit of
Figure 1 System circuit design of SX1212
Working mode design
Typical wireless transceiver encoding is shown below.
The preamble is an alternating code of "1010", which is used to synchronize the clock of the destination receiver with the transmitter. In normal mode, the length of the preamble is generally 32 bits. If it works in the power saving mode, the preamble also has the function of waking up the receiver. At this time, the transmitter must send a longer preamble to wake up the receiver in the power saving mode and enter the normal working state. If the receiver is set to wake up once every 1 second, then the receiver wakes up once every 1 second to search for the preamble (tw), and the continuous length is generally 16 bits. The transmitter first transmits a preamble of more than 1 second and then transmits the subsequent synchronization code, etc. This means that in the wake-up cycle, as long as the preamble is found in the channel, the receiver can successfully detect and wake up the receiver under normal circumstances. See Figure 2 for a schematic diagram.
Here we have designed four working modes, see Table 1. These four working modes are switched using the SET_A and SET_B pins of the MCU, and the four modes can be switched to each other.
Table 1: Description of the four working modes
Figure 2: Transmitter in Mode 2, Receiver in Mode 3
[page]
The sleep mode is implemented by software, so that the system interfaces maintain the corresponding level when in sleep mode, and can quickly switch between various states. Since the MCU main clock is generated by an RC oscillator, the start-up time only takes 4uS. The measured time from sleep to wake-up plus wake-up initialization only takes 20uS, which means that when the module is in sleep mode, 20uS after setting the SET_A pin low, data can be input to the module through the UART port. Here we have designed the system to complete the receiving or sending process before entering the power saving mode or sleep mode even if it is set to work in mode 3 or 4. The AUX pin will be set low during the receiving or sending process. Using this feature, when the module is in mode 3 or module 4, the lower computer user sets the SET_A pin low to wake up the module and input data. If you need to sleep, you can immediately set the SET_A pin high without waiting for the module to complete the wireless data transmission. The module will automatically detect the SET_A pin after the data transmission is completed. If it is high, it will enter sleep mode. The user can obtain whether the data transmission is completed by querying the AUX pin.
Figure 3: Connection diagram between module and lower computer
In a battery-powered circuit, the slave module (such as a water meter) can be set to mode 3 normally. When the master module (such as a collector or a copy machine) sends data in mode 2, the slave module wakes up and receives the data. After completion, the AUX pin is used to wake up the lower computer MCU, and then the data is output. After the MCU receives the data, the slave module can be switched to mode 1 to respond to the master module. If the master module receives the response, it can also be switched to mode 1. At this time, both the master and slave modules are in normal mode, and high-speed data transmission can be achieved. If the master module receives the response, there is no subsequent data exchange, and the slave can be switched to mode 3 again in power saving mode, waiting for the next wake-up, and the master module can be switched to mode 4 sleep state.
Because power saving is achieved by periodically waking up from sleep and then waking up again, the power consumption in power saving mode is related to the wake-up cycle and the time (tw) for searching the preamble code each time, as well as the static power consumption of sleep. The wake-up cycle can be set online by the user from 50ms to 5s. The time for searching the preamble code each time is related to the rate of RF transmission, which can also be set. At a rate of 10Kbps, the average wake-up search preamble code time is about 4.5ms.
In power saving mode,
the
Service life =
For example: the battery is a 3.6V/3.6A ER18505 lithium-ion battery, the module includes an MCU receiving current of 3.2mA, and a sleep current of 1.5uA. The RF transmission rate is 10Kbps, and the wake-up cycle is 1SEC, then the battery life is:
Taking into account the battery's self-discharge, capacity differences at different currents, temperature, client MCU sleep power consumption, and several times of use per month, a 3.6V/3.6A ER18505 lithium-ion battery normally has a service life of more than 10 years.
The power saving mode is very suitable for water, gas and heat meters, container information management, data acquisition systems and other occasions where the use is not too frequent but long-term battery operation is required.
Summarize
In some wireless transceiver applications, if battery power is required and the receiving state is required for a long time to ensure real-time response, the only way is to use the timed wake-up reception method. If the battery capacity remains unchanged, if you want to extend the working time, you can only reduce the duty cycle and increase the wireless transceiver rate. However, reducing the duty cycle will directly affect the real-time response, and the sensitivity of wireless reception will generally decrease by 2-3dBm for each doubling of the rate. This directly affects the communication distance. The common single-chip wireless IC receiving current on the market is generally 15-20mA. For example, in systems such as wireless water vapor meters that require batteries to work for 6-10 years, various parameters such as distance, working life, and response time are difficult to choose. The SX1212 launched by SEMTECH innovatively reduces the current to 2.6mA, while the receiving sensitivity, anti-interference, adjacent channel selectivity and other indicators are still high.
At present, the wireless module based on SX1212 has been developed by Shenzhen Anmeitong Co., Ltd. and successfully applied to the collection of wireless water and gas meters. The actual measurement shows that the distance is about 450 meters at 10Kbps and about 600 meters at 2Kbps in an open area. When it is opened once with 1SEC, the water and gas meter data can be collected once with a hand-copied machine in less than 2SEC. If it is used in conjunction with a collector, it can realize fully automatic meter reading. If the hand-copied machine is equipped with GPS, it can realize automatic discovery of surrounding water and gas meters without manual input commands, thereby further improving the meter reading speed. Compared with the traditional manual meter reading, each person can only read 3-4K households per month, and most gas meters have to be read at home at night, which greatly improves efficiency.
Previous article:A brief discussion on the application of LED display technology on highways
Next article:Design and implementation of positioning video and audio collector based on DM642
- Popular Resources
- Popular amplifiers
- Mir T527 series core board, high-performance vehicle video surveillance, departmental standard all-in-one solution
- Akamai Expands Control Over Media Platforms with New Video Workflow Capabilities
- Tsinghua Unigroup launches the world's first open architecture security chip E450R, which has obtained the National Security Level 2 Certification
- Pickering exhibits a variety of modular signal switches and simulation solutions at the Defense Electronics Show
- Parker Hannifin Launches Service Master COMPACT Measuring Device for Field Monitoring and Diagnostics
- Connection and distance: A new trend in security cameras - Wi-Fi HaLow brings longer transmission distance and lower power consumption
- Smartway made a strong appearance at the 2023 CPSE Expo with a number of blockbuster products
- Dual-wheel drive, Intellifusion launches 12TOPS edge vision SoC
- Toyota receives Japanese administrative guidance due to information leakage case involving 2.41 million pieces of user data
- 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
- Vicor engineers invite you to talk about efficient power supply
- What material is the magnetic ring made of? Just look at the color!
- Making a CPU out of a bunch of switches?
- [TI recommended course] #Amplifier design in test and measurement#
- Problems with using printf to print floating point numbers in a single chip microcomputer
- It is easy to travel around the world on your own, travel around the world, live in Korea, live in Korea, travel to the world, travel to the world, move to the top 2.4mm + reach the destination...
- To: Test Engineers! More than 2000 connectors, download a complete 96-page catalog at once!
- Let’s take a look at the performance of this RISC-V MCU with a main frequency of 648M.
- C6455 CSL_EMIF Detailed Explanation
- Application of Single Pair Ethernet in Building Automation