Write script #wscript, Syntax, Parameters and values – Synaccess Networks NP-0801DTM User Manual

Page 270: Notes

Advertising
background image

 

EASY SCRIPT EXTENSION  PYTHON INTERPRETER, AT COMMANDS

 

HSPA+ AT Commands Reference Guide 

270

 

Easy Script Extension Python Interpreter, AT 
Commands 

Python scripting is supported in MTPCIE‐H5, MTCBA‐H5, and the dumb version of MTSMC‐H5. Scripting support 
might require some professional services. 

Write Script   #WSCRIPT 

Execute command causes the module to store a file in the Easy Script related non‐volatile memory, naming it 
<script_name>. 

The file should be sent using RAW ASCII file transfer. 

It is important to set properly the port settings. In particular: 

Flow control: hardware. 

Baud rate: 115200 bps  

Test command returns OK result code. 

Syntax 

Command 

Command type 

AT#WSCRIPT=[<script_name>,<size>,[,<hidden>]] 

Set 

AT#WSCRIPT=? 

Test 

Parameters and Values 

<script_name> 

String type, name of the file in non‐volatile memory. Maximum 16 characters, 
case sensitive. 

<size> 

File size in bytes. 

<hidden> 

File hidden attribute. 

File content is readable with #RSCRIPT. Default: 0

File content is hidden, #RSCRIPT command reports empty file. 
The device prompts a five character sequence  
<CR><LF><greater_than><greater_than><greater_than> 
(IRA 13, 10, 62, 62, 62)  
after command line is terminated with <CR>. 
After that a file can be entered from TE, sized <size> bytes. 
The operations completes when all the bytes are received. 
If writing ends successfully, the response is OK, otherwise an error code is 
reported. 

Notes 

„

Place the file name in quotes. Every textual script file must have .py extension. Every pre‐compiled executable 
script file must have .pyo extension. File names are case sensitive. 

„

When sending the script be sure that the line terminator is <CR><LF> and that your terminal program does not 
change it. 

Advertising