Browse Source

drivers: modem_cellular: fix bg95dial cmd resp

bg95 modem should respond "CONNECT <text>" when run dial cmd
similar to eg25g

Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
pull/92661/merge
Van Petrosyan 7 days ago committed by Daniel DeGrasse
parent
commit
4197953d3f
  1. 4
      drivers/modem/modem_cellular.c

4
drivers/modem/modem_cellular.c

@ -527,7 +527,7 @@ MODEM_CHAT_MATCHES_DEFINE(dial_abort_matches,
#if DT_HAS_COMPAT_STATUS_OKAY(swir_hl7800) || DT_HAS_COMPAT_STATUS_OKAY(sqn_gm02s) || \ #if DT_HAS_COMPAT_STATUS_OKAY(swir_hl7800) || DT_HAS_COMPAT_STATUS_OKAY(sqn_gm02s) || \
DT_HAS_COMPAT_STATUS_OKAY(quectel_eg800q) || DT_HAS_COMPAT_STATUS_OKAY(quectel_eg25_g) || \ DT_HAS_COMPAT_STATUS_OKAY(quectel_eg800q) || DT_HAS_COMPAT_STATUS_OKAY(quectel_eg25_g) || \
DT_HAS_COMPAT_STATUS_OKAY(simcom_a76xx) DT_HAS_COMPAT_STATUS_OKAY(quectel_bg95) || DT_HAS_COMPAT_STATUS_OKAY(simcom_a76xx)
MODEM_CHAT_MATCH_DEFINE(connect_match, "CONNECT", "", NULL); MODEM_CHAT_MATCH_DEFINE(connect_match, "CONNECT", "", NULL);
#endif #endif
@ -1973,7 +1973,7 @@ MODEM_CHAT_SCRIPT_CMDS_DEFINE(quectel_bg95_dial_chat_script_cmds,
"\""CONFIG_MODEM_CELLULAR_APN"\"", "\""CONFIG_MODEM_CELLULAR_APN"\"",
ok_match), ok_match),
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CFUN=1", ok_match), MODEM_CHAT_SCRIPT_CMD_RESP("AT+CFUN=1", ok_match),
MODEM_CHAT_SCRIPT_CMD_RESP_NONE("ATD*99***1#", 0),); MODEM_CHAT_SCRIPT_CMD_RESP("ATD*99***1#", connect_match));
MODEM_CHAT_SCRIPT_DEFINE(quectel_bg95_dial_chat_script, quectel_bg95_dial_chat_script_cmds, MODEM_CHAT_SCRIPT_DEFINE(quectel_bg95_dial_chat_script, quectel_bg95_dial_chat_script_cmds,
dial_abort_matches, modem_cellular_chat_callback_handler, 10); dial_abort_matches, modem_cellular_chat_callback_handler, 10);

Loading…
Cancel
Save