Synaccess-networks NP-0801DTM Uživatelský manuál Strana 270

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 330
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 329 330

Komentáře k této Příručce

Žádné komentáře