Product Info

NTXEmbeddedWM18xAPI
17
o
SendandhandletheresponseforNTX_DATEandNTX_TIMEif needed
o
SendNTX_LC_META_DEVICE,{…}
o
SendNTX_LC_META_ADDRESS,{…}
o
SendNTX_LC_STATE,{…}
Continuetomonitortheserialconnectionandsenddataasneeded
SecondTimeConnectionCheckList
WaitforNTX_RESTARTandorNTX_ONLINE
IfNTX_ONLINEvalueis0,SendNTX_AP,{SSID},{password}
WaitforNTX_ONLINE,1or2
IfNTX_ONLINE,2
o
SendNTX_SET_OVENSERIAL,{ovenserial}
o
SendandhandletheresponseforNTX_DATEandNTX_TIMEif needed
o
SendNTX_LC_META_DEVICE,{…}
o
SendNTX_LC_META_ADDRESS,{…}
o
SendNTX_LC_STATE,{…}
o
Continuetomonitortheserialconnectionandsenddataasneeded
FileDownload
InCustomerConnectsendafiletoadevice
ModulesendsNTX_FILEevery20secondstothedevice.Thedevicecanignorethismessageforaslong
asitwants.
DevicesendsNTX_FILE,1whichpromptsthemoduletoreturnthefileheaderinfoandgetreadyto
send
thefilewhichmayincludedownloadingitdependingonthesize.
ModulesendsNTX_FILE,{header}
DevicesendsNTX_FILE,2
Modulesends{datapacket1}{datapacket2}{…}{datapacketn}
MonitoringTheModule
Thedeviceshouldhavethreemodesofmonitoringtheserialport.
Mode1:SendandReceive.CertainAPIcallsabovealwaysrespondtotheAPIcall.Inthiscaseitis
guaranteedthatwhenthedevicesendsanAPIrequest,theresponsewillcomeinbeforeanythingelse.
Itisalways
possiblethatsomethinggoeswrongsoeveninthismodeatimeoutshouldbeset.Ifno
responsecomesinwithina fewseconds,thecallshouldabortorrepeat.Likewiseifaresponsecomesin
thatwasunexpected,thecallshouldabortorrepeat.