WiFi Module Working Principle
1. Basic Structural Components
A typical Wi-Fi module consists of the following parts:
| Component | Function Description |
|---|---|
| RF Unit (Radio Frequency) | Handles wireless signal transmission and reception in 2.4GHz / 5GHz bands |
| Baseband Processor | Performs modulation/demodulation (e.g., OFDM), signal processing, and frame assembly |
| MAC Controller | Manages frame transmission/reception, channel switching, encryption, and power control |
| Interface Controller | Communicates with the host via UART, SDIO, SPI, or USB |
| Antenna (internal/external) | Transmits and receives RF signals, affecting signal range and stability |
| Firmware/Driver Stack | Contains protocol stacks, configuration parameters, and RF control logic |
2. Operating Workflow
The typical operation of a Wi-Fi module follows these steps:
1. Power-On and Initialization
Upon power-up, the module boots its internal firmware, loads default settings, and initializes RF channels, MAC layer, and host communication interfaces.
2. Network Scanning and Connection (STA Mode)
The module scans for nearby Wi-Fi access points (APs) and attempts to connect using predefined SSID and password. After a successful handshake, it obtains an IP address (usually via DHCP).
3. Data Transmission
The host device (e.g., body camera) sends data (such as video streams) to the module via serial or bus interface. The module encapsulates the data using standard protocols (e.g., IP/TCP/UDP/RTSP) and transmits it wirelessly to a router or remote server.
4. Response and Connection Maintenance
The module continuously listens for inbound data (e.g., control commands or status requests) and maintains connection stability through heartbeat monitoring, channel re-selection, and auto-reconnection.
3. Mode Differences: STA vs. AP vs. AP+STA
| Mode | Functional Role | Typical Use Cases |
|---|---|---|
| STA Mode | Acts as a client device connecting to a Wi-Fi network | Evidence upload, remote live video feed |
| AP Mode | Creates its own hotspot for local devices | Real-time preview, configuration, debugging |
| AP + STA | Supports both functions simultaneously | Parallel uploads and local access, hybrid operations |
4. Supported Data Transmission Protocols
For video and data transmission, Wi-Fi modules in body cameras commonly use:
RTMP: Live streaming to platforms (used in advanced models like the S9)
RTSP: Real-time streaming and point-to-point preview
HTTP/HTTPS: Backend file uploads
FTP/SFTP: Server-side evidence storage