XANS - Network Status
Provides a compact network-status snapshot with three groups:
- Group 1: air interface and APN credentials
- Group 2: SIM, GSM, GPRS, bearer, and jamming status
- Group 3: destination-point socket status list
Qualifiers
Q: query status (>QXANS<)R: response (>RXANS...<)
Note:
Antares parser currently accepts Q for command input and returns the R response format.
Format
Query:
>QXANS<
Response:
>RXANS{GROUP1};{GROUP2};{GROUP3}<
Groups are separated by semicolons.
Group 1 Fields (Air Interface + APN Credentials)
Format:
{AIR},{APN},{SIM_PIN},{GPRS_LOGIN},{GPRS_PASSWORD}
| Field | Description |
|---|---|
AIR | Air interface status: 0 down, 1 up |
APN | APN |
SIM_PIN | SIM PIN |
GPRS_LOGIN | GPRS login |
GPRS_PASSWORD | GPRS password |
Group 2 Fields (SIM/GSM/GPRS + Bearer + Jamming)
Format:
{SIM_INSERT},{SIM_STATE},{SIM_LOCK_REASON},{GSM_REG},{GSM_RSSI},{GPRS_ATTACHED},{GPRS_REG},{LOCAL_IP},{BEARER},{JAMMING}
SIM insert state
0= not inserted1= inserted2= SIM hardware off
SIM state
1= ready2= SIM hardware off3= SIM inserted4= SIM removed5= PIN error6= waiting PIN7= SIM lock8= SIM error
SIM lock reason
Relevant only when SIM_STATE = 7:
SIM PIN= waiting for SIM PINSIM PUK= waiting for SIM PUK
GSM register state
0= not registered1= registered2= not registered, searching3= rejected4= error5= registered, roaming
GSM RSSI
0= -113 dBm or less1= -111 dBm2..30= -109 to -53 dBm31= -51 dBm or greater99= not known / not detectable
GPRS attached state
0= not attached1= attached
GPRS register state
0= not registered1= registered2= not registered, searching3= rejected4= error5= registered, roaming
Local IP address
- Carrier-assigned local IP address for the data session.
GPRS bearer state
0= bearer down1= bearer up
Jamming state
-2= normal state0..60= jamming detection in progress-3,-1= jamming detected
Group 3 Fields (Destination Points Sockets)
Destination points are listed in chronological creation order (not by XADP index).
- Destination points are separated by
\ - If no destination point is configured, this group is empty
Per destination point, fields are:
{ADDRESS},{SOCKET_STATE},{LOCAL_PORT},{REMOTE_IP},{REMOTE_PORT},{SOCKET_UP_TIME},{SOCKET_DOWN_TIME},{SOCKET_DOWN_LOG_TIMER}
Socket connection state:
0= not connected1= connecting2= closing3= connected4= connected, limited5= closing, hold
Example
>RXANS1,intnet.cxn,,,;1,1,null,5,31,1,5,10.1.17.207,1;socket://visionairegps.com:8040,3,1024,66.228.127.212,8040,3,,\;,,,;3,1,1,0,4;<
Interpretation:
- Air interface is up, APN is
intnet.cxn, PIN empty. - SIM inserted and ready; GSM and GPRS registered and roaming; RSSI is
31; local IP is10.1.17.207. - Destination point
visionairegps.com:8040is connected; local port1024; remote IP66.228.127.212; uptime3seconds.
Antares Implementation Notes
Current Antares implementation keeps response framing and field order above, with these practical details:
- Command input supports
Qonly (>QXANS<). - Group 2 local IP may be returned empty depending on modem-state availability.
- Group 3 currently populates destination address, mapped socket state, and configured port; remote endpoint and timing fields may be empty.