SIMCom SIM5215&SIM5216 WCDMA Script AT Command Set
Werbung
Werbung
AT Command Set
WCDMA_SCRIPT_ATC_V0.04
WCCDMA CSCRIPT AT Command Set
Document Title:
Version:
Date:
Status:
Document ID:
SIM5215&SIM5216 AT Command Set
1.05
2010-04-29
Release
SIM5215&SIM5216_ATC_V1.05
General Notes
SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search for additional relevant information, including any information that may be in the customer’s possession.
Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer’s system integrator. All specifications supplied herein are subject to change.
Copyright
This document contains proprietary technical information which is the property of SIMCom Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time.
Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2010
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
1. CSCRIPT Commands
1.1 AT+CSCRIPTSTART Start running a LUA script file.
Description
The command is used to start running a LUA script file. The script file must exist in c:\ in the module EFS. This command shouldn’t be used by sio LIB in LUA script files.
Syntax
Test Command
AT+CSCRIPTSTART=?
Responses
+CSCRIPTSTART: ”FILENAME”
OK
Write Command
AT+CSCRIPTSTART=”
<filename> ”[ , ”
<reportluaerror> ”]
Responses
OK
+CSCRIPT: 0
ERROR
OK
+CSCRIPT: <err>
Defined values
<filename>
The script file name.
<reportluaerror>
Whether report the LUA compiling error or running error to TE.
0 – Not report.
1 – Report.
<err>
The error code of running script.
Examples
AT+CSCRIPTSTART=”mytest.lua”
OK
+CSCRIPT: 0
AT+CSCRIPTSTART=?
OK
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
1.2 AT+CSCRIPTSTOP Stop the current running LUA script.
Description
The command is used to stop the current running LUA script. This command shouldn’t be used by sio LIB in LUA script files.
Syntax
Test Command
AT+CSCRIPTSTOP=?
Read Command
AT+CSCRIPTSTOP?
Execute Command
AT+CSCRIPTSTOP
Defined values
<filename>
The script file name.
Examples
AT+CSCRIPTSTOP?
+CSCRIPTSTOP: ”mytest.lua”
OK
AT+CSCRIPTSTOP=?
OK
AT+CSCRIPTSTOP
OK
Responses
OK
Responses
+CSCRIPTSTOP: ” <filename> ”
OK
Responses
OK
ERROR
1.3 AT+CSCRIPTCL Compile a LUA script file.
Description
The command is used to compile a LUA script file. The script file must exist in c:\ in the module
EFS. This command shouldn’t be used by sio LIB in LUA script files. If the AT+CSCRIPTPASS is set, the compiled file will be encrypted.
Syntax
Test Command Responses
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
AT+CSCRIPTCL=? +CSCRIPTCL: ”FILENAME”, ”OUT_FILENAME”
OK
Write Command
AT+CSCRIPTCL=”
<filename> ”[
,
”
<out_filename> ”]
Responses
OK
+CSCRIPT: 0
ERROR
OK
+CSCRIPT: <err>
Defined values
<filename>
The script file name.
<out_filename>
The output script file name. If this parameter is empty, the default <out_filename> will be the file name of <filename> with the file extension changed to “.out”.
<err>
The error code of running script.
Examples
AT+CSCRIPTCL=”mytest.lua”
OK
+CSCRIPT: 0
AT+CSCRIPTCL=?
+CSCRIPTCL: “FILENAME”, “OUT_FILENAME”
OK
1.4 AT+CSCRIPTPASS Set the password for +CSCRIPTCL.
Description
The command is used to set the password which will be used for AT+CSCRIPTCL encryption.
Syntax
Write Command
AT+CSCRIPTCL=”
<old_password> ” , ”
<new_password> ”
Responses
OK
ERROR
Defined values
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
<old_password>
The old password. The original password for AT+CSCRIPTCL is empty.
<new_password>
The new password.
Examples
AT+CSCRIPTPASS=””,”12345678”
OK
AT+CSCRIPTPASS=”12345678”,”123456”
OK
1.5 AT+CSCRIPTCMD Send data to the running LUA script.
Description
The command is used to send data to the running LUA script
Syntax
Test Command
AT+CSCRIPTCMD=?
Execute Command
AT+CSCRIPTCMD= <cmd1
> [, <cmd2> ]
Responses
+CSCRIPTCMD: CMD1[,CMD2]
OK
Responses
OK
ERROR
Defined values
<cmd1>
An integer value to be sent as the second parameter of EVENT 31 to running LUA script.
<cmd2>
An integer value to be sent as the third parameter of EVENT 31 to running LUA script.
Examples
AT+CSCRIPTCMD=?
+CSCRIPTCMD: CMD1[,CMD2]
OK
AT+CSCRIPTCMD=23,98
OK
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
2 Unsolicited CSCRIPT Codes
2.1.1 Summary of +CSCRIPT Codes
2
3
4
5
Code of <err> Description
0 Success
1 No resource
Failed to open the script file
Failed to run the script file
Failed to compile the script file
Virtual machine is busy
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
WCCDMA CSCRIPT AT Command Set
Contact us
Shanghai SIMCom Wireless Solutions Ltd.
Add: Building A, SIM Technology Building, No.633, Jinzhong Road, Changning District
200335
Tel: +86 21 3252 3300
Fax: +86 21 3252 3301
URL: http:/ www.sim.com/wm /
WCDMA_CSCRIPT_ATC_V0.04 4/29/2010
Herunterladen
Werbung