diff options
author | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-06-22 09:57:00 +0300 |
---|---|---|
committer | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-06-22 09:57:00 +0300 |
commit | 435cec04eebd297a6ebd29fffc2c254ee5ef6745 (patch) | |
tree | 587e1d7f9040687bbc3b00bd60a730308422be9e /src/atcmd.c | |
parent | 3d3c735f3bbd269f97bd59a246d5f18b010eda2b (diff) | |
download | sms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.tar.gz sms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.tar.bz2 sms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.zip |
MTX-3449 mPower June20: GP-655 LNA7: SMS -> 3GPP vs. 3GPP2
Diffstat (limited to 'src/atcmd.c')
-rw-r--r-- | src/atcmd.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/atcmd.c b/src/atcmd.c index 97fd34b..f881808 100644 --- a/src/atcmd.c +++ b/src/atcmd.c @@ -830,6 +830,21 @@ int atcmd_plus_cmgd_write(int fd, int index) return 0; } +int atcmd_plus_qcfg_write(int fd, int sms_format) +{ + char buf[ATCMD_LINE_SIZE]; + int tmp; + + atcmd_writeline(fd, "AT+QCFG=\"ltesms/format\",%d", sms_format); + tmp = atcmd_expect_line(fd, buf, sizeof(buf), "OK"); + if (tmp <= 0) { + log_debug("expected OK but it was not received"); + return -1; + } + + return 0; +} + int atcmd_response_foreach_line(int fd, atcmd_response_callback_t call, void *prv) { char buf[ATCMD_LINE_SIZE]; @@ -1542,6 +1557,20 @@ int is_vzw_lte(void) !strncmp(Global.core.model, "LE910-SV1", MODEL_LEN)); } +/* Detect LNA7 radio with Verizon SIM */ +int is_vzw_lna7(void) +{ + if (!strncmp(Global.core.model, "EG95", MODEL_LEN)) { + log_debug("Found EG95"); + /* Verizon Wireless SIM */ + if (strncmp(Global.core.iccid,"891480",6) == 0) { + log_debug("Found VZW SIM"); + return 1; + } + } + return 0; +} + int isCdmaTypeModel() { /* Test for possible dual firmware model */ |