Library that implements the CellularInterface using PPP and LWIP on the mbed MCU. May be used on the C027 and C030 (non-N2xx flavour) boards from mbed 5.5 onwards.

Dependents:   example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client

Committer:
RobMeades
Date:
Wed Jun 14 09:27:55 2017 +0000
Revision:
0:44dd95724bc2
Child:
1:80ec3fccad9e
Initial commit of u-blox PPP cellular interface, which implements a data connection using LWIP and PPP on the MCU.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RobMeades 0:44dd95724bc2 1 {
RobMeades 0:44dd95724bc2 2 "config": {
RobMeades 0:44dd95724bc2 3 "platform": {
RobMeades 0:44dd95724bc2 4 "help": "The platform for the cellular feature, e.g. UBLOX or MTS_DRAGONFLY",
RobMeades 0:44dd95724bc2 5 "value": "UBLOX"
RobMeades 0:44dd95724bc2 6 },
RobMeades 0:44dd95724bc2 7 "buffer-size": {
RobMeades 0:44dd95724bc2 8 "value": 0
RobMeades 0:44dd95724bc2 9 },
RobMeades 0:44dd95724bc2 10 "debug-on": {
RobMeades 0:44dd95724bc2 11 "help": "Set to true to get AT interface debug",
RobMeades 0:44dd95724bc2 12 "value": false
RobMeades 0:44dd95724bc2 13 },
RobMeades 0:44dd95724bc2 14 "run-sim-pin-change-tests": {
RobMeades 0:44dd95724bc2 15 "help": "If 1, run the SIM PIN change tests, for which default-pin must be defined",
RobMeades 0:44dd95724bc2 16 "value": 0
RobMeades 0:44dd95724bc2 17 },
RobMeades 0:44dd95724bc2 18 "default-pin": {
RobMeades 0:44dd95724bc2 19 "help": "The current value of the SIM PIN as a string; if PIN is enabled on your SIM, or you wish to run the SIM PIN change tests, you must put the PIN for your SIM here",
RobMeades 0:44dd95724bc2 20 "value": "\"1234\""
RobMeades 0:44dd95724bc2 21 },
RobMeades 0:44dd95724bc2 22 "apn": {
RobMeades 0:44dd95724bc2 23 "help": "The APN string to use for this SIM/network, set to 0 if none",
RobMeades 0:44dd95724bc2 24 "value": 0
RobMeades 0:44dd95724bc2 25 },
RobMeades 0:44dd95724bc2 26 "username": {
RobMeades 0:44dd95724bc2 27 "help": "The user name string to use for this APN, set to zero if none",
RobMeades 0:44dd95724bc2 28 "value": 0
RobMeades 0:44dd95724bc2 29 },
RobMeades 0:44dd95724bc2 30 "password": {
RobMeades 0:44dd95724bc2 31 "help": "The password string to use for this APN, set to 0 if none",
RobMeades 0:44dd95724bc2 32 "value": 0
RobMeades 0:44dd95724bc2 33 },
RobMeades 0:44dd95724bc2 34 "alt-pin": {
RobMeades 0:44dd95724bc2 35 "help": "The SIM PIN (as a string) that will be used for SIM PIN change tests (the SIM PIN will be changed back to default-pin afterwards)",
RobMeades 0:44dd95724bc2 36 "value": "\"9876\""
RobMeades 0:44dd95724bc2 37 },
RobMeades 0:44dd95724bc2 38 "incorrect-pin": {
RobMeades 0:44dd95724bc2 39 "help": "A SIM PIN (as a string) that should not be the same as default-pin or alt-pin",
RobMeades 0:44dd95724bc2 40 "value": "\"1530\""
RobMeades 0:44dd95724bc2 41 },
RobMeades 0:44dd95724bc2 42 "echo-server": {
RobMeades 0:44dd95724bc2 43 "help": "The URL string of the UDP/TCP echo server to use during testing; if this is not defined, no echo tests will be run",
RobMeades 0:44dd95724bc2 44 "value": "\"yourechoserver.com\""
RobMeades 0:44dd95724bc2 45 },
RobMeades 0:44dd95724bc2 46 "echo-udp-port": {
RobMeades 0:44dd95724bc2 47 "help": "The port to connect to on echo-server for UDP testing",
RobMeades 0:44dd95724bc2 48 "value": 7
RobMeades 0:44dd95724bc2 49 },
RobMeades 0:44dd95724bc2 50 "echo-tcp-port": {
RobMeades 0:44dd95724bc2 51 "help": "The port to connect to on echo-server for TCP testing",
RobMeades 0:44dd95724bc2 52 "value": 7
RobMeades 0:44dd95724bc2 53 },
RobMeades 0:44dd95724bc2 54 "ntp-server": {
RobMeades 0:44dd95724bc2 55 "help": "The URL string of the NTP server to use during testing",
RobMeades 0:44dd95724bc2 56 "value": "\"2.pool.ntp.org\""
RobMeades 0:44dd95724bc2 57 },
RobMeades 0:44dd95724bc2 58 "ntp-port": {
RobMeades 0:44dd95724bc2 59 "help": "The port to connect to on ntp-server",
RobMeades 0:44dd95724bc2 60 "value": 123
RobMeades 0:44dd95724bc2 61 },
RobMeades 0:44dd95724bc2 62 "local-port": {
RobMeades 0:44dd95724bc2 63 "help": "The local port to use when testing sock.bind()",
RobMeades 0:44dd95724bc2 64 "value": 16
RobMeades 0:44dd95724bc2 65 },
RobMeades 0:44dd95724bc2 66 "udp-max-packet-size": {
RobMeades 0:44dd95724bc2 67 "help": "The maximum UDP packet size to use when testing; 1024 bytes is the limit at the AT interface but 508 bytes is considered more reliable for the public internet",
RobMeades 0:44dd95724bc2 68 "value": 508
RobMeades 0:44dd95724bc2 69 },
RobMeades 0:44dd95724bc2 70 "tcp-max-packet-size": {
RobMeades 0:44dd95724bc2 71 "help": "The maximum TCP packet size to use when testing",
RobMeades 0:44dd95724bc2 72 "value": 1500
RobMeades 0:44dd95724bc2 73 }
RobMeades 0:44dd95724bc2 74 },
RobMeades 0:44dd95724bc2 75 "target_overrides": {
RobMeades 0:44dd95724bc2 76 "*": {
RobMeades 0:44dd95724bc2 77 "lwip.ipv4-enabled": true,
RobMeades 0:44dd95724bc2 78 "lwip.ipv6-enabled": false,
RobMeades 0:44dd95724bc2 79 "lwip.ethernet-enabled": false,
RobMeades 0:44dd95724bc2 80 "lwip.ppp-enabled": true,
RobMeades 0:44dd95724bc2 81 "lwip.tcp-enabled": true,
RobMeades 0:44dd95724bc2 82 "target.features_add": ["LWIP", "COMMON_PAL"],
RobMeades 0:44dd95724bc2 83 "platform.stdio-convert-newlines": true,
RobMeades 0:44dd95724bc2 84 "platform.stdio-baud-rate": 9600,
RobMeades 0:44dd95724bc2 85 "platform.default-serial-baud-rate": 115200,
RobMeades 0:44dd95724bc2 86 "lwip.debug-enabled": false,
RobMeades 0:44dd95724bc2 87 "lwip.enable-ppp-trace": false,
RobMeades 0:44dd95724bc2 88 "lwip.use-mbed-trace": false,
RobMeades 0:44dd95724bc2 89 "mbed-trace.enable": 1
RobMeades 0:44dd95724bc2 90 }
RobMeades 0:44dd95724bc2 91 }
RobMeades 0:44dd95724bc2 92 }