-12-
v7.0
Software
3.4. SIM card
3.4.1. Entering PIN
The
enterPIN()
function allows the user to enter the PIN (Personal Identification Number) of the SIM (Subscriber
Identification Module) card. If the SIM card has no PIN (or the PIN was disabled on the SIM card), it is not necessary
to use this function.
Example for entering the PIN:
{
BG96.enterPIN(“1234”);
}
Besides, there is another function prototype in order to set a new one. It is mandatory to specify the current PIN
number and the new one.
Example for setting a new PIN:
{
BG96.enterPIN(“1234”, ”1111”);
}
Example of entering the PIN number:
www.libelium.com/development/waspmote/examples/nb-iot-01-enter-pin-code
3.4.2. Getting module information
The
getInfo()
function can get more than one information field to the module. This function needs one input
to indicate the type of information requested. The resulting information is stored in
_buffer
, and
_length
is the
number of bytes in the buffer. The information possibilities are:
•
WaspBG96::INFO_HW:
To request the hardware revision
•
WaspBG96::INFO_MANUFACTURER_ID:
To request the manufacturer identifier
•
WaspBG96::INFO_MODEL_ID:
To request the model identifier
•
WaspBG96::INFO_REV_ID:
To request the firmware revision
•
WaspBG96::INFO_IMEI:
To request the IMEI (International Mobile Station Equipment Identity), which is the
unique identifier of the module, similar to a MAC address
•
WaspBG96::INFO_IMSI:
To request the IMSI
•
WaspBG96::INFO_ICCID:
To request the ICCID
Examples of use:
{
// get IMEI number
BG96.getInfo(WaspBG96::INFO_HW);
// get IMSI number
BG96.getInfo(WaspBG96::INFO_IMSI);
// get ICCID number
BG96.getInfo(WaspBG96::INFO_ICCID);
}
Содержание Cat-M
Страница 1: ...NB IoT Cat M Module Networking Guide ...