User's Manual
HF-A21-SMT Embedded WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com - 57 -
Module 2# Setting:
Works as STA mode; --See “Mode Selection Page”
WAN connection type: Static IP: 10.10.100.100; --See “STA Interface Setting Page”
Network Protocal:TCP/Server, Port ID: 8899; -- See “Application Setting Page”
LAN IP address: 10.10.99.254 (Different net segment with WAN port);
--See “AP Interface Setting Page”
Module 3# Setting:
Works as STA mode; --See “Mode Selection Page”
WAN connection type: Static IP: 10.10.100.101; --See “STA Interface Setting Page”
Network Protocal:TCP/Client, Port ID: 8899; Application IP address: Module 2#‟s WAN
IP address (10.10.100.100); -- See “Application Setting Page”
LAN IP address: 10.10.98.254 (Different net segment with WAN port);
--See “AP Interface Setting Page”
HF-A21-SMT
AP,
LAN IP:10.10.100.254
TCP, Server
8899
HF-A21-SMT
STA,
LAN IP:10.10.98.254
WAN IP: 10.10.100.101
TCP, Client
10.10.100.100: 8899
2#
3#
WIFI
MCUMCU
UARTUART
HF-A21-SMT
1#
WIFI
STA,
LAN IP:10.10.99.254
WAN IP: 10.10.100.100
TCP, Server
8899
Figure 49. Two HF-A21-SMT Modules Connection Through AP
Q6: How to avoid IP address confliction when apply HF-A21-SMT module?
The following address allocation method can avoid the IP address confliction for dynamic and
static IP address mixed application.
Module dynamic IP address range from 100 to 200 for last IP address segment.
Such as default IP: 10.10.100.254. When module works as AP, the IP address module
can allocate to STA is from 10.10.100.100 to 10.10.100.200;
So, if user needs to set static IP for dedicated STA internal network, the available IP address
range can start from 10.10.100.1 to 10.10.100.99.
Q7: PC works as server, all HF-A21-SMT modules works as data acquisition
card and connect with PC, how to configure this application?
Network structure as below figure: Three HF-A21-SMT module setup 3 TCP links with PC server.
Module 1# works as AP and all devices connect to module 1# through WiFi interface;
PC Setting:
IP address: 10.10.100.100;
Network Protocal:TCP/Server, Port ID: 8899;
Module 1# Setting: