mbed-os/features/cellular
Antti Kauppila 020e15828d Unittests fixed + readme updated
- Unittests were broken and are now fixed
- README.md is updated to have small instructiopn how to run unittests
2018-03-02 14:38:07 +02:00
..
TESTS/cellular/cellular_all Fixed travis-ci. 2018-03-02 14:38:07 +02:00
UNITTESTS Unittests fixed + readme updated 2018-03-02 14:38:07 +02:00
easy_cellular Added use_apn_lookup in mbed_lib.json 2018-03-02 14:38:07 +02:00
framework Added modem_debug_on to cellular device 2018-03-02 14:38:07 +02:00
.gitignore PR review fixed: removed dead code, removed magic numbers. 2018-03-02 14:38:05 +02:00
.mbedignore Unittests added 2018-03-02 14:38:03 +02:00
Makefile.test Unittests added 2018-03-02 14:38:03 +02:00
README.md Unittests fixed + readme updated 2018-03-02 14:38:07 +02:00
junit_xsl.xslt Unittests added 2018-03-02 14:38:03 +02:00
mbed_lib.json Added use_apn_lookup in mbed_lib.json 2018-03-02 14:38:07 +02:00
xsl_script.sh Unittests added 2018-03-02 14:38:03 +02:00

README.md

Mbed Cellular Connectivity

This is the Github repo for Mbed cellular connectivity:

easy_cellular/
    EasyCellularConnection  Simplified cellular usage based on CellularBase.h
    CellularConnectionUtil  An utility class for cellular connection

framework/
    API         Application Programming Interface for cellular connectivity
    AT          AT implementation based on 3GPP TS 27.007 specification
    common      Common and utility sources
    mux         MUX implementation based on 3GPP TS 27.010 specification
    targets     Vendor specific cellular module adaptations

Known Limitations

Please note that as a first release framework is subject to change and may break code that uses it.

Only UDP is supported when using AT commands to control sockets in an IP stack built into the cellular modem. If TCP is required use PPP/LWIP stack.

Supported Modules

Currently supported cellular modules can be found in the framework/targets/ folder, where also support for new cellular modules are added.

Cellular Configuration

Cellular defaults can be changed in mbed_app.json configuration file:

"config": {
    "cellular_plmn": {
        "help": "PLMN selection, 0=auto",
        "value": 0
    },
    "apn": {
        "help": "Access point name, e.g. internet",
        "value": "\"internet\""
    },
    "cellular_sim_pin": {
        "help": "PIN code",
        "value": "\"1234\""
    }
}

Debug Traces

Debug tracing level can be defined in mbed_app.json configuration file:

"target_overrides": {
    "*": {
        "target.features_add": ["COMMON_PAL"],
        "mbed-trace.enable": true,
        "platform.stdio-convert-newlines": true,
        "platform.stdio-baud-rate": 115200,
        "platform.default-serial-baud-rate": 115200
    }
},
"config": {
    "trace-level": {
        "help": "Options are TRACE_LEVEL_ERROR,TRACE_LEVEL_WARN,TRACE_LEVEL_INFO,TRACE_LEVEL_DEBUG",
        "macro_name": "MBED_TRACE_MAX_LEVEL",
        "value": "TRACE_LEVEL_INFO"
    }
}

Unit tests

UNITTESTS folder contains unittests for Cellular specific classes. Unittests are based on stubbing method and some of the platform headers has been hacked under target_h/ folder to get things working.

You can run those tests locally by running ./run_tests script under UNITTESTS/ folder.

you will need at least following applications: cpputest, gcov and lcov (genhtml) for running the tests. After run_tests script has been run you can find test results under UNITTESTS/results folder and line & function coverages under UNITTESTS/coverages folder