Synaccess-networks NP-0801DTM Manuel d'utilisateur Page 270

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 330
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 269
EASYSCRIPT EXTENSIONPYTHONINTERPRETER,ATCOMMANDS
HSPA+ATCommandsReferenceGuide 270
EasyScriptExtensionPythonInterpreter,AT
Commands
PythonscriptingissupportedinMTPCIEH5,MTCBAH5,andthedumbversionofMTSMCH5.Scriptingsupport
mightrequiresomeprofessionalservices.
WriteScript#WSCRIPT
Executecommandcauses themoduletostoreafileintheEasyScriptrelatednonvolatilememory,namingit
<script_name>.
ThefileshouldbesentusingRAWASCIIfiletransfer.
Itisimportanttosetproperlytheportsettings.Inparticular:
Flowcontrol:hardware.
Baudrate:115200bps
TestcommandreturnsOKresultcode.
Syntax
Command Commandtype
AT#WSCRIPT=[<script_name>,<size>,[,<hidden>]] Set
AT#WSCRIPT=? Test
ParametersandValues
<script_name>
Stringtype,nameofthefileinnonvolatilememory.Maximum16characters,
casesensitive.
<size> Filesizeinbytes.
<hidden> Filehiddenattribute.
0 Filecontentisreadablewith#RSCRIPT.Default:0.
1 Filecontentishidden,#RSCRIPTcommandreportsemptyfile.
Thedevicepromptsafivecharactersequence
<CR><LF><
greater_than><greater_than><greater_than>
(IRA13,10,62,62,62)
aftercommandlineisterminatedwith<CR>.
AfterthatafilecanbeenteredfromTE,sized<size>bytes.
Theoperationscompleteswhenallthebytesarereceived.
Ifwritingendssuccessfully,theresponseisOK,otherwiseanerrorcodeis
reported.
Notes
Placethefilenameinquotes.Everytextualscriptfilemusthave.pyextension.Everyprecompiledexecutable
scriptfilemusthave.pyoextension.Filenamesarecasesensitive.
Whensendingthescriptbesurethatthelinetermin atoris<CR><LF>andthatyourterminalprogramdoesnot
changeit.
Vue de la page 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 329 330

Commentaires sur ces manuels

Pas de commentaire