Skip to content

Commit 849fe7b

Browse files
authored
Merge pull request #698 from david-cermak/fix/modem_minor_fixes_on_1.2
[modem]: Support for URC handler in C-API -> v1.2.1
2 parents b65cff3 + 5eadf1e commit 849fe7b

File tree

20 files changed

+84
-72
lines changed

20 files changed

+84
-72
lines changed

.github/workflows/modem__build-host-tests.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ jobs:
1313
name: Build examples
1414
strategy:
1515
matrix:
16-
idf_ver: ["latest", "release-v4.4", "release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3"]
16+
idf_ver: ["latest", "release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4"]
1717
example: ["pppos_client", "modem_console", "modem_tcp_client", "ap_to_pppos", "simple_cmux_client"]
18-
exclude:
19-
- idf_ver: "release-v4.4"
20-
example: modem_tcp_client
2118
include:
2219
- idf_ver: "release-v5.0"
2320
example: "simple_cmux_client"
@@ -26,13 +23,7 @@ jobs:
2623
runs-on: ubuntu-22.04
2724
container: espressif/idf:${{ matrix.idf_ver }}
2825
steps:
29-
- name: Check out code (v3) # @v4 failed due to Node 20's requirement, incompatible with older IDF versions
30-
if: matrix.idf_ver != 'latest' && matrix.idf_ver < 'release-v5.0'
31-
uses: actions/checkout@v3
32-
with:
33-
path: protocols
34-
- name: Check out code (v4)
35-
if: matrix.idf_ver == 'latest' || matrix.idf_ver >= 'release-v5.0'
26+
- name: Check out code
3627
uses: actions/checkout@v4
3728
with:
3829
path: protocols
@@ -53,7 +44,7 @@ jobs:
5344
name: Build tests
5445
strategy:
5546
matrix:
56-
idf_ver: ["release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "latest"]
47+
idf_ver: ["release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4", "latest"]
5748
test: ["target", "target_ota", "target_iperf"]
5849

5950
runs-on: ubuntu-22.04

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.2.0
6+
version: 1.2.1
77
version_files:
88
- idf_component.yml

components/esp_modem/CHANGELOG.md

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

3+
## [1.2.1](https://github.com/espressif/esp-protocols/commits/modem-v1.2.1)
4+
5+
### Bug Fixes
6+
7+
- Use higher GPIO range to support new chips ([428fdbbd](https://github.com/espressif/esp-protocols/commit/428fdbbd), [#558](https://github.com/espressif/esp-protocols/issues/558))
8+
- Remove tests and support for IDFv4.4, added IDFv5.4 ([433a033f](https://github.com/espressif/esp-protocols/commit/433a033f))
9+
- Fix typo GENETIC -> GENERIC in mode types ([090b1ff8](https://github.com/espressif/esp-protocols/commit/090b1ff8), [#667](https://github.com/espressif/esp-protocols/issues/667))
10+
- Add support for URC handler into C-API ([295d99df](https://github.com/espressif/esp-protocols/commit/295d99df), [#180](https://github.com/espressif/esp-protocols/issues/180))
11+
312
## [1.2.0](https://github.com/espressif/esp-protocols/commits/modem-v1.2.0)
413

514
### Features

components/esp_modem/examples/ap_to_pppos/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ By default, this example simply connects to the PPP server using a supported dev
1515
This example however, doesn't rely on sending specific AT commands, just the bare minimum to setup the cellular network.
1616
Thus, if the `EXAMPLE_USE_MINIMAL_DCE` option is enabled, we directly inherit from the `ModuleIf` and implement only the basic commands.
1717
Also, to demonstrate the dce_factory functionality, a new `NetDCE_Factory` is implemented for creating the network module and the DCE.
18-
19-
### Supported IDF versions
20-
21-
This example is only supported from `v4.2`, since is uses NAPT feature.

components/esp_modem/examples/linux_modem/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@ over PPPoS, i.e. over the modem serial line.
1717
* Experiment with the network, after getting the IP from the modem device
1818
- directly in the code
1919
- in the system (need to set `tun` interface IP, dns servers, and routing the desired traffic over the tun interface)
20-
21-
### Supported IDF versions
22-
23-
This example (using the default CMake IDF build system) is only supported from `v4.4`, since is uses `idf.py`'s linux target.

components/esp_modem/examples/modem_console/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ USB example uses Quactel BG96 modem device. BG96 needs a positive pulse on its P
2525
This example supports USB modem hot-plugging and reconnection. There is one limitation coming from esp_console component:
2626
When esp_console REPL is being destroyed (after USB mode disconnection or after `exit` command), it will block on UART read.
2727
You must send a character to it (via idf.py monitor), so it unblocks and properly exits.
28-
29-
### Supported IDF versions
30-
31-
This example is only supported from `v4.2`, due to support of the console repl mode.
32-
33-
USB example is supported from `v4.4`.

components/esp_modem/examples/modem_console/main/Kconfig.projbuild

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,28 @@ menu "Example Configuration"
108108
config EXAMPLE_MODEM_UART_TX_PIN
109109
int "TXD Pin Number"
110110
default 25
111-
range 0 31
111+
range 0 56
112112
help
113113
Pin number of UART TX.
114114

115115
config EXAMPLE_MODEM_UART_RX_PIN
116116
int "RXD Pin Number"
117117
default 26
118-
range 0 31
118+
range 0 56
119119
help
120120
Pin number of UART RX.
121121

122122
config EXAMPLE_MODEM_UART_RTS_PIN
123123
int "RTS Pin Number"
124124
default 27
125-
range 0 31
125+
range 0 56
126126
help
127127
Pin number of UART RTS.
128128

129129
config EXAMPLE_MODEM_UART_CTS_PIN
130130
int "CTS Pin Number"
131131
default 23
132-
range 0 31
132+
range 0 56
133133
help
134134
Pin number of UART CTS.
135135

@@ -179,7 +179,7 @@ menu "Example Configuration"
179179
config EXAMPLE_MODEM_PWRKEY_PIN
180180
int "PWRKEY Pin Number"
181181
default 18
182-
range 0 31
182+
range 0 56
183183
help
184184
Pin number connected to modem's power key pin.
185185
endmenu

components/esp_modem/examples/modem_psm/main/Kconfig.projbuild

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ menu "Example Configuration"
2020
config EXAMPLE_MODEM_UART_TX_PIN
2121
int "TXD Pin Number"
2222
default 4
23-
range 0 31
23+
range 0 56
2424
help
2525
Pin number of UART TX.
2626

2727
config EXAMPLE_MODEM_UART_RX_PIN
2828
int "RXD Pin Number"
2929
default 5
30-
range 0 31
30+
range 0 56
3131
help
3232
Pin number of UART RX.
3333

@@ -70,14 +70,14 @@ menu "Example Configuration"
7070
config EXAMPLE_MODEM_PWRKEY_PIN
7171
int "PWRKEY Pin Number"
7272
default 18
73-
range 0 31
73+
range 0 56
7474
help
7575
Pin number connected to modem's power key pin.
7676

7777
config EXAMPLE_MODEM_STATUS_PIN
7878
int "STATUS Pin Number"
7979
default 19
80-
range 0 31
80+
range 0 56
8181
help
8282
Pin number connected to modem's status pin.
8383

components/esp_modem/examples/modem_tcp_client/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,3 @@ To enable this mode, please set `EXAMPLE_CUSTOM_TCP_TRANSPORT=y`
2222
This configuration could be used with any network library, which is connecting to a localhost endpoint instead of remote one. This example creates a localhost listener which basically mimics the remote endpoint by forwarding the traffic between the library and the TCP/socket layer of the modem (which is already secure if the TLS is used in the network library)
2323

2424
![with localhost listener](at_client_localhost.png)
25-
26-
### Supported IDF versions
27-
28-
This example is supported from IDF `v5.0`.

components/esp_modem/examples/modem_tcp_client/main/Kconfig.projbuild

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@ menu "Example Configuration"
3030
config EXAMPLE_MODEM_UART_TX_PIN
3131
int "TXD Pin Number"
3232
default 25
33-
range 0 31
33+
range 0 56
3434
help
3535
Pin number of UART TX.
3636

3737
config EXAMPLE_MODEM_UART_RX_PIN
3838
int "RXD Pin Number"
3939
default 26
40-
range 0 31
40+
range 0 56
4141
help
4242
Pin number of UART RX.
4343

4444
config EXAMPLE_MODEM_UART_RTS_PIN
4545
int "RTS Pin Number"
4646
default 27
47-
range 0 31
47+
range 0 56
4848
help
4949
Pin number of UART RTS.
5050

5151
config EXAMPLE_MODEM_UART_CTS_PIN
5252
int "CTS Pin Number"
5353
default 23
54-
range 0 31
54+
range 0 56
5555
help
5656
Pin number of UART CTS.
5757

0 commit comments

Comments
 (0)