Background:

A special build of the the G120 firmware has been created to assist with debugging cellular issues and creating config SIMs. It uses the Bluetooth module and an Android app.


Getting started:

  1. Install the Android app. For now it is in beta and available via an APK download link from support.
  2. Power up G120 with external power: 12V on red and ground on black. The LED should flash once per second. The device may sleep (we'll remove this in future), so the LED may stop flashing.
  3. Open config app. It will scan for devices
  4. It should find a "2/4G Tool". Choose connect.
    1. If no tool is found, disable and re-enable bluetooth on the Android device.
  5. Scroll down to enable troubleshooting. This will print out logs at the bottom of the screen.


GPS Testing:

  1.     Scroll to the GPS Section. 
  2.     Flip the switch to enabled.
  3.     Watch the debugging output.


Example output:

CON: Powering On GPS.
GPS: GPS Power On, CfgReq=1
GPS: No valid almanac data
GPS: No valid aiding data
GPS: Sending CFG_RST...
DEV: Notify DigIn: Src=0 Input=255 Active=1 0x00000000->0x00000000
GPS: No valid almanac data
GPS: No valid aiding data
GPS: TTFT=28s
DEV: Notify DigIn: Src=11 Input=7 Active=1 0x00000000->0x00000080
GEN: RTC: set to 06/09/2019 12:52:49
GPS: TTFF=36s PDOP(x10)=46 3Dfix=1
GPS: JAM 1/2, cw:12%, ns:134, agc:100%/1248, iq:173
GPS: ORB 8,6,16
GPS: SAT14 53123,460e0,43123,430e0,42123,400e0,38000,38123,38123,36123
GPS: Valid=39s PDOP(x10)=46 3Dfix=1
DEV: Notify DigIn: Src=0 Input=255 Active=0 0x00000080->0x00000080
CON: GPS Fix: 3D = True lat = -260443712 long = 280111309 accm = 29
CON: Powering Off GPS.
GPS: GPS Power Off
CON: Powered Off GPS.


Cellular Testing:

  1.     Choose a mode.
  2.     Flip the switch to enabled.
  3.     Watch the debugging output.


Example output for a network scan:

CON: Booting Modem 
GSM: CTS asserted 
GSM: AT response OK 
GSM: ATI 
Manufacturer: u-blox 
Model: SARA-R410M-02B 
Revision: L0.0.00.00.05.08 [Apr 17 2019 19:34:02] 
SVN: 03 
IMEI: 356726103790705 
OK 
GEN: L0.0.00.00.05.08,A.02.04 
GSM: IMSI = 655014602140712 
GSM: ICCID = 89460000000021410121 
GSM: AutoNet -1 
CON: Searching For Cell Towers 
GSM: Network Found: (1,"655 01","655 01","65501",9) 
GSM: Network Scan Results: Coverage: Yes Available: Yes 
CON: Potential Networks Were Found 
GSM: CEREG = 0 
GSM: Power down 
GSM: Soft off


Specify an APN:

  1. Go to the top right and click on the settings cog.
  2. Select APN and enter the APN details.
  3. Go back to the main screen.
  4. Select an option under Cellular Testing like Upload and Stay Connected.
  5. Flip the switch to enabled.
  6. Use the trouble shooting feed at the bottom of the app to see the result.


Creating a config SIM:

  1.     Go to the top right and click on the settings cog.
  2.     Go to INIT SMS
  3.     Enter the desired INIT SMS:
    1. 4G: #*,4GINIT,<apn>,<rat>,<network string>
      1.     <apn> set to the APN name. This setting is superseded by the network string.
      2. <rat>: 0 for CATM1 & NB-IoT, 1 for CATM1 only, 2 for NB-IoT only. This setting is superseded by the network string.
      3. <network string>: by way of example n8+20,Aiot.1nce.net will enable NB-IoT bands 8 and 20, with APN iot.1nce.net
      4. Full example: #*,4GINIT,iot.1nce.net,2,n8+20,Aiot.1nce.net
    2. 2G: #*,2GINIT,<apn name>,<apn username>,<apn password>
      1. Full example: #*,2GINIT,eseye.com,user,pass
  4.     Go back to the main screen.
  5.     Select Cellular Testing Mode to "Create Config SIM"
  6.     Flip the switch to enabled.
  7.     State should change to "Saving INIT SMS", then "Checking INIT SMS".
  8.     Wait for the state to be "Config SIM Created"
  9.     Remove the SIM and mark it.


This will change settings in devices you insert it into. It should not be used in "deployed" devices because every time the device resets for whatever reason (firmware update, parameter changes, etc) the config SIM will apply the admin parameters. This means that admin parameter changes made over the air will not stick (they will be overwritten by the SIM's parameters).