Open Source Telephony
 help / color / mirror / Atom feed
From: Alexander Couzens <lynxis@fe80.eu>
To: ofono@ofono.org
Subject: Re: [PATCH 1/1] qmi: support SMS receive on Quectel EC21
Date: Mon, 16 Oct 2017 16:07:00 +0200	[thread overview]
Message-ID: <20171016160638.237f89f2@lazus.yip> (raw)
In-Reply-To: <20171016122048.2405-1-jonas@southpole.se>

[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]

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 = 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

[-- Attachment #2: attachment.sig --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-10-16 14:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 12:20 [PATCH 1/1] qmi: support SMS receive on Quectel EC21 Jonas Bonn
2017-10-16 14:07 ` Alexander Couzens [this message]
2017-10-16 14:43   ` Jonas Bonn
2017-10-17  7:16   ` Jonas Bonn
2017-10-17 11:41     ` Alexander Couzens
2017-10-17 14:45       ` Denis Kenzior
2017-10-17 14:35 ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171016160638.237f89f2@lazus.yip \
    --to=lynxis@fe80.eu \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox