zephyr/drivers/modem
Bjarki Arge Andreasen 2d2d3ececd drivers/modem/modem_cellular.c: Improve bus pipe usage
This commit improves the usage of the bus pipe (connected
to UART) to only open it when the modem is actually
powered and ready, not when leaving the idle state. This
ensures the pipe is flushed before sending the init script,
and re-enables the UART driver if it is disabled due to
errors.

While building a test platform based on the nRF9160 and a
Quectel BG95, it was discovered that the nRF9160 correctly
throws UART errors if the RX is enabled while the UART RX
line is low (which was due to the modem being powered
down).

The improvements should also help help remove the
"<wrn> modem_chat: receive buffer overrun" warning which
would occur during startup as the pipe was opened, but
nothing was receiving the data, causing the buffer to
overflow.

Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
2023-09-06 09:35:34 +02:00
..
CMakeLists.txt drivers/modem: Add generic cellular modem driver 2023-08-30 13:48:51 +02:00
gsm_ppp.c
hl7800.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
Kconfig drivers/modem: Add generic cellular modem driver 2023-08-30 13:48:51 +02:00
Kconfig.cellular drivers/modem: Add generic cellular modem driver 2023-08-30 13:48:51 +02:00
Kconfig.gsm drivers: modem: delay init priority 2023-08-24 15:35:37 +02:00
Kconfig.hl7800
Kconfig.quectel-bg9x
Kconfig.simcom-sim7080
Kconfig.ublox-sara-r4
Kconfig.wncm14a2a
modem_cellular.c drivers/modem/modem_cellular.c: Improve bus pipe usage 2023-09-06 09:35:34 +02:00
modem_cmd_handler.c
modem_cmd_handler.h
modem_context.c
modem_context.h
modem_iface_uart_async.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
modem_iface_uart_interrupt.c
modem_iface_uart.h
modem_receiver.c
modem_receiver.h
modem_shell.c
modem_socket.c
modem_socket.h
quectel-bg9x.c
quectel-bg9x.h
simcom-sim7080.c
simcom-sim7080.h
ublox-sara-r4.c
wncm14a2a.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00