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
TESTS/unit_tests/default/template_mbed_app.txt@3:9863dcade75d, 2018-02-28 (annotated)
- Committer:
- RobMeades
- Date:
- Wed Feb 28 17:33:50 2018 +0000
- Revision:
- 3:9863dcade75d
- Parent:
- 1:80ec3fccad9e
PR 6032 into mbed-os changed the signature of the PPP connection_status_cb() (it now carries two parameters rather than one). This change fixes the UbloxPPPCellularInterface to work with that PR.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RobMeades | 0:44dd95724bc2 | 1 | { |
RobMeades | 0:44dd95724bc2 | 2 | "config": { |
RobMeades | 0:44dd95724bc2 | 3 | "debug-on": { |
RobMeades | 0:44dd95724bc2 | 4 | "help": "Set to true to get AT interface debug", |
RobMeades | 0:44dd95724bc2 | 5 | "value": false |
RobMeades | 0:44dd95724bc2 | 6 | }, |
RobMeades | 0:44dd95724bc2 | 7 | "run-sim-pin-change-tests": { |
RobMeades | 0:44dd95724bc2 | 8 | "help": "If 1, run the SIM PIN change tests, for which default-pin must be defined", |
RobMeades | 0:44dd95724bc2 | 9 | "value": 0 |
RobMeades | 0:44dd95724bc2 | 10 | }, |
RobMeades | 0:44dd95724bc2 | 11 | "default-pin": { |
RobMeades | 0:44dd95724bc2 | 12 | "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 | 13 | "value": "\"1234\"" |
RobMeades | 0:44dd95724bc2 | 14 | }, |
RobMeades | 0:44dd95724bc2 | 15 | "apn": { |
RobMeades | 0:44dd95724bc2 | 16 | "help": "The APN string to use for this SIM/network, set to 0 if none", |
RobMeades | 0:44dd95724bc2 | 17 | "value": 0 |
RobMeades | 0:44dd95724bc2 | 18 | }, |
RobMeades | 0:44dd95724bc2 | 19 | "username": { |
RobMeades | 0:44dd95724bc2 | 20 | "help": "The user name string to use for this APN, set to zero if none", |
RobMeades | 0:44dd95724bc2 | 21 | "value": 0 |
RobMeades | 0:44dd95724bc2 | 22 | }, |
RobMeades | 0:44dd95724bc2 | 23 | "password": { |
RobMeades | 0:44dd95724bc2 | 24 | "help": "The password string to use for this APN, set to 0 if none", |
RobMeades | 0:44dd95724bc2 | 25 | "value": 0 |
RobMeades | 0:44dd95724bc2 | 26 | }, |
RobMeades | 0:44dd95724bc2 | 27 | "alt-pin": { |
RobMeades | 0:44dd95724bc2 | 28 | "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 | 29 | "value": "\"9876\"" |
RobMeades | 0:44dd95724bc2 | 30 | }, |
RobMeades | 0:44dd95724bc2 | 31 | "incorrect-pin": { |
RobMeades | 0:44dd95724bc2 | 32 | "help": "A SIM PIN (as a string) that should not be the same as default-pin or alt-pin", |
RobMeades | 0:44dd95724bc2 | 33 | "value": "\"1530\"" |
RobMeades | 0:44dd95724bc2 | 34 | }, |
RobMeades | 0:44dd95724bc2 | 35 | "echo-server": { |
RobMeades | 0:44dd95724bc2 | 36 | "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 | 37 | "value": "\"yourechoserver.com\"" |
RobMeades | 0:44dd95724bc2 | 38 | }, |
RobMeades | 0:44dd95724bc2 | 39 | "echo-udp-port": { |
RobMeades | 0:44dd95724bc2 | 40 | "help": "The port to connect to on echo-server for UDP testing", |
RobMeades | 0:44dd95724bc2 | 41 | "value": 7 |
RobMeades | 0:44dd95724bc2 | 42 | }, |
RobMeades | 0:44dd95724bc2 | 43 | "echo-tcp-port": { |
RobMeades | 0:44dd95724bc2 | 44 | "help": "The port to connect to on echo-server for TCP testing", |
RobMeades | 0:44dd95724bc2 | 45 | "value": 7 |
RobMeades | 0:44dd95724bc2 | 46 | }, |
RobMeades | 0:44dd95724bc2 | 47 | "ntp-server": { |
RobMeades | 0:44dd95724bc2 | 48 | "help": "The URL string of the NTP server to use during testing", |
RobMeades | 0:44dd95724bc2 | 49 | "value": "\"2.pool.ntp.org\"" |
RobMeades | 0:44dd95724bc2 | 50 | }, |
RobMeades | 0:44dd95724bc2 | 51 | "ntp-port": { |
RobMeades | 0:44dd95724bc2 | 52 | "help": "The port to connect to on ntp-server", |
RobMeades | 0:44dd95724bc2 | 53 | "value": 123 |
RobMeades | 0:44dd95724bc2 | 54 | }, |
RobMeades | 0:44dd95724bc2 | 55 | "local-port": { |
RobMeades | 0:44dd95724bc2 | 56 | "help": "The local port to use when testing sock.bind()", |
RobMeades | 0:44dd95724bc2 | 57 | "value": 16 |
RobMeades | 0:44dd95724bc2 | 58 | }, |
RobMeades | 0:44dd95724bc2 | 59 | "udp-max-packet-size": { |
RobMeades | 0:44dd95724bc2 | 60 | "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 | 61 | "value": 508 |
RobMeades | 0:44dd95724bc2 | 62 | }, |
RobMeades | 0:44dd95724bc2 | 63 | "tcp-max-packet-size": { |
RobMeades | 0:44dd95724bc2 | 64 | "help": "The maximum TCP packet size to use when testing", |
RobMeades | 0:44dd95724bc2 | 65 | "value": 1500 |
RobMeades | 0:44dd95724bc2 | 66 | } |
RobMeades | 0:44dd95724bc2 | 67 | }, |
RobMeades | 0:44dd95724bc2 | 68 | "target_overrides": { |
RobMeades | 0:44dd95724bc2 | 69 | "*": { |
rob.meades@u-blox.com | 1:80ec3fccad9e | 70 | "target.features_add": ["LWIP", "COMMON_PAL"], |
rob.meades@u-blox.com | 1:80ec3fccad9e | 71 | "platform.stdio-convert-newlines": true, |
RobMeades | 0:44dd95724bc2 | 72 | "lwip.ipv4-enabled": true, |
RobMeades | 0:44dd95724bc2 | 73 | "lwip.ipv6-enabled": false, |
RobMeades | 0:44dd95724bc2 | 74 | "lwip.ethernet-enabled": false, |
RobMeades | 0:44dd95724bc2 | 75 | "lwip.ppp-enabled": true, |
RobMeades | 0:44dd95724bc2 | 76 | "lwip.tcp-enabled": true, |
RobMeades | 0:44dd95724bc2 | 77 | "lwip.debug-enabled": false, |
RobMeades | 0:44dd95724bc2 | 78 | "lwip.enable-ppp-trace": false, |
RobMeades | 0:44dd95724bc2 | 79 | "lwip.use-mbed-trace": false, |
RobMeades | 0:44dd95724bc2 | 80 | "mbed-trace.enable": 1 |
RobMeades | 0:44dd95724bc2 | 81 | } |
RobMeades | 0:44dd95724bc2 | 82 | } |
RobMeades | 0:44dd95724bc2 | 83 | } |