SIM
To get your modem going with a new SIM card and make things as easy as possible, follow these steps:
1. Activate the SIM Card¶
This might not be necessary in your country, but at least in the EU you will have to activate your SIM card with your provider. You can usually do this on the website of your chosen provider or in person when you buy the SIM card. You will need some kind of ID.
2. Test in Phone & disable PIN¶
Insert your SIM card in a phone, make sure it registers with the network and that you can connect to the internet. Preferably - if your phone allows it - lock it to 4G/LTE.
In the security settings, disable the PIN. Reboot your phone, make sure it does not ask for the PIN anymore and that you still register with the network and connect to the internet.
3. Test in Modem¶
Insert your SIM card in the modem and start the streamer.
NOTE: You will need to start the streamer with the SIM card inserted or you will have to manually reboot the modem after inserting the SIM card: AT+CFUN=1,1
Web Interface¶
TODO
CLI¶
From the CLI connect to the modem:
Check that the modem is available¶
Check that SIM is recognized and PIN is disabled¶
Check tat the SIM is registered with the carrier¶
On success you should always see a 7 at the end, indicating that the access technology is LTE.
23201 is the carrier code. First three numbers are country code, last two carrier code - in our case 232 is Austria and 01 is A1.
Check context and IP assignment¶
AT+CGDCONT?
# SUCCESS IPv4 AND v6 (1)
+CGDCONT: 1,"IPV4V6","ctnet","IPV4:10.0.28.161 IPV62001:4BB8:02CC:18F7:0000:0000:E33A:AA8E",,,,0,,,,,,1,,
# SUCCESS IPv4 (2)
+CGDCONT: 1,"IP","magenta","10.145.10.20",,,,,,,,,,,,
# FAIL
In case (1) we have an IPV4V6 context. Also we are using the ctnet APN - for chinese telekom. But we are not registered to this carrier - still we get an IP address and internet is working. This means that most likely the provider ignores the wrong APN and rewrites to the default APN on the backend.
When checking the public IP address, it turns out, that it in-fact belongs to A1.
Setting APN¶
We want to prefer IPv4 and in cases where no APN is assigned, we can do so ourselves. A valid APN might not be necessary and the provider might ignore it, but it is a good idea to use the official one.
Automatically This will set context 1 to an IPv4 context without an APN assigned, it should then be automatically assigned by the carrier after modem reboots:
Check:
Manually Explicitly set the APN of your carrier:
Check:
Switching SIMs¶
Switching between SIM cards is easily possible if you ran through the setup steps above. Just insert the new SIM card and powercycle the streamer (or reset the modem via AT commands).
Quirks¶
We have found that some SIM cards will not automatically register when roaming is enabled. This means that you should always disable roaming when setting or locking bands:
Roaming is the third to last parameter, you can verify it the following way:
If your SIM does no longer automatically connect, pass the parameter to disable roaming and see the SIM automagically register:
Alternatively you can try forcing registration with a certain carrier:
Miscelanious and maybe helpful¶
Full reset and auto connect setup
Checking things:
AT*BAND command explained¶
AT*BAND=<mode>,<GSMband>,<UMTSband>,<LTEbandH>,<LTEbandL>,<roamingConfig>,<srvDom>,<bandPriorityFlag>
mode5 only - LTE networkGSMband0 only - not relevantUMTSband0 only - not relevantLTEbandHdepends on regionLTEbandLdepends on regionroamingConfig0,1,2 (yes, no, no-change)srvDomcan only be 1bandPriorityFlag0,1,2 (default, TDD, FDD)