Cellular example for BG96 module. In addition to default example integration of GNSS module is presented. Tested on Hani-IoT board with Shiratech LTE CAT-M1/NB1 Arduino Shield containing BG96 module.

Dependencies:   BG96_GNSS

mbed_app.json

Committer:
Pawel Zarembski
Date:
2020-03-05
Revision:
1:3e3e200fa4dd
Parent:
0:8fb2a7fbc33a

File content as of revision 1:3e3e200fa4dd:

{
    "config": {
        "sock-type": "TCP",
        "echo-server-hostname": {
            "help": "Echo server host name.",
            "value": "\"echo.mbedcloudtesting.com\""
        },
        "echo-server-port": {
            "help": "Echo server port number.",
            "value": 7
        },
        "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"
        }
  },
    "target_overrides": {
        "*": {
            "target.network-default-interface-type": "CELLULAR",
            "mbed-trace.enable": false,
            "lwip.ipv4-enabled": true,
            "ppp.ipv4-enabled": true,
            "lwip.ipv6-enabled": true,
            "ppp.ipv6-enabled": true,
            "lwip.ethernet-enabled": false,
            "lwip.ppp-enabled": false,
            "lwip.tcp-enabled": true,
            "platform.stdio-convert-newlines": true,
            "platform.stdio-baud-rate": 115200,
            "platform.default-serial-baud-rate": 115200,
            "platform.stdio-buffered-serial": true,
            "cellular.debug-at": false,
            "cellular.use-apn-lookup": true,
            "nsapi.default-cellular-sim-pin": null,
            "nsapi.default-cellular-plmn": null,
            "nsapi.default-cellular-apn": null,
            "nsapi.default-cellular-username": null,
            "nsapi.default-cellular-password": null,
            "QUECTEL_BG96.tx": "D1",
            "QUECTEL_BG96.rx": "D0",
            "QUECTEL_BG96.pwr": "A5",
            "QUECTEL_BG96.rst": "A4",
            "QUECTEL_BG96.provide-default": true,
            "QUECTEL_BG96.polarity": 1
        }
    }
}