"What is the most popular in 2015? Can wear equipment? Smart home? Or both are all.
As an electronic engineer, you have been a smart product that is your own smart product, which may be "bad street" smart socket? May it be a smart air purifier that chases healthy life? Or can you track the wearable device of sports health data? Or is it a Bluetooth / WiFi audio of two incorrect entertainment? Are you a full mind, but it doesn't start?
In fact, if you carefully study the current intelligent hardware products on the market, although there is a wide variety, the mainstream is just the above, although the program has a thousand autumn, the principle of its essence is basically the same - hardware platform + software app + cloud service Platform, to design an excellent intelligent hardware product, the communication program is the first question to solve, and WiFi is the most used one of the most common communication technology, therefore, set foot in this field. Very much, making the global WiFi module market can be said to be a red sea for greater than seeking.
According to the author understanding, the current mainstream WiFi module is not a characteristic of low power consumption, it is true, this is a very practical problem, and it is also a key factor in the entire system design, but if it maintains a lower work. At the same time, it has an extremely excellent performance advantage. Is that better? If you are working hard, the recently launched QFM-2202a WiFi module in Freescale can solve your urgent needs, and the pavilion network has just got the QFM-BB assessment based on this WiFi module. Board, first briefly understand.
I first saw the QFM-BB development board, you might just felt more complicated, but just so, it seems to be so strange, but when you really understand its function, you will feel that it is too rich, it is a You can let you enjoy the creation of creative development platforms. What is the specific function? Not anxious, here is first selling.
QFM-2202A WIFI module
Let's first look at the model of this model for the QFM-2202A WiFi module, a size of 30mm * 15.3mm, which is much smaller than the WiFi module of Qingke or Hanfeng on the Zhiyun platform recently loved board network. . The entire WiFi module is covered with a shield, and we can only see an I-PEX U.FL interface seat outside.
However, once the shield is opened, the internal circuit is at a glance. QFM-2202a is a built-in wireless network controller module developed by Freescale and Qualcomm and certified, low power cost-effective embedded wireless network controller modules, main hardware architecture Based on Freescale K22F microcontroller + high-pass QCA4002 WiFi chip, as shown below.
QFM-2202A WIFI module features:
Freescale MK22FN512VMP12 microcontroller, ARM Cortex-M4 @ 120MHz, 512KB Flash, 128KB RAM
Qualcomm QCA4002 WiFi chip support IEEE802.11 B / g / N
Standard operating voltage 3.3V, working ambient temperature 0 ° C ~ 85 ° C (MCU: 2.7 ~ 3.6V, QCA4002: 3.14 ~ 3.46V)
Single data stream 1x1, operating frequency band 2.4 GHz
Support Green TX power saving, low power monitor mode
The maximum rate can reach 150 Mbps, 802.11 b / g rate up to 54 Mbps, 802.11n (MCS0-7) rate up to 150 Mbps
Network protocol support IPv4 / IPv6, TCP / UDP, ARP / NDP, DHCPv4, ICMPv6
Security protocol supports WPS, WPA, WPA2, WAPI, WEP, TKIP
Real-time operating system (RTOS): MQX
Internet Software Architecture: Alljoyn
Software Support iOS Homekit Framework & MFI
RSA2048 / SHA-256 encrypted program loader (bootloader)
Upgrade the built-in firmware program via Wi-Fi or UART
From the above features, we can understand that the QFM-2202A WiFi module integrates a powerful ARM Cortex-M4-based Kinetis MCU in a smaller size package to support many peripheral resources (see Freescale MK22FN512VMP12) Microcontroller), and integrate Wi-Fi Mac / BB / RF / PA / LNA, onboard antenna, QFM-2202A WiFi module also reserves the MFI interface and built-in MFI, HOMEKIT protocol stack, which can be implemented with Apple iOS system Communication, part of the interface of the module is shown below
One thing is to pay attention to, MFI, homekit's protocol stack is only the WiFi module with model QFM-2202A, and Freescale also provides WiFi module QFM-2202 without MFI function, except for both Differences, of course, there is also a price, QFM-2202 WiFi module 6.99 knife / film @ 10K PCS, and QFM-2202A 7.29 Knife / film @ 10K PCS.
Overall, QFM-2202A WiFi modules are in a leading performance in their similar products. At the same time, the author also made a comparison with several WiFi modules (Murata Sn8200, Han Feng HF-LPB100, Qingke EMW3162) previously evaluated, as shown in the following table.
(Click on the picture to enlarge)
It can be seen that the Freescale QFM2202A is in performance, module size, or the power consumption in large data output mode, and the standby power consumption can be in a leading position, and we also see the EMW3162 of Qingke in terms of sensitivity, 20kbps The power consumption and transmit power in the transmission mode have a certain advantage, but although the IEEE802.11b / g / n, EMW3162 maximum transmission rate is only supported by 72Mbps, and the 150Mbps of Freescale QFM-2202A is far, Moreover, the power consumption of EWM3162 in large data transmission mode is no longer advantageous. (Next)
Recommended development board
AMW004-E03 development board provides a quick and easy assessment of developing AMW004 WiFi / 802.11 development tools
Broadcom's BCM943362WCD4_EVB development kit is a full-featured evaluation board for development systems Wi-Fi connection design
QFM2202-BB
I initially learned the QFM-2202A WiFi module, and we will return to the QFM2202-BB card to see some of the features of the onboard, as shown in the figure below, which products can be design and expand.
QFM2202-BB board resources:
Bluetooth 2.1: RDA5876A
BLE module: EM9301
Infrared remote control
220V voltage control through relay
HIFI audio codec: Realtekalc5642-CG
PM2.5 Monitoring Interface: Support SharPGP2Y1010AU0F
Three-axis accelerometer: freecale mma8563fcr1
MicroSD card
Mono LCD: 128 * 64 pixels
Lithium battery interface
Onboard OpenSDA debugger
Temperature / Humidity Sensor: Sensirion SHTXX
From the resource of the QFM2202-BB card, the DIY functionality that can be implemented is really a lot. Whether it is a popular smart home series (such as smart socket, infrared remote control, air purifier, Bluetooth / WiFi audio, etc.) or wear Equipment series (such as bracelet, pedometer, etc.) can be met, and board is also equipped with WiFi and dual-mode Bluetooth communication, which helps engineers' flexible selection of product communication methods.
Therefore, the QFM2202-BB board is integrated into a development board in the QFM2202-BB board, which is integrated into a development board. It is convenient for engineers to develop, and the entire board can be implemented as shown below.
Power-on development
Carefully distinguish the QFM-2202A WiFi module and the QFM2202-BB backplane we can find that the bottom plate is actually an extension board for peripheral functions, and QFM-2202a is the core part of the entire board, including functional control WiFi communication, The program running the board is also directly downloaded to the Flash of the Freescale K22F microcontroller in the QFM-2202A WiFi module, and runs the Freescale MQX real-time operating system.
With basic understanding, we can drive on the board. Since the author's QFM2202-BB board is a project board, it is not suitable for the preliminary use guide, and it is not clear. What is the interior of the card, it seems to re-download a new program.
Ready to work:
Development environment is built, download and install IDE tool IAR (and require version 7.2 or more),
Download and install MQX RTOS real-time operating system source installation installer (download address)
Download QFM2202-BB WiFi module development package patch (download address)
One thing to pay special attention, the downloaded MQX RTOS source installer must be MQX RTOS 4.1.0, the actual download file name is fslmqxos_4_1_0_ga.exe, as shown below.
This is very important, because the latest MQX RTOS 4.2.0 of the official website may lead to many engineers to download the latest, and the latest in fact is not applicable to the QFM-2202A WiFi module, and there will be errors when compiling. (Next)
Recommended development board
RN-XV-RD2 is a dual relay IO reference design reference RN171XV series wireless module
ISP Wi-Fi Module Programmer provides a simple programming interface for network WiFi modules and SOC
After the MQX RTOS 4.1.0 is installed, we will then write the system package patch patch patch of the QFM2202-BB WiFi module to this directory, as shown below.
Under the Demo folder, you can see the project file of 3 demo applications: QCA_K22FSH (Qualcomm QCA4002 Demo Application), AJ_K22FSH (AlljoyN Demo Application), FSL_K22FSH (FREESCALE QFM2202-BB Music Playment), select one of them open Here, here is QCA_K22FSH as an example.
At this time, if your installed IDE tool prompts the following error, it may be that the version is too low, and the installed version 7.2 is required (very important).
If the IAR version is correct, you can enter the IAR work interface soon, as shown in the following figure.
There bsp_k22fsh, mux_k22fsh, psp_k22fsh, rtcs_k22fsh, shell_k22fsh, throughput_demo_k22fsh these different items, these items need to right click in the order shown above ①②③④⑤, select Make, sequentially dependent compilation component throughput_demo under qca_k22fsh project file, and finally right-click THROUGHPUT_DEMO_K22FSH (6), select SET AS ACTIVE, then select Make.
After the completion is completed, you should download it, first connect the development board to the PC, connect the microSDA debugger on the board, as shown below.
Press the system switch on the lower board to work on the board. You can find that the board has been brushed from the J-Link driver on the computer device manager, as shown below.
In fact, Freescale's OpenSDA debugger has several different modes. The settings between the patterns can be referred to the evaluation articles on Freescale FRDM-K22F development boards. There is no more introduction.
Since the board has been installed, we do the corresponding settings directly in the IAR's download settings, select J-Link download, select Use Flash Loader et al., As shown below in the Flash tag.
The IDE tool settings can be downloaded directly, or you can also download and debug, as shown below.
From the user's instruction manual, the throughput_demo_k22fsh routine just downloaded can be said to be the original program of the original board, and we can view the version information of the Wi-Fi module through the serial port, as shown below. (You need to enter the wmiconfig --Version command)
Of course, the Throughput_Demo_k22fsh routine can also achieve functionality of WiFi throughput, power consumption measurement (need to build a corresponding test environment), in addition, the other two programs of the Freescale official routine include the status of the sensor can be displayed by the APP display. The function of the Bluetooth music player, the specific operation step is similar to the above process, and you can refer to the QFM2202 Base Base Based Demo User Guide document to obtain a more detailed description, this article will not be introduced one by one.
summary
This paper introduces a low-power, high-performance WiFi module QFM-2202A, which is a low-power, high-performance WiFi module QFM-2202A and its peripheral function expansion substrates, and its peripheral function expansion substrate QFM2202-BB, and the WiFi module has also become A hot field, and this article introduces the low power consumption and high performance, based on Cortex-M4 master, built-in MFI, homekit protocol stack, supports many peripherals, compared to similar products , Performance, power consumption has a significant advantage, and with Freescale launched QFM2202-BB substrates can greatly reduce the development cycle of smart home, wearable equipment, etc., interested friends must not miss.
Reference
QFM-2202 WiFi module information
MURATA SN8200 WIFI Module Information
Han Feng HF-LPB100 WiFi Module Information
Qingke EMW3162 WiFi Module Information
Recommended development board:
BCM943362WCD4 WiFi / 802.11 Evaluation Board A Functional Comprehensive Estimation Plate for Development System Wi-Fi Connectioncount
RN-XV-RD2 WiFi / 802.11 Development Tool Dual Relay IO Reference Design Quote RN171XV Series Wireless Module
Original declaration: This article is originally created by the panel network, declined! "
Our other product: