zephyr/subsys
Bjarki Arge Andreasen 7c9f2872e1 modem: chat: Start waiting for response after request is sent
This PR makes the modem_chat wait until a chat script chat
request has been sent before accepting responses to said
request.

This helps ensure that an unsolicitet response is not mistaken
for a response to a request, which is especially problematic
if the chat script chat is using an any match.

For example, start chat script sending AT+CGMI, expecting the
modem name as a response followed by OK

> start script, waiting for response immediately
> start sending "AT+CGMI"
> receive "+CEREG 1,0" while sending
> script accepts "+CEREG 1,0" as the response to "AT+CGMI"
> "AT+CGMI" sent
> receive "QUECTEL BG95"
> receive "OK"

script handler got "+CEREG 1,0" instead of "QUECTEL BG95"

After this PR:

> start script
> start sending AT+CGMI
> receive "+CEREG 1,0" while sending
> "AT+CGMI" sent
> start waiting for response
> receive "QUECTEL BG95"
> script accepts "QUECTEL BG95" as response to "AT+CGMI"
> receive "OK"

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-01-15 15:11:42 +01:00
..
bindesc subsys/bindesc: Fix kconfig dependency 2023-11-20 12:02:48 +01:00
bluetooth Bluetooth: L2CAP: stop stealing buffers from SDU pool 2024-01-15 09:58:58 +01:00
canbus drivers: can: unify spelling of CAN Flexible Data-rate abbreviation 2023-11-01 11:17:17 +00:00
console
debug debug: gdbstub: kconfig: Add GDBSTUB_TRACE config option 2023-12-06 17:52:18 +00:00
demand_paging kernel: mm: only include demand_paging.h if needed 2023-11-23 10:01:45 +01:00
dfu dfu: boot: mcuboot_shell: Prevent erasing MCUboot/app flash areas 2023-12-07 14:24:48 +00:00
disk
dsp
emul emul: Add support for non-bus emulators 2024-01-12 09:59:31 +01:00
fb
fs fs: fuse: Avoid possible buffer overflow 2024-01-08 13:29:19 -05:00
input input: kbd_matrix: add an kbd_matrix_state shell command 2023-12-08 20:16:39 +00:00
ipc ipc_service: open-amp: Fix libmetal shared memory registration 2023-12-14 16:18:55 +02:00
jwt
llext llext: merge llext_mem and llext_section enums 2023-12-14 19:06:55 +00:00
logging logging: Use strings stripping for dictionary backends 2024-01-15 09:58:39 +01:00
lorawan lorawan: use callback function signature typedefs 2023-11-13 09:53:32 +01:00
mem_mgmt mem_mgmt: Add a memory attributes memory allocator 2023-11-27 19:56:48 +01:00
mgmt mgmt: mcumgr: use delayed workqueue for reset 2024-01-15 09:59:23 +01:00
modbus modbus: Add dependency to UART runtime configuration 2023-11-15 10:02:18 +01:00
modem modem: chat: Start waiting for response after request is sent 2024-01-15 15:11:42 +01:00
net net: gptp: Always use GM PRIO root system id for announce messages 2024-01-15 09:57:34 +01:00
pm pm: Move settting timeout to after suspending devices 2023-12-18 09:29:49 +01:00
portability kernel: Introduce a way to specify minimum system heap size 2023-12-20 11:01:42 +01:00
random syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
retention retention: Increase read size variables to 16-bit 2023-12-14 19:05:22 +00:00
rtio syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sd sd: add timeout when taking SD card lock for data operations 2024-01-09 15:46:54 -06:00
sensing
settings settings: shell: Fix possible buffer overflow 2023-12-15 14:43:50 +01:00
shell posix: Fix name collision with __bswap 2024-01-10 18:13:44 +00:00
sip_svc
stats shell: do not enable subsystem/driver shell modules by default 2023-11-20 09:21:40 +01:00
storage
task_wdt task_wdt: start feeding hardware watchdog immediately after init 2024-01-02 09:52:13 +01:00
testsuite ztest: fix ztest_run_test_suite usage and macros 2024-01-09 08:15:22 -05:00
timing
tracing pm: device_runtime: Add delay to async put 2023-12-12 10:57:34 +01:00
usb usb: device: audio: fix compiler warning for usb audio microphone 2024-01-10 15:08:06 +01:00
zbus zbus: add priority boost feature 2024-01-04 09:41:54 +01:00
CMakeLists.txt drivers, subsys: sort the lists again, mark the blocks for checking 2023-11-13 09:41:05 +01:00
Kconfig llext: enable tristate Kconfig options 2024-01-11 10:26:04 -05:00