From a1727baa9c57466517e76b635e7c27bf177acda2 Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Tue, 18 Jun 2019 17:11:03 +0300 Subject: [MTR-MTQ] Quectel support for sms-utils - Added new "manufacturer" field to the "global_core" structure - Added the "atcmd_plus_gmi_read()" function to fetch manufacturer identification - Added a call to the "atcmd_plus_gmi_read()" in "sms_atcmd_init()" - Added "is_telit_model()" and "is_quectel_model()" functions to pick a proper manufacturer-specific command in "atcmd_plus_iccid_read()" and, possibly, other commands in the future - Tabs VS spaces. This project uses tabs --- src/atcmd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/atcmd.h') diff --git a/src/atcmd.h b/src/atcmd.h index c13866e..dc3d5d9 100644 --- a/src/atcmd.h +++ b/src/atcmd.h @@ -3,6 +3,7 @@ #include #include +#include #ifdef __ATCMD_C #define ATCMD_EXTERN @@ -113,11 +114,14 @@ int atcmd_plus_cpbs_write(int fd, const char *name); int atcmd_plus_cpbr_test(int fd, struct phonebook_store *store); int atcmd_plus_gmm_read(int fd); +int atcmd_plus_gmi_read(int fd); int atcmd_init(int fd, int read_timeout); int sms_device_close(int fd); int sms_device_open(void); int is_vzw_lte(void); +int is_telit_model(void); +int is_quectel_model(void); #if __ATCMD_C const char *abort_dfl[] = { -- cgit v1.2.3