The information contained in this document is subject to change. This document contains proprietary information, which is protected by copyright
laws. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another language or program language
without prior written consent of RFI Engineering B.V.
RefGuide_U-routerNGW_v1.01.docx
Page: 48(
57)
14.9 Mobile
The ‘
mobile
’ endpoints provide information about the mobile connection on the U-router NGW.
You can retrieve or set the mobile configuration, such as APN name, username and password
associated with the mobile connection. Also, the information about the connected cell tower can be
obtained.
ENDPOINTS
GET /api/mobile
POST /api/mobile
You can use the
GET /api/mobile
endpoint to retrieve the status of the mobile connection.
For example:
curl https://192.168.168.1/api/mobile -u rfi:rfi123
Returns:
{
"mobile": {
"imei": "354679091577638",
"simStatus": "SIM READY",
"registrationStatus": "registered",
"networkName": "204 04 (Vodafone Libertel, Netherlands)",
"signalPower": "16",
"signalDbm": "-81",
"signalQuality": "Fair",
"IMSI": "204047109108204",
"ICCID": "89314404000650932560"
},
"location": {
"mobileCountryCode": "204 (Netherlands)",
"mobileNetworkCode": "04 (Vodafone Libertel)",
"locationAreaCode": "217",
"cellId": "48232",
"radioTechnology": "3gpp (edge)"
},
"data": {
"apn": "office.vodafone.nl",
"apnUser": "vodafone",
"apnPass": "vodafone"
},
"security": {
"simPin": "****",
"simPuk": "********"
},
"status": "OK"
}
You can use the POST /api/mobile endpoint to set the APN and security parameters of the mobile
connection. The possible POST parameters are:
apn
Access Point Name (APN).
T
he name of the gateway between
the GSM, GPRS, 3G or 4G mobile network
apnUser
APN username needed to get access
apnPass
APN password needed to get access
simPin
PIN code to access SIM card (4 to 8 decimal digits)
simPuk
PUK code (8 decimal digits)