Product Info

NTXEmbeddedWM18xAPI
18
Mode2:Liste
ning.Inseveralcases,themodulemaysendinformationtothedevicebasedoninputfrom
thecloudlikearequesttorefreshthestatisticsorachangeinconnectivitystate.Foreachofthese,the
deviceneedstobelisteningandneedstohandlethemwhentheycomein.
Mode3:FileTr
ansfer.Inthiscase,thereisnoendofdataterminatorcharacter,itisallbasedonthe
buffersize.Therestofthemodesshouldbesuspendedwhileinthismode.
OngoingMonitoringCheckList(Pseudocode)
1.
AmIwaitingonaresponsetosomemessageIsent?Didtheresponsecomein?Ifsohandleit.If
notcontinuetowaitfortheresponseuntilItimeout.
2.
DidNTX_ONLINE,{}comein?Ifitdid,doesitindicateweareoffline?Ifsochangetostoringthe
activitydataoffline.Showtheuserweareofflinesotheycanfixit.
3.
DidNTX_SEND_FCNT,NTX_SEND_META,NTX_FILEcomein?Ifsohandlethem.
SendingOfflineData
Asdiscussedpreviously,itisrecommendedthatifthemoduleisoffline,thedeviceshouldstoreactivity
datalocallyifitcanuntilthemodulecomesbackonline.Adateandtimestampshouldbestoredwith
eachactivityalongwithallthedataneededtomaketheNTX_LC_ACTIVITYAPIcall.
Whenitdoescomebackonline,theactiv
itydatacanbesentwiththetimestamp.Thecloudwilluse
thetimestamptoputthedataintherightorder.Youcansendofflinedatamixedwithrealtimedata.
Werecommendaqueueofsomekindthatisbeingfilledwithamixofrealtimean
dofflinedata.Be
carefultoleaveyourprogramtimetolookforincomingmessagesandtodootherwork.
Size
18.0*25.8*2.8±0.2mm
SPIFlash Default32Mbit
Bluetooth Bluetooth4.2BR/EDRandBLEstandards
WiFi
802.11b/g/n
Interface
UARTSPISDIOI2CPWMI2SIRADCDAC
OnchipSensor Hallsensor,Temperaturesensor,Capacitivetouchsensor
IOPort 22
UARTBaudrate Support300~4608000bps,De115200bps
FrequencyRange
2412~2462MHz
Antenna
PCBAntenna, Max. gain 0dBi
TransmitPower
802.11b:17±2dBm(@11Mbps)
802.11g:14±2dBm(@54Mbps)
802.11n:13±2dBm(@MCS7)
Receiving
Sensitivity
CCK,1Mbps:‐90dBm
CCK,11Mbps:‐85dBm
6Mbps(1/2BPSK):‐88dBm
54Mbps(3/464QAM):‐70dBm
MCS7(65Mbps,72.2Mbps):‐67dBm
PowerDissipation 300mA@3.3V
Security WPA/WPA2/WPA2Enterprise/WPS