N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
119
18.5 Obtaining the Location of the Module: +CIPGSMLOC
Description
Obtain the location of the module
Description
To obtain the location information of the module
Format
AT+CIPGSMLOC<CR>
AT+CIPGSMLOC=<n><CR>
Parameter
<n>: Select request type
0: Close positioning request
Example
AT+CIPGSMLOC
OK
+CIPGSMLOC:
{"location":{"lat":22.69083,"lng":113.985228},"accuracy":0.0
}
+CIPGSMLOC: OK
The command is
sent successfully.
The module reports
location information.
AT+CIPGSMLOC
GPRS DISCONNECTION
+CIPGSMLOC: CONTACT FAIL
No SIM card is
installed.
AT+CIPGSMLOC
+CIPGSMLOC: CONTACT FAIL
Fail to translate the
server DNS name.
AT+CIPGSMLOC
+CIPGSMLOC: LINK FAIL
Fail to connect to the
server.
AT+CIPGSMLOC
+CIPGSMLOC: POST FAIL
Fail to report the
location information
AT+CIPGSMLOC
OK
+CIPGSMLOC: FAIL
Obtain the location;
While the server
returns invalid data.
AT+CIPGSMLOC=0
OK
Close the request.
The link will be
released.
Remarks
The obtained location information is the GPS coordinates.
The location information is reported in one or two minutes after the command