Specifications

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.