Skip to content

Commit 32ac21b

Browse files
authored
Merge pull request #688 from david-cermak/fix/modem_docs_limitations
[modem]: bump: 1.1.0 -> 1.2.0
2 parents c5653ff + 5b06a3b commit 32ac21b

File tree

4 files changed

+67
-2
lines changed

4 files changed

+67
-2
lines changed

components/esp_modem/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(modem): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py esp_modem
55
tag_format: modem-v$version
6-
version: 1.1.0
6+
version: 1.2.0
77
version_files:
88
- idf_component.yml

components/esp_modem/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

3+
## [1.2.0](https://github.com/espressif/esp-protocols/commits/modem-v1.2.0)
4+
5+
### Features
6+
7+
- Add support for guessing mode ([52598e5f](https://github.com/espressif/esp-protocols/commit/52598e5f))
8+
- Delete CMUX internal implementation even if terminal exit fails ([0e0cbd6b](https://github.com/espressif/esp-protocols/commit/0e0cbd6b))
9+
- Add support for handling URC ([1b6a3b3b](https://github.com/espressif/esp-protocols/commit/1b6a3b3b), [#180](https://github.com/espressif/esp-protocols/issues/180))
10+
- add ability to change ESP_MODEM_C_API_STR_MAX from Kconfig ([17909892](https://github.com/espressif/esp-protocols/commit/17909892))
11+
- Added target test config with CHAP authentication ([f8ae7def](https://github.com/espressif/esp-protocols/commit/f8ae7def))
12+
- example add esp32p4 usb support ([adafeae5](https://github.com/espressif/esp-protocols/commit/adafeae5))
13+
- Publish mbedtls component ([0140455f](https://github.com/espressif/esp-protocols/commit/0140455f))
14+
- host test support of the latest ESP-IDF release ([3f74b4e8](https://github.com/espressif/esp-protocols/commit/3f74b4e8))
15+
16+
### Bug Fixes
17+
18+
- Fix console example to use urc/detect features ([1a9eaf3e](https://github.com/espressif/esp-protocols/commit/1a9eaf3e))
19+
- Update target test builds to use external Catch2 ([554f022c](https://github.com/espressif/esp-protocols/commit/554f022c))
20+
- Fix arguments names when spawn esp_modem_xxx declarations ([b6792c52](https://github.com/espressif/esp-protocols/commit/b6792c52))
21+
- Remove catch dependency ([c3480768](https://github.com/espressif/esp-protocols/commit/c3480768))
22+
- Examples: use local configs for MQTT topic/data ([f5c13b92](https://github.com/espressif/esp-protocols/commit/f5c13b92))
23+
- Fixed clang-tidy warnings ([70fa3af7](https://github.com/espressif/esp-protocols/commit/70fa3af7))
24+
- Fix CI build per IDFv5.3 ([d0c17ef0](https://github.com/espressif/esp-protocols/commit/d0c17ef0))
25+
- Fixed UART task to check for buffered data periodically ([4bdd90cc](https://github.com/espressif/esp-protocols/commit/4bdd90cc), [#536](https://github.com/espressif/esp-protocols/issues/536))
26+
- Cleanup unused configs from PPPoS example ([08a62ccc](https://github.com/espressif/esp-protocols/commit/08a62ccc))
27+
- Update CMUX example with SIM7070_gnss cleaned-up ([56fe5327](https://github.com/espressif/esp-protocols/commit/56fe5327))
28+
- Update console example with SIM7070_gnss format comments ([5baaf542](https://github.com/espressif/esp-protocols/commit/5baaf542))
29+
- Fix remaining print format warnings ([3b80181d](https://github.com/espressif/esp-protocols/commit/3b80181d))
30+
31+
### Updated
32+
33+
- docs(modem): Fix esp_modem_at_raw() description (C-API) ([492a6a00](https://github.com/espressif/esp-protocols/commit/492a6a00))
34+
- ci(common): updated github actions(checkout, upload, download) v3 to 4, Ubuntu 20.04 to v22.04 ([a23a0027](https://github.com/espressif/esp-protocols/commit/a23a0027))
35+
336
## [1.1.0](https://github.com/espressif/esp-protocols/commits/modem-v1.1.0)
437

538
### Features

components/esp_modem/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.1.0"
1+
version: "1.2.0"
22
description: Library for communicating with cellular modems in command and data modes
33
url: https://github.com/espressif/esp-protocols/tree/master/components/esp_modem
44
issues: https://github.com/espressif/esp-protocols/issues

docs/esp_modem/en/README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,35 @@ this patch to adapt the exit sequence https://github.com/espressif/esp-protocols
234234
if ((frame_header[3] & 1) == 0) {
235235
if (frame_header_offset + frame.len <= 4) {
236236
frame_header_offset += frame.len;
237+
238+
4) Device CAVLI C16QS does not correctly enter CMUX mode with esp_modem.
239+
The CMUX as defined in 3GPP TS 27.010: SABM response (paragraph 5.4.1)
240+
should be a UA frame (upon success, DM frame on failure).
241+
This device however responds with 0x3F, which is neither UA nor DM.
242+
You can apply the below patch to adapt the entry sequence
243+
244+
::
245+
246+
diff --git a/components/esp_modem/src/esp_modem_cmux.cpp b/components/esp_modem/src/esp_modem_cmux.cpp
247+
index c47e13b..7afbf73 100644
248+
--- a/components/esp_modem/src/esp_modem_cmux.cpp
249+
+++ b/components/esp_modem/src/esp_modem_cmux.cpp
250+
@@ -137,7 +137,8 @@ bool CMux::data_available(uint8_t *data, size_t len)
251+
} else {
252+
return false;
253+
}
254+
- } else if (data == nullptr && type == (FT_UA | PF) && len == 0) { // notify the initial SABM command
255+
+ } else if (data == nullptr && (type == (FT_UA | PF) || type == 0x3f) && len == 0) { // notify the initial SABM command
256+
Scoped<Lock> l(lock);
257+
sabm_ack = dlci;
258+
} else if (data == nullptr && dlci > 0) {
259+
@@ -238,8 +239,7 @@ bool CMux::on_header(CMuxFrame &frame)
260+
type = frame_header[2];
261+
// Sanity check for expected values of DLCI and type,
262+
// since CRC could be evaluated after the frame payload gets received
263+
- if (dlci > MAX_TERMINALS_NUM || (frame_header[1] & 0x01) == 0 ||
264+
- (((type & FT_UIH) != FT_UIH) && type != (FT_UA | PF) ) ) {
265+
+ if (dlci > MAX_TERMINALS_NUM) {
266+
recover_protocol(protocol_mismatch_reason::UNEXPECTED_HEADER);
267+
return true;
268+
}

0 commit comments

Comments
 (0)