Lierda Science and Technology Group LSD4WF-CC3221 Wi-Fi Module User Manual User Manuel x
Lierda Science & Technology Group Co.,Ltd Wi-Fi Module User Manuel x
Users Manual
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
Lierda Science & Technology Group Co., LTD
User’s manual
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
1ProductOverview...................................................................................................................................................1
1.1Features.............................................................................................................................................1
1.2Parameters...................................................................................................................................................1
1.3Applications.................................................................................................................................................1
2HardwareOverview...........................................................................................................................................2
2.1Appearance........................................................................................................................................2
2.2Productstructuresize........................................................................................................................2
2.3DistributionPinDescription...............................................................................................................3
3FunctionalDescription.......................................................................................................................................6
3.1Networkingfeatures..........................................................................................................................6
3.1.1APNetworking...........................................................................................................................7
3.1.2APNetworking...........................................................................................................................7
3.2Passthroughmode.............................................................................................................................7
4Instructionsforuse............................................................................................................................................7
4.1NetworkConnection..........................................................................................................................7
4.1.1SerialPortConfiguration............................................................................................................8
4.2CreatingSocket..................................................................................................................................8
4.2.1CreatingaSocketA.....................................................................................................................8
4.2.2CreatingaSocketB.....................................................................................................................9
4.2.3PassthroughMode...................................................................................................................10
5Warning...........................................................................................................................................................10
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
1
1 ProductOverview
LSD4WF‐3211I5SSisLSDTechnologyCo.,Ltd.developedultra‐low‐powerembeddedWIFImodule,usingthe
industry'slowestpower,high‐performanceembeddedprocessorsWIFInetwork.Integratedhardwaremodulewithin
theMAC,radiotransceiverunit,poweramplificationunit,developedforuserstouseM4coreunitsupports802.11b/
g/nprotocolstandards;LSD4WF‐3211I5SSmodularalow‐powerWIFImodule,canhelpcustomersachieve
productupgradewirelessnetworkcommunicationstothebasicserialcommunication.
1.1 Features
Supports802.11b/g/nprotocolstandards,WPA/WPA2encryption;
supportSmartconfigconfigurationandaAPkeyconfiguration;
integratedTCP/IPprotocolstack,reducingtheprogrammingburden;
containCortexM4core,friendlydevelopmentenvironment;
SimplylinkprovidenetworkprogramminglibraryandM4coredriverlibrary;
providearichperipheralinterfaces,UART/SPI/I2C/I2S/PWM,etc.
lowpowerconsumption,HIB,theoperatingcurrent4ua;
UnderLPDSmode,theoperatingcurrent2ma;
ultra‐smallsizeof23*32mm,surfacemountpackage;
EasytouseIAR/CCScompilerenvironment;
1.2Parameters
optionalexternalinterfaceUART/SPI/I2C/I2S
owninternalnetworkMAC
networkprotocolstandard802.11b/g/n20
2.4Gnetworkoperatingfrequency
transmitpower:802.11b:15dBm+/-1.5dB
802.11g: 11dBm+/-1.5dB
802.11n20: 10dBm+/-1.5dB
Receivingsensitivity:802.11b‐94.5dbm(8%PER)
802.11g‐73dbm(10%PER54M@OFDM)
802.11n‐70dbm(10%PERMCS7)
Undercurrent‐‐HIBmode:4ua;
Undercurrent‐‐IdleConnectmode:2ma(DITM=1);
hardwareencryption:WEP,WPA,WPA2;
antennaconfigurations:on‐boardPCBantennaandexternalantennaonboard;
modulepincount:48pin;
modulesize:23.1*32.8mm;
1.3Applications
SmartHomeApplications
whitegoods
handheldnetworkdevices
wirelessnetworkingapplications
remoteequipmentmonitoring
Address: Li
e
c
o
2 Har
d
2.1 A
p
2.2 P
r
e
rda Building,
o
nsumerwire
l
d
ware
O
p
pearan
r
oduct s
425 Dengyun
l
essproduct
s
O
vervie
w
ce
tructur
e
Road, Hangz
s
w
e
size
hou, China
T
el:05
7
7
1-88800000 Fax:0571-8
9
9
908080
2
2
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
3
2.3 Distribution Pin Description
NO.Networklabel DistributionRemark
1GNDGND
2EXRESETTheexternalresetpin
3SOP2Sense‐On‐Power2
4SOP0Sense‐On‐Power0
5VDD3.3V
6VDD3.3V
7GNDGND
8GNDGND
9GPIO30General‐PurposeI/O
UART0TXData
I2SAudioPortClockO
I2SAudioPortFrameSync
TimerCapturePort
GeneralSPIMISO
10GPIO0General‐PurposeI/O
UART0ClearToSe nd
Input
I2SAudioPortData1
(RX/TX)
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
4
TimerCapturePort
GeneralSPIChipPort
GeneralSPIChipSelect
UART1RequestToSendO
UART0RequestToSendO
I2SAudioPortData0
(RX/TX)
11GPIO6General‐PurposeI/O
UART0RequestToSendO
ParallelCameraDataBit0
UART1ClearToSe nd
Input
UART0ClearToSe nd
Input
TimerCapturePort
12GPIO1General‐PurposeI/O
UART0TXData
PixelClockFromParallel
CameraSensor
UART1TXData
TimerCapturePort
13GPIO2General‐PurposeI/O
UART0RXData
UART1RXData
TimerCapturePort2
ADCChannel0Input
(1.5Vmax)
14GPIO3General‐PurposeI/O
ParallelCameraDataBit3
UART1TXData
ADCChannel1Input
(1.5Vmax)
15GPIO4General‐PurposeI/O
UART1RXData
ParallelCameraDataBit2
ADCChannel2Input
(1.5Vmax)
16GPIO5General‐PurposeI/O
ParallelCameraDataBit1
I2SAudioPortData1
(RX/TX)
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
5
TimerCapturePort5
ADCChannel3Input
(1.5Vmax)
17GPIO7General‐PurposeI/O
UART1RequestToSendO
UART0RequestToSendO
UART0TXData
I2SAudioPortClockO
18GPIO8General‐PurposeI/O
InterruptfromSDCard
(Futuresupport)
I2SAudioPortFrameSync
TimerCapturePort6
19GPIO9General‐PurposeI/O
PulseWidthModulated05
SDCadData
I2SAudioPortData
(Rx/Tx)
TimerCapturePort0
20GPIO10General‐PurposeI/O
I2CClock
Pulse‐WidthModulated06
UART1TXData
SDCardClock
TimerCapturePort1
21GPIO11General‐PurposeI/O
I2CData
Pulse‐WidthModulated07
FreeClockToParallel
Camera
SDCardCommandLine
UARTRXData
TimerCapturePort2
I2SAudioPortFrameSync
22GPIO12General‐PurposeI/O
I2SAudioPortClockO
ParallelCameraVertical
Sync
I2CClock
UART0TXData
TimerCapturePort3
23GPIO13General‐PurposeI/O
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
6
I2CData
Parallel
CameraHorizontalSync
UART0RXData
TimerCapturePort4
24 GPIO14General‐PurposeI/O
I2CClock
GeneralSPIClock
ParallelCameraDataBit4
TimerCapturePort5
25GPIO15General‐PurposeI/O
GeneralSPIMISO
I2CData
ParallelCameraDataBit5
TimerCapturePort6
26GPIO16General‐PurposeI/O
GeneralSPIMOSI
ParallelCameraDataBit6
UART1TXData
TimerCapturePort7
27GPIO17General‐PurposeI/O
UART1RXData
GeneralSPIChipSelect
ParallelCameraDataBit7
28GNDGND
29VCC3.3V
30GPIO22General‐PurposeI/O
I2SAudioPortFrameSync
TimerCapturePort4
31GPIO28General‐PurposeI/O
32JTAG_TDIJTAGTDI
33JTAG_TDOJTAGTDO
34JTAG_TCKJTAGTCK
35JTAG_TMSJTAGTMS
36GNDGND
3 Functional Description
3.1 Networking features
LSD4WF‐3211I5SAmodulecanbeconfiguredtoAPmodeandSTAmode,atthesametimehaveawirelessnetwork
interface,butalsoincludessomecommonwiredinterfacemethods,suchasSPIinterface,I2Cinterface,I2S
interface,UARTinterface;thepresenceoftheseinterfacesgreatlyexpandedconnectionmodule,butalsotoenable
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
7
ausertomorequicklyandmodulesfordocking,toachievedatatransmissionnetwork;
3.1.1 APNetworking
APthewirelessaccesspointisthecenterofanetwork;Generally,therouterasAP,undercertain
circumstances,alsosomemobilephoneterminals,PADasAP;LSD4WFmodulecanalsobeusedasAPmode,for
receivingthenetwork.Connectionsasshownbelow:
3.1.2 APNetworking
STAisthewirelessstation,awirelessnetworkterminal,typicallytoaccesstotheAP,theAPtransmitsdatatothe
networkvia;LSD4WFasthenextSTAmode,canbeconnectedwithanyoftheAP,thewirelessInternetmoduleto
achieve.
3.2 Passthroughmode
LSD4WFsupportsserialtransparenttransmissionmode,datafromtheserialtransmissioncabletotransmita
wirelessnetwork;transparenttransmissionmode,sothatthecustomer'sproductstothefastestandeasiestwayto
implementthenetwork.Usersneedonlyasimpleconfigurationviatheserialportcanbenetworkedanddata
transmission;
4 Instructions for use
WIFImodulewhenusingtheneedtousetwosoftware;
1,SecureCRTserialdebuggingtools;
2,TCPSocketcommunicationtools;
4.1 Network Connection
ConfigurationmoduleinSTAmode,andlettherouterconnection;computerandrouterconnection;moduleand
acomputerviaaserialconnection;
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
8
串口连接
4.1.1 SerialPortConfiguration
Openserialdebuggingassistant,abaudrateof115200,1stopbit,noparity,asfollows:
Presstheresetbuttonmodule,waitforsometime,aftertheinitializationiscomplete,you
canreceiveATcommandsinput;
EnterAT+WKEY=AT+WSKEY=WPAPSK,AES,lierda18f<CR>,return+ok,whichWPAPSKsecuritytype,AES
dataencryption,lierda18fsecretkeyforencryption;
EnterAT+WSSID=Lierda18f<CR>,return+ok;
4.2 CreatingSocket
4.2.1 CreatingaSocketA
Opensokittool,selecttheservermode,TCPaddressis192.168.1.145,portnumber5001,clicktheTCPlistener,
configuredasfollows:
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
9
Serialport,enterAT+NETP=TCP,CLIENT,5001,192.168.1.145<CR>,return+ok;
EnterAT+TCPDIS=on<CR>,return+ok;
Insokittool,amessageappearsasfollows:
Appear[TCP]192.168.1.121:64191expressedsokitcreatedsuccessfully;
Clicktoselect[TCP]192.168.1.121:64191,thenfillinthesendingareasokittooldataneedstobesent,andclick
Send,receiveserialdatasentsuccessfully,asfollows:
Serialdataobtainedareasfollows:
4.2.2 CreatingaSocketB
Opensokittoolagain,chooseservermode,TCPaddressis192.168.1.145,theportissetto5002,clicktheTCP
listener,asfollows:
Serialport,enterAT+SOCKB=TCP,5002,192.168.1.145<CR>,return+ok
EnterAT+TCPDISB=on<CR>,return+ok;
Informationshownbelowappearsinsokittool,indicatessocketBcreatedsuccessfully,asfollows:
Address: Lierda Building, 425 Dengyun Road, Hangzhou, China Tel:0571-88800000 Fax:0571-89908080
10
AndcreatethefirstSocketCommunicationsasanareatofillinthedatatransmittedbythedata,such
as1234567890,clicksend,receivedataappearintheserial,asfollows:
Theserialdataisasfollows:
4.2.3 PassthroughMode
EntertheserialportoftheAT+ENTM<CR>,sothatthemoduleintothetransparentmode.
5 Warning
Thisdevicecomplieswithpart15oftheFCCRules.Operationissubjecttothefollowingtwoconditions:(1)
(1) This device may not cause harmful interference, and
(2) This device must accept any interference received,includinginterferencethatmaycauseundesiredoperation.
Changesormodificationsnotexpresslyapprovedbythepartyresponsibleforcompliancecouldvoidthe
user'sauthoritytooperatetheequipment.
To satisfy FCC RF Exposure requirements for this transmission devices, a separation distance of 20 cm or
more should be maintained between the antenna of this device and persons during operation. To ensure
compliance, operation at closer than this distance is not recommended. The antenna(s) used for this
transmitter must not be co-located or operating in conjunction with any other antenna or transmitter.
The modular transmitter must be equipped with either a permanently affixed label or must be capable of
electronically displaying its FCC identification number:
(A) If using a permanently affixed label, the modular transmitter must be labeled with its own FCC identification
number, and, if the FCC identification number is not visible when the module is installed inside another device,
then the outside of the device into which the module is installed must also display a label referring to the
enclosed module. This exterior label can use wording such as the following: “Contains Transmitter Module
FCC ID: N8NLSD4WF-CC3221.” Any similar wording that expresses the same meaning may be used. The Grantee
may either provide such a label, an example of which must be included in the application for equipment
authorization, or, must provide adequate instructions along with the module which explain this requirement. In
the latter case, a copy of these instructions must be included in the application for equipment authorization