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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| gsm_ppp.c | ||
| hl7800.c | ||
| Kconfig | ||
| Kconfig.cellular | ||
| Kconfig.gsm | ||
| Kconfig.hl7800 | ||
| Kconfig.quectel-bg9x | ||
| Kconfig.simcom-sim7080 | ||
| Kconfig.ublox-sara-r4 | ||
| Kconfig.wncm14a2a | ||
| modem_cellular.c | ||
| modem_cmd_handler.c | ||
| modem_cmd_handler.h | ||
| modem_context.c | ||
| modem_context.h | ||
| modem_iface_uart_async.c | ||
| 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 | ||