aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-06-03 12:28:14 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-02-17 13:25:02 +0100
commitb7b37c4738180b589aabc904402657ec5cc518b9 (patch)
tree9ed918b51bf0ff82240d6867df8b2578d5cf8c4f
parenta87b4b46c8ac4b2ae9601e1807c9d79b6f01ae75 (diff)
iridium: override SMS indications setup commands
-rw-r--r--plugins/mm-modem-iridium-gsm.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/mm-modem-iridium-gsm.c b/plugins/mm-modem-iridium-gsm.c
index 7d2f3902..dce0dae6 100644
--- a/plugins/mm-modem-iridium-gsm.c
+++ b/plugins/mm-modem-iridium-gsm.c
@@ -90,6 +90,25 @@ get_property (GObject *object,
*/
g_value_set_string (value, "&K3");
break;
+ case MM_GENERIC_GSM_PROP_SMS_INDICATION_ENABLE_CMD:
+ /* AT+CNMO=<mode>,[<mt>[,<bm>[,<ds>[,<bfr>]]]]
+ * but <bm> can only be 0,
+ * and <ds> can only be either 0 or 1
+ *
+ * Note: Modem may return +CMS ERROR:322, which indicates Memory Full,
+ * not a big deal
+ */
+ g_value_set_string (value, "+CNMI=2,1,0,0,1");
+ break;
+ case MM_GENERIC_GSM_PROP_SMS_STORAGE_LOCATION_CMD:
+ /* AT=CPMS=<mem1>[,<mem2>[,<mem3>]]
+ * Only "SM" is allowed in all 3 message storages
+ *
+ * Note: Modem may return +CMS ERROR:322, which indicates Memory Full,
+ * not a big deal
+ */
+ g_value_set_string (value, "+CPMS=\"SM\",\"SM\",\"SM\"");
+ break;
default:
break;
}
@@ -119,6 +138,14 @@ mm_modem_iridium_gsm_class_init (MMModemIridiumGsmClass *klass)
MM_GENERIC_GSM_PROP_FLOW_CONTROL_CMD,
MM_GENERIC_GSM_FLOW_CONTROL_CMD);
+ g_object_class_override_property (object_class,
+ MM_GENERIC_GSM_PROP_SMS_INDICATION_ENABLE_CMD,
+ MM_GENERIC_GSM_SMS_INDICATION_ENABLE_CMD);
+
+ g_object_class_override_property (object_class,
+ MM_GENERIC_GSM_PROP_SMS_STORAGE_LOCATION_CMD,
+ MM_GENERIC_GSM_SMS_STORAGE_LOCATION_CMD);
+
gsm_class->get_sim_iccid = get_sim_iccid;
}