From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3708963767282861404==" MIME-Version: 1.0 From: Alexander Couzens Subject: Re: [PATCH 1/1] qmi: support SMS receive on Quectel EC21 Date: Mon, 16 Oct 2017 16:07:00 +0200 Message-ID: <20171016160638.237f89f2@lazus.yip> In-Reply-To: <20171016122048.2405-1-jonas@southpole.se> List-Id: To: ofono@ofono.org --===============3708963767282861404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Jonas, I'm working on Gobi2000 sms support atm and having the same problem. > + } else { > + /* The Quectel EC21, at least, does not provide the > + * message data in the event notification, so a 'raw > read' > + * needs to be issued in order to query the message > itself > + */ > + struct qmi_param *param; > + > + param =3D qmi_param_new(); > + if (!param) > + return; > + > + /* Message memory storage ID */ > + qmi_param_append(param, 0x01, sizeof(*notify), > notify); > + /* The 'message mode' parameter is documented as > optional, > + * but the Quectel EC21 errors out with error 17 > (missing > + * argument) if it is not provided... we default to > 3GPP > + * here because that's what works for me and it's > not clear > + * how to actually query what this should be > otherwise... > + */ > + /* Message mode */ > + qmi_param_append_uint8(param, 0x10, > + QMI_WMS_MESSAGE_MODE_GSMWCDMA); > + > + if (qmi_service_send(data->wms, QMI_WMS_RAW_READ, > param, > + raw_read_cb, sms, NULL) > 0) > + return; > + > + qmi_param_free(param); > } Could you create a raw read request function? For the Gobi2000 I'll need the same function on powering to clean up the whole storage. Best, Alexander -- = Alexander Couzens mail: lynxis(a)fe80.eu jabber: lynxis(a)fe80.eu mobile: +4915123277221 gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 --===============3708963767282861404== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ2dBZEZpRUVPUTNQZUl2NXFs QlBqL0hpd3A2ZHBx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