You might find a need to use your Notecard with an external SIM for certain deployments, for instance, if a device needs to operate in a region that is not currently covered, or if you need to ensure network redundancy for your application. In these cases, provided you are using a Notecarrier which includes an external SIM slot, or you have added one to your own board, the Notecard provides support for switching to an external SIM.
You must know the 3rd-party carrier's Access Point Name (APN) in order to connect to their service. Several carriers will have a website dedicated to manually configuring devices, while other can be discovered using APN discovery websites like apn.global. For example, to operate a Notecard in India, you may wish to use an Airtel SIM with their "Internet" APN.
Name: Airtel
APN: airtelgprs.com
Once you have determined the correct APN, the Notecard requires very minimal
setup to be configured to utilize an external SIM card. The APN can be
configured using the apn
parameter of the
card.wireless
API.
Following on with the Airtel example:
{ "req": "card.wireless", "apn": "airtelgprs.com" }
The default mode
for the Notecard is auto
, which is the appropriate setting
for the majority of scenarios. However, if a Notecard is known to be limited to a
specific region and you want to speed up network registration, you can specify
the frequency band associated with the carrier's service.
This can be accomplished using the mode
parameter of the
card.wireless
API. You can select from modes Cat-M1 (5G eMTC) (m
), Cat-NB1 (5G NB-IoT)
(nb
), and GSM/GPRS/EDGE (2G) (gprs
).
{ "req": "card.wireless", "mode": "m" }
Refer to the
card.wireless
API, for detailed instructions.
- Q: What type of external SIM does the Notecarrier support?
- A: The type of external SIM used is a Nano SIM.
- Q: Can I use an external SIM to access 2G, 3G, 4G/LTE networks?
- A: The answer is two fold. First, it’s up to the 3rd party carrier/SIM provider as to whether or not 2G/3G/4G is available. Second, you must select a wideband Notecard to access 3G or 4G networks.
- Q: Can I specify the frequency band I want to connect to, when multiple frequencies are available (Cat-M1, Cat-NB1, EGPRS)?
- A: Yes. You will need to
select a narrowband Notecard, and
you can specify the network using the
mode
parameter of thecard.wireless
API.
- Q: Does the card.wireless setting take effect immediately – or after a restart of the card?
- A: It takes effect immediately, but is used only when an external SIM is plugged in. The apn setting on card.wireless is applicable only to an external SIM. When there is no SIM, the default carrier will be used, and when there is a SIM, the provided APN (or the default for an internally-supported SIM) will be used.
- Q: Is it possible to programmatically switch between an internal and external SIM card?
- A: The Notecard does automatically recognize and use an external SIM card when present, but programmatic switching between SIMs is not currently supported.