robbedptechnics
6eceb28f7d
fix(modem): Consume buffer after handled URC
2025-06-11 14:50:14 +02:00
Matheus Deodato
95b56600ed
fix(modem): handle nullptr in DTE constructors to prevent invalid access
2025-02-26 11:37:02 -03:00
David Cermak
52598e5f03
feat(modem): Add support for guessing mode
2024-11-01 13:49:52 +01:00
Ant2000
0e0cbd6b17
feat(modem): Delete CMUX internal implementation even if terminal exit fails
2024-09-18 14:08:52 +05:30
David Cermak
1b6a3b3b75
feat(modem): Add support for handling URC
...
Closes https://github.com/espressif/esp-protocols/issues/180
2024-09-16 15:17:29 +02:00
David Cermak
bf99f287bc
fix(modem): Fixed inconsistent state on data after OK
...
If we received response in two chunks and the first one completes the
command (result=OK or FAIL), and the second chunk pre-empts command processing,
then we performed processing again rewritting the result back to
TIMEOUT. This would invalidate the command, but also causes an
exception: ESP_MODEM_THROW_IF_ERROR(ESP_ERR_INVALID_STATE)
Fixed by checking if the processing already finished in process_line().
Closes https://github.com/espressif/esp-protocols/issues/426
2023-11-29 20:24:53 +01:00
David Cermak
93cb2caadb
fix(modem): Fixed mode transitions between any state and UNDEF
...
Closes https://github.com/espressif/esp-protocols/issues/320
2023-11-07 12:35:00 +01:00
david-cermak
924f28e9c4
Merge pull request #373 from david-cermak/fix/at_client
...
fix(modem): Fix AT client example to use custom AT processing
2023-10-30 07:06:29 +01:00
David Cermak
1db1e1508d
fix(modem): Fix DTE to post fragments to parsers for USB term
2023-10-20 11:54:48 +02:00
David Cermak
2aada0f308
fix(modem): Fix DUAL_MODE regression from cb6e03ac
...
In the recent DTE refactoring (cb6e03ac ) we install terminal callbacks
in the constructor, but the change missed initializing modem_state
in DTE constructors which take two terminals as arguments to work in
DUAL mode.
2023-10-12 12:50:29 +02:00
David Cermak
1a5ba98964
fix(modem): Fix AT client example to use custom AT processing
...
Need the callback reset upon removal of our custom AT command processing.
This issue has been introduced in cb6e03ac when refactoring DTE
callbacks.
Closes https://github.com/espressif/esp-protocols/issues/352
2023-10-09 17:49:15 +02:00
David Cermak
8edbac6974
fix(modem): More error handling in cmux protocol
...
Add error path to all CMUX protocol potential issues, checks for
consistency and add recovery.
2023-09-22 08:39:31 +02:00
David Cermak
cb6e03ac62
fix(modem): Added support for inflatable buffer
...
As a configurable option, if disabled we report an error.
Closes https://github.com/espressif/esp-protocols/issues/272
2023-08-28 10:27:10 +02:00
Victor
60c87ddf26
fix(modem): Fix LoadProhibited after failed CMUX initialization (IDFGH-10845)
2023-08-18 12:44:37 +03:00
David Cermak
bf114d3624
feat(modem): DTE to support sending and receiving raw data
...
MAJOR CHANGE: Enable DTE to redefine on_read() and write(cmd) directly
2023-03-16 19:39:13 +01:00
Tomas Rezucha
01c26c82fa
esp_modem: Dual DTE support
...
Modems can expose 2 terminals, which can be used simultaneously.
One for AT commands, the other one for data.
2023-03-07 13:35:34 +01:00
David Cermak
2180ab17d8
fix(esp-modem): Support AT with callback in C-API
...
Closes https://github.com/espressif/esp-protocols/issues/143
2022-11-21 14:58:15 +01:00
David Cermak
ac5d43882b
feat(esp-modem): Add support for manual CMUX operations
...
Closes https://github.com/espressif/esp-protocols/issues/168
2022-11-21 14:58:15 +01:00
Suren Gabrielyan
945bd17701
CI: fixing the files to be complient with pre-commit hooks
2022-10-17 18:16:52 +02:00
David Cermak
a02bf05eed
fix(esp-modem): Uart Terminal read_cb race
2022-10-10 15:39:09 +02:00
David Cermak
a8714730fb
fix(esp_modem): DTE command race of timeout vs reply's signal
...
Race condtion:
* First command timeouted, but the reply came just after evaluation and
set signal variable to GOT_LINE
* Second command should timeout too, but a consistency check validates
that it timeouted and at the same time GOT_LINE (from previous step) and
throws an exception
STR:
* Revert change in esp_modem_dte.cpp
* Run TEST_CASE("DTE command races", "[esp_modem]")
Closes https://github.com/espressif/esp-protocols/issues/110
2022-09-14 13:50:22 +02:00
Tomas Rezucha
ae8479c77e
esp_modem: Expose set_error_cb method
2022-09-02 09:17:49 +02:00
David Cermak
89e1bd27b3
fix(esp-modem): Add filename/line info to exception message
...
This is useful if exceptions are enabled, but caught internally on C++ API boundary
2022-08-18 14:52:21 +02:00
David Cermak
66e6d4cbf8
fix(esp_modem): Implement movable unique_buffer to bundle data, size, ptr
...
Also improves and fixes tests
2022-06-18 12:19:07 +02:00
David Cermak
f3ff98bb82
fix(exp_modem): DTE should own both command and data terminal
...
reworks to clear shared_ptr<> of both command and data terminals
and having DTE own it. When we swith to CMUX mode the ownership is transfered to CMux terminal
2022-06-11 21:33:51 +02:00
David Cermak
a16aab6979
feat(esp_modem): Add support to CMUX exit
...
Closes https://github.com/espressif/esp-protocols/issues/37
2022-06-11 15:07:39 +02:00
David Cermak
a61e9e2d40
Applied astyle code formatting
2021-10-04 11:32:55 +02:00
David Čermák
90641c89eb
esp_modem: Moved to component folder
2021-10-04 11:32:55 +02:00