Skip to content

Commit

Permalink
fix(modem): Test what CMUX on SIM800 does
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cermak committed Sep 26, 2023
1 parent d61ce9e commit 49d7a6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
CONFIG_ESP32_PANIC_PRINT_HALT=y
CONFIG_COMPILER_CXX_EXCEPTIONS=y
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_EXAMPLE_CLOSE_CMUX_AT_END=y
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y
# CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
# CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE is not set
CONFIG_LOG_MAXIMUM_LEVEL=4
# CONFIG_LOG_MASTER_LEVEL is not set
1 change: 1 addition & 0 deletions components/esp_modem/src/esp_modem_cmux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ bool CMux::on_header(CMuxFrame &frame)
// since CRC could be evaluated after the frame payload gets received
if (dlci > MAX_TERMINALS_NUM || (frame_header[1] & 0x01) == 0 ||
(((type & FT_UIH) != FT_UIH) && type != (FT_UA | PF) ) ) {
ESP_LOGI("CMUX","[1]:%02x [2]:%02x [3]:%02x", frame_header[1], frame_header[2], frame_header[3]);
recover_protocol(protocol_mismatch_reason::UNEXPECTED_HEADER);
return true;
}
Expand Down

0 comments on commit 49d7a6e

Please sign in to comment.