.. | |||
README.md | 4 years ago | ||
STModCellular.cpp | 4 years ago | ||
STModCellular.h | 4 years ago | ||
mbed_lib.json | 4 years ago |
This library allows enabling the cellular module that is connected to the STMOD+ connector of the board.
Currently supported cellular modules are Quectel UG96 and BG96 expansion boards that are included in p-l496g-cell01 and p-l496g-cell02 packs.
The STMOD+ Connector specification can be found here.
Here is the used mbed_app.json:
{ "config": { "cellular-sim-pin" : { "help": "PIN code", "value": "\"1234\"" }, "apn": { "help": "The APN string to use for this SIM/network, set to 0 if none", "value": "\"APN\"" }, "username": { "help": "The user name string to use for this APN, set to zero if none", "value": 0 }, "password": { "help": "The password string to use for this APN, set to 0 if none", "value": 0 } }, "target_overrides": { "DISCO_L496AG": { "target.macros_add": ["CELLULAR_DEVICE=STModCellular"], "target.components_add": ["STMOD_CELLULAR"], "stmod_cellular.provide-default": "true" } } }
$ mbed test -t ARM -m DISCO_L496AG -v -n features-cellular-*
https://github.com/ARMmbed/mbed-os-example-cellular
mbed import mbed-os-example-cellular cd mbed-os-example-cellular <edit mbed_app.json file as explained in the example: APN, PIN,... > mbed compile -t GCC_ARM -m DISCO_L496AG --flash
Then check the serial console (serial baudrate set to 115200 bit/s)