summaryrefslogtreecommitdiff
path: root/src/atcmd.h
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2015-10-26 14:58:43 -0500
committerBrandon Bayer <bbayer@multitech.com>2015-11-06 13:49:06 -0600
commitbe01eb8a87f1582b1c15ec4e09a9a66770da87c5 (patch)
treed2044a650d334dca4aa2efb2521e3ecf887ac86b /src/atcmd.h
parentab80a82e2e0f5ea7cdef0394f80e69b377fab779 (diff)
downloadsms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.tar.gz
sms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.tar.bz2
sms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.zip
feat: sms support for CE910-DUAL, DE910-DUAL, LE910-SVG0.0.8
- PDU is used for everything except LE910-SVG sending - a bug in radio requires radio reboot to send more than 1 PDU sms
Diffstat (limited to 'src/atcmd.h')
-rw-r--r--src/atcmd.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/atcmd.h b/src/atcmd.h
index de6eeee..16b991f 100644
--- a/src/atcmd.h
+++ b/src/atcmd.h
@@ -62,10 +62,15 @@ int atcmd_v_write(int fd, int mode);
int atcmd_q_write(int fd, int mode);
int atcmd_plus_cmgf_write(int fd, int mode);
int atcmd_plus_cmgw_write(int fd, const char *msg, size_t msg_len);
+int atcmd_plus_cmgw_write_text(int fd, const char *addr, int addr_type,
+ const char *status, const char *msg, size_t msg_len);
int atcmd_plus_cmgs_write(int fd, const char *msg, size_t msg_len);
+int atcmd_plus_cmgs_write_text(int fd, const char *addr, const char *msg, size_t msg_len);
int atcmd_plus_cmss_write(int fd, int index, const char *addr, int addr_type);
int atcmd_plus_cmgd_write(int fd, int index);
+int isCdmaTypeModel();
+
#define STORE_NAME_LEN 2
#define STORE_NAME_SIZE (STORE_NAME_LEN + 1)
#define STORE_LOCATIONS_MAX 8
@@ -87,11 +92,11 @@ struct msg_store {
};
int atcmd_plus_cpms_read(int fd, struct data_store *read_store,
- struct data_store *send_store, struct data_store *new_store);
+ struct data_store *send_store, struct data_store *new_store, const char *model);
int atcmd_plus_cpms_test(int fd, struct store_locations *read_loc,
struct store_locations *send_loc, struct store_locations *new_loc);
int atcmd_plus_cpms_write(int fd, const char *read_name,
- const char *send_name, const char *new_name);
+ const char *send_name, const char *new_name, const char *model);
struct phonebook_store {
struct data_store selected;
@@ -105,9 +110,10 @@ struct phonebook_store {
int atcmd_plus_cpbs_read(int fd, struct data_store *store);
int atcmd_plus_cpbs_test(int fd, struct store_locations *loc);
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_init(int fd, int read_timeout);
int sms_device_close(int fd);
int sms_device_open(void);