-13-
v7.3
Software
4.1.5. API functions
Through this guide there are lots of examples, showing the use of functions. In these examples, API functions are
called to execute the commands, storing in their related variables the parameter value in each case. The functions
are called using the predefined object
_4G
.
All public functions return different possible values:
•
0: OK
•
Otherwise: ERROR. See corresponding function error code
4.1.6. Error codes
When the 4G module returns an error code, the
_errorCode
variable stores the corresponding error meaning. Do
not confuse this error code with the returning value from the API functions. There are other types of errors like
“no response from the module” which are not included in the next list. For each function answer, please refer to
the corresponding error values described for each function within the libraries.
The possible module’s error codes are described by constants as the table below:
Constant
Value
Error code description
WASP4G_CME_ERROR_0000
0
Phone failure
WASP4G_CME_ERROR_0001
1
No connection to phone
WASP4G_CME_ERROR_0002
2
Phone-adapter link reserved
WASP4G_CME_ERROR_0003
3
Operation not allowed
WASP4G_CME_ERROR_0004
4
Operation not supported
WASP4G_CME_ERROR_0005
5
Phone SIM (Subscriber Identity Module) PIN (Personal
Identification Number) required
WASP4G_CME_ERROR_0010
10
SIM not inserted
WASP4G_CME_ERROR_0011
11
SIM PIN required
WASP4G_CME_ERROR_0012
12
SIM PUK (Personal Unlocking Key) required
WASP4G_CME_ERROR_0013
13
SIM failure
WASP4G_CME_ERROR_0014
14
SIM busy
WASP4G_CME_ERROR_0015
15
SIM wrong
WASP4G_CME_ERROR_0016
16
Incorrect password
WASP4G_CME_ERROR_0017
17
SIM PIN2 required
WASP4G_CME_ERROR_0018
18
SIM PUK2 required
WASP4G_CME_ERROR_0020
20
Memory full
WASP4G_CME_ERROR_0021
21
Invalid index
WASP4G_CME_ERROR_0022
22
Not found
WASP4G_CME_ERROR_0023
23
Memory failure
WASP4G_CME_ERROR_0024
24
Text string too long
WASP4G_CME_ERROR_0025
25
Invalid characters in text string
WASP4G_CME_ERROR_0026
26
Dial string too long
WASP4G_CME_ERROR_0027
27
Invalid characters in dial string
WASP4G_CME_ERROR_0030
30
No network service
WASP4G_CME_ERROR_0031
31
Network time-out
WASP4G_CME_ERROR_0032
32
Network not allowed - emergency calls only
WASP4G_CME_ERROR_0040
40
Network personalization PIN required
WASP4G_CME_ERROR_0041
41
Network personalization PUK required
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...