EASYSCRIPT EXTENSIONPYTHONINTERPRETER,ATCOMMANDS
HSPA+ATCommandsReferenceGuide 274
Examples
AT#LSCRIPT
#LSCRIPT: “First.py”,51
#LSCRIPT: “Second.py”,178
#LSCRIPT: “Third.py”,95
#LSCRIPT: free bytes: 20000
OK
ListScriptNames#LCSCRIPT
ExecutecommandreportsthelistoffilenamesforthefilescurrentlystoredintheEasyScriptrelatednon‐volatile
memory,addingCRC16information,andtheavailablefreenon‐volatilememorymemoryintheformat:
[#LCSCRIPT:<script_name1 >,<size1>[,<crc1>]…
[<CR><LF>#LCSCRIPT:<script_namen>,<sizen>[,<crcn>]]]
<CR><LF>#LCSCRIPT:freebytes:<free_non‐volatilememory>
where:
<script‐namen>
Filename,quotedstringtype.Maximum16characters,case
sensitive.
<sizen> Sizeofscriptinbytes.
<crcn> CRC16poly(x^16+x^12+x^5+1)ofscriptinhexformat.
<free_non‐volatilememory> Sizeofavailablenon‐volatilememorymemoryinbytes.
Note:CRC16iscalculatedusingthestandardCRC16‐CCITTx^16+x^12+x^5+1polynomial(0x1021representation)
withinitialvalueFFFF.
Note:Ifonefilecurrentlystoredinnon‐volatilememoryisinuse,thenCRC16cannotbecalculatedandExecute
commanddoesnotreport<crcn>forthatfile.Thisisalwaystrueifcommandisexecute
dbyaPythonscript
becauseatleastthefilepointedby#ESCRIPTisinuse.
ExecutecommandreportssizeandCRC16informationoffile<script_name>intheformat:
[#LCSCRIPT:<script_name>,<size>[,<crc>]]
where:
<script‐name>‐filename,quotedstringtype.Maximum16characters,casesensitive.
<size>‐sizeofscriptinbytes
<crc>‐CRC16poly(x^16+x^12+x^5+1)ofscriptinhexformat
Parameter:
<script_name>‐Stringtype,filename.Maximum16characters,casesensitive.
Note:CRC16iscalcula
tedusingthestandardCRC16‐CCITTx^16+x^12+x^5+1polynomial(0x1021representation)
withinitialvalueFFFF.
Commentaires sur ces manuels