Examples, List script names #lcscript – Synaccess Networks NP-0801DTM User Manual

Page 274

Advertising
background image

 

EASY SCRIPT EXTENSION  PYTHON INTERPRETER, AT COMMANDS

 

HSPA+ AT Commands Reference Guide 

274

 

Examples 

AT#LSCRIPT

#LSCRIPT: “First.py”,51

#LSCRIPT: “Second.py”,178

#LSCRIPT: “Third.py”,95

#LSCRIPT: free bytes: 20000

OK

List Script Names   #LCSCRIPT 

Execute command

 reports the list of file names for the files currently stored in the Easy Script related non‐volatile 

memory, adding CRC16 information, and the available free non‐volatile memory memory in the format: 

[#LCSCRIPT: <script_name1>,<size1>[,<crc1>]… 

[<CR><LF>#LCSCRIPT: <script_namen>,<sizen>[,<crcn>]]] 

<CR><LF>#LCSCRIPT: free bytes: <free_non‐volatile memory> 

where: 

<script‐namen> 

File name, quoted string type. Maximum 16 characters, case 
sensitive.

 

<sizen> 

Size of script in bytes. 

<crcn> 

CRC16 poly (x^16+x^12+x^5+1) of script in hex format. 

<free_non‐volatile memory> 

Size of available non‐volatile memory memory in bytes. 

Note: CRC16 is calculated using the standard CRC16‐CCITT x^16+x^12+x^5+1 polynomial (0x1021 representation) 
with initial value FFFF. 

Note: If one file currently stored in non‐volatile memory is in use, then CRC16 cannot be calculated and Execute 
command does not report <crcn> for that file. This is always true if command is executed by a Python script 
because at least the file pointed by #ESCRIPT is in use. 

Execute command

 reports size and CRC16 information of file <script_name> in the format: 

[#LCSCRIPT: <script_name>,<size>[,<crc>]] 

where: 

<script‐name> ‐ file name, quoted string type. Maximum 16 characters, case sensitive. 

<size> ‐  size of script in bytes 

<crc> ‐  CRC16 poly (x^16+x^12+x^5+1) of script in hex format 

Parameter: 

<script_name> ‐ String type, file name. Maximum 16 characters, case sensitive. 

Note: CRC16 is calculated using the standard CRC16‐CCITT x^16+x^12+x^5+1 polynomial (0x1021 representation) 
with initial value FFFF. 

Advertising