You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/cellular/README.md
+25-46Lines changed: 25 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,21 @@
2
2
3
3
This is the Github repo for Mbed cellular connectivity:
4
4
5
-
easy_cellular/
6
-
EasyCellularConnection Simplified cellular usage based on `CellularBase.h`
7
-
CellularConnectionUtil A utility class for cellular connection
8
-
9
5
framework/
10
6
API Application Programming Interface for cellular connectivity
11
7
AT AT implementation based on 3GPP TS 27.007 specification
12
8
common Common and utility sources
9
+
device Implementation of cellular device and state machine
13
10
targets Vendor specific cellular module adaptations
14
11
15
12
TESTS Cellular Greentea test
16
13
17
-
UNITTESTS Cellular unit test
14
+
**Note:** Application developers should use only the `API` folder.
18
15
19
16
## Known limitations
20
17
21
18
**Please note that this is a first release of Cellular framework and is subject to further development in future.**
22
19
23
-
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 the PPP/LWIP stack.
24
-
25
20
## Supported modules
26
21
27
22
You can find currently supported cellular modules in the `framework/targets/` folder, where we also add support for new cellular modules.
@@ -30,57 +25,41 @@ You can find currently supported cellular modules in the `framework/targets/` fo
30
25
31
26
You can change cellular defaults in the `mbed_lib.json` configuration file.
32
27
33
-
You can also override cellular defaults in the `mbed_app.json` configuration file:
34
-
35
-
"config": {
36
-
"cellular_plmn": {
37
-
"help": "PLMN selection, 0=auto",
38
-
"value": 0
39
-
},
40
-
"apn": {
41
-
"help": "Access point name, e.g. internet",
42
-
"value": "\"internet\""
43
-
},
44
-
"cellular_sim_pin": {
45
-
"help": "PIN code",
46
-
"value": "\"1234\""
47
-
}
48
-
}
49
-
50
28
## Debug traces
51
29
52
30
You can define the debug tracing level in the `mbed_app.json` configuration file:
53
-
54
-
"target_overrides": {
55
-
"*": {
56
-
"mbed-trace.enable": true,
57
-
"platform.stdio-convert-newlines": true,
58
-
"platform.stdio-baud-rate": 115200,
59
-
"platform.default-serial-baud-rate": 115200
60
-
}
61
-
},
62
-
"config": {
63
-
"trace-level": {
64
-
"help": "Options are TRACE_LEVEL_ERROR,TRACE_LEVEL_WARN,TRACE_LEVEL_INFO,TRACE_LEVEL_DEBUG",
65
-
"macro_name": "MBED_TRACE_MAX_LEVEL",
66
-
"value": "TRACE_LEVEL_INFO"
67
-
}
31
+
```
32
+
"target_overrides": {
33
+
"*": {
34
+
"mbed-trace.enable": true,
35
+
"platform.stdio-convert-newlines": true,
36
+
"platform.stdio-baud-rate": 115200,
37
+
"platform.default-serial-baud-rate": 115200
38
+
}
39
+
},
40
+
"config": {
41
+
"trace-level": {
42
+
"help": "Options are TRACE_LEVEL_ERROR,TRACE_LEVEL_WARN,TRACE_LEVEL_INFO,TRACE_LEVEL_DEBUG",
43
+
"macro_name": "MBED_TRACE_MAX_LEVEL",
44
+
"value": "TRACE_LEVEL_INFO"
68
45
}
46
+
}
47
+
```
69
48
70
49
## Greentea tests
71
50
72
-
The `TESTS` folder contains Greentea tests for cellular specific classes. You need to give relevant configuration file with `--app-config` parameter, e.g.:
51
+
The `TESTS` folder contains Greentea tests for cellular specific classes. You need to give relevant configuration file with `--app-config` parameter, such as:
73
52
74
-
mbed test -n features-cellular-tests-* --app-config features\cellular\TESTS\socket\udp\template_mbed_app.json.txt -v
53
+
```
54
+
mbed test -n features-cellular-tests-* --app-config features\cellular\TESTS\socket\udp\template_mbed_app.json.txt -v
55
+
```
75
56
76
-
Note that Greentea tests use SIM PIN so you need to change that or your SIM card may get locked.
57
+
**Note:**Greentea tests use SIM PIN, so you need to change that or your SIM card may get locked.
77
58
78
59
## Unit tests
79
60
80
-
The `UNITTESTS` folder contains unit tests for cellular specific classes. Unit tests are based on the stubbing method.
81
-
82
-
You can run those tests locally by running `./run_tests` script under the `UNITTESTS/` folder.
61
+
Cellular unit tests are in Mbed OS root `UNITTESTS`. Unit tests are based on the stubbing method.
83
62
84
63
You need the following applications: `cpputest`, `gcov` and `lcov` (genhtml) for running the tests.
85
64
86
-
After you have run the `run_tests` script, you can find test results under`UNITTESTS/results` folder and line and function coverages under the `UNITTESTS/coverages` folder.
65
+
After you run the `run_tests` script, you can find test results in`UNITTESTS/results`, and line and function coverages in `UNITTESTS/coverages`.
0 commit comments