Product Info

NTXEmbeddedWM18xAPI
11
NTX_FILE
TheWM18xmodulehastheabilitytoreceivefilesfromCustomerConnect.Thesefilescanbemenu
updates,images,firmwareupdatesorjustaboutanything.ThesefilescanberetrievedfromCustomer
Connectwhentheyareavailableorjustwhenneeded.
Theprocessofmovingafileacrossaserialconnection
isslowsotheDeviceandtheModulewillnotbe
sendingandreceivingregulardatainformationwhilethisishappening.Inotherwords,ifyouneedto
constantlysendtemperatureuptothecloud,itwillhavetostopwhilethefileisbeingsentfromthe
moduleto
thedevice.Often,filetransfersonlyhappenwhenthedeviceisinanidleoroffstate.
Whenafileisavailable,themodulewillsendamessagetothedeviceevery20secondsorso:NTX_FILE
Whenthedeviceisreadytoreceivethefile,itshouldsendNTX_FILE,1.
ThemodulewillrespondwithNTX_FILE,{file_type},{file_size},{Name}
{file_type}isdefinedintheMatrixFile.Thiscanbeusedtodecidethefilenameand/orhowtousethe
data.
{file_size}isinbits.Filesmustbesmallerthan1GBatthistime.
{Name}isthenameassignedtothisfile.Itdoesnotnecessarilyrepresentthefilename.Itisjustaname
thatgoeswiththedata.Itcanbeusedanywayneeded.
Thedeviceshouldthenpreparetoreceivethefileinchunksof32767bitsatatimethroughthe
serial
port.
Thedevicethensends:NTX_FILE,2andthemodulerespondswiththefiledatainchunksof32767.The
lastchunkwillbesmallerthan34767bits.
Oncethelastchunkissent,themoduleandthedeviceshouldreturntonormaloperations.
NTX_LC_FSTAT
Example:NTX_LC_FSTAT,{fault1id},{fault1count},…,{faultnid},{faultncount}
{fault1id}inintegerdefinedintheMatrixfilethattellsNetworkwhichfaultisbeingcounted.
{fault1count}aninteger
Response:None
TheNTX_LC_FSTATcallsendsfaultcountdatatotheCustomerConnectcloud.
Notes:
1.
ThefaultsforadevicearedefinedintheMatrixFile
2.
ThefaultIDcanbeanumericoralphanumericIDbutshouldneverbemorethan 5characters