Table of Contents

A page of thoughts for future improvements

Bugs in /usr/bin/gl_modem

glinet wont see the modem as connected because:

The iccid for giffgaff is only 19 digits and gl_modem has a hard coded 20 digit length.
It doesn't have apn details for giffgaff:  No APN node found for mcc:234 mnc:105

upload the gl_modem patch and the

/www/js/apns-full-conf.json.gz      ## An isp apn list in the firmware that gets unzipped to...
/var/run/modem/apns-full-conf.json  ## ...here. If it exists already it doesn't get re-unzipped.

and that should fix? yes gl_modem patch fixed that bit.

gl-modem log claims configuration exists for the imsi number but i dont think it does on beryl-02??

Do we need this anymore?

Are we are relying on the option iccid '8944110066625345615' entry in the modem_1_1 config to enable gl_modem to be happy with the connection?
If this is not present it follows the following path and fails at **Failed to get MNC length.** Need to fix this. 
#Still issue with APN and database:
Wed Feb  4 10:58:18 2026 daemon.info gl_modem.patche: (modem_cm.c:1324) Enter the dialing process
Wed Feb  4 10:58:20 2026 daemon.info gl_modem.patche: (modem_cm.c:1351) Now that the simcard is ready, try dialing...
Wed Feb  4 10:58:20 2026 daemon.info gl_modem.patche: (modem_cm.c:1380) curr dial imsi:234105186116254
Wed Feb  4 10:58:20 2026 daemon.info gl_modem.patche: (modem_cm.c:1396) network configuration exists
Wed Feb  4 10:58:20 2026 daemon.info gl_modem.patche: (modem_cm.c:1463) Start dial form apn database...
Wed Feb  4 10:58:20 2026 daemon.info gl_modem.patche: (modem_cm.c:1508) Start trying to dial from apn database...
Wed Feb  4 10:58:21 2026 daemon.err gl_modem.patche: (modem_cm.c:1533) Failed to get MNC length
Wed Feb  4 10:58:21 2026 daemon.info gl_modem.patche: (modem_cm.c:1469) Dial-up is failed using apn database configuration,dialing consumed a total of 1 seconds
Wed Feb  4 10:58:21 2026 daemon.info gl_modem.patche: (modem_cm.c:1488) Exit the dialing process

So this is the bit that needs persuing if we are wanting to get gl_modem to auto configure from the apn/modem databases without having to manually configure modem_1_1 with the iccid of the sim card.

file /etc/config/apnprofile

Looks like this is a way to store manually configured apns.

Works from the MT1300 gui. 
Does not work from the MT3000 gui because it doesn't recognise the modem 23410

How to add giffgaff use:

uci set apnprofile.giffgaff=apnprofile
uci set apnprofile.giffgaff.apn='giffgaff.com'
uci set apnprofile.giffgaff.username='gg'
uci set apnprofile.giffgaff.password='p'
uci set apnprofile.giffgaff.auto='1'
uci set apnprofile.giffgaff.interface='modem_1_1'
uci commit apnprofile

Or edit the file.

So the apnprofile file on a MT1300 has this in for giffgaff:

config rule 'McYMlvCiF4eSDIfF'
option apn 'giffgaff.com'
option protocol 'ncm'
option device '/dev/ttyUSB0'
option username 'gg'
option password 'p'
option auth 'NONE'
option description 'E3372h'
option mtu '1500'
option roaming '1'
option band_enable '0'

kmwan and connction failover

NOTE: /etc/config/kmwan holds a list of what interfaces to track. they must match the glinet expected names
eg: wan wwan tethering modem_1_1_4 etc.

I noticed that once this was fixed, the “Internet” page graphic showed cellular had a connection.