From 9b6ec94b2108627d8486162bd4a19c9b91765d1f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 3 Jun 2010 08:57:16 -0700 Subject: [PATCH] Enable SMS support for Novatel based devices The important part here is that the SMS atom needs to be on the second AT command port since the main port doesn't handle sending correctly. It never returns any success or error after the submission of the PDU. --- plugins/novatel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/novatel.c b/plugins/novatel.c index a1c3e51f..65e0024c 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -293,6 +294,8 @@ static void novatel_post_sim(struct ofono_modem *modem) g_at_chat_send(data->gprs, "ATE0 +CMEE=1", none_prefix, NULL, NULL, NULL); + ofono_sms_create(modem, OFONO_VENDOR_NOVATEL, "atmodem", data->gprs); + gprs = ofono_gprs_create(modem, 0, "atmodem", data->gprs); gc = ofono_gprs_context_create(modem, 0, "atmodem", data->gprs);