zephyr/drivers/modem
Benjamin Lindqvist 28ac1f70bf drivers: modem: gsm_ppp: proper attach retry
In a previous commit, a check was added to ensure modem was properly
attached to packet service before initializing PPP. Failure to perform
this check can lead to the dreaded 'NO CARRIER' issue.

While this is a nice idea, the implementation was lacking because when
the check failed, the entire modem initialization procedure was
restarted from square one. For modems/bearers that were slow to attach,
this is potentially disastrous. The proper solution is to loop only the
'AT+CGATT?' part until it succeeds, or fails N times.

This commit implements this looping behavior (using the work queue).

Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
2021-04-06 15:37:11 +03:00
..
CMakeLists.txt drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
gsm_ppp.c drivers: modem: gsm_ppp: proper attach retry 2021-04-06 15:37:11 +03:00
hl7800.c drivers: modem: hl7800: use new work queue API 2021-04-02 07:24:46 -04:00
Kconfig drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
Kconfig.gsm drivers: modem: gsm_ppp: proper attach retry 2021-04-06 15:37:11 +03:00
Kconfig.hl7800 drivers: modem: hl7800: Make RX net_bufs configurable 2020-10-30 10:09:48 +02:00
Kconfig.quectel-bg9x drivers: modem: Add support for quectel bg95 2020-12-01 17:43:59 -05:00
Kconfig.ublox-sara-r4 drivers: modem: ublox-sara-r4: Convert driver to new DT device macros 2021-02-15 08:31:52 -05:00
Kconfig.wncm14a2a
modem_cmd_handler.c drivers: modem: fix sending with zero timeout and no semaphore 2020-12-07 10:25:56 +02:00
modem_cmd_handler.h drivers: modem: modem_cmd_handler: Allow dynamic number of commands args 2020-12-03 17:37:48 -05:00
modem_context.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_context.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_iface_uart.c net: ppp: Avoid wrapping each byte in muxing headers 2020-10-19 18:29:02 +02:00
modem_iface_uart.h modem: iface_uart: improve RX flow with HW flow control 2020-10-05 17:04:52 +03:00
modem_pin.c
modem_receiver.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_receiver.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_shell.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem_socket.c modem: fix socket descriptor leak 2021-01-07 10:36:19 +02:00
modem_socket.h drivers: modem: use zsock_ variants of socket API 2020-06-10 09:27:51 +03:00
quectel-bg9x.c drivers: modem: Fix PDP context management for BG9X 2021-02-23 12:01:27 +02:00
quectel-bg9x.h drivers: remove what appears to be code from comments 2021-04-01 05:34:17 -04:00
ublox-sara-r4.c drivers: modem: ublox-sara-r4: Fix dereference before null check 2021-03-17 07:25:59 -05:00
wncm14a2a.c drivers: modem: wncm14a2a: Explicitly ignore unused return value 2021-03-24 12:23:55 +01:00