Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] sim800: adding support for Simcom SIM800 modem
Date: Wed, 19 Sep 2018 11:51:26 -0500	[thread overview]
Message-ID: <8f8dea50-577d-fa93-509a-3a8103a7fff5@gmail.com> (raw)
In-Reply-To: <1537302987-12592-1-git-send-email-vielclement@gmail.com>

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

Hi,

On 09/18/2018 03:36 PM, ClémentViel wrote:
> From: clem <vielclement@gmail.com>
> 

You might want to describe how this is different from sim900 that it 
warrants a fully separate driver?

If there are only minor differences, then this can be handled via UDEV 
attributes or querying +CGMM, etc.

> ---
>   Makefile.am      |   4 +
>   plugins/sim800.c | 424 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   2 files changed, 428 insertions(+)
>   create mode 100644 plugins/sim800.c
> 

<snip>

> +
> +static void sim800_post_sim(struct ofono_modem *modem)
> +{
> +	struct sim800_data *data = ofono_modem_get_data(modem);
> +	struct ofono_gprs *gprs;
> +	struct ofono_gprs_context *gc;
> +
> +	DBG("%p", modem);
> +
> +	/* Dirty Hack : give some time to sim800 for multiplexing
> +	 *				to be effective and avoid VOICE_DLC to be
> +	 *				flooded thus leading to a "famine" situation
> +	 */
> +
> +	sleep(2);

No sleeps inside plugins.  That blocks the entire daemon and we can't 
have that.  How does this help you anyway?  GAtChat is a queue, so only 
1 command is outstanding at a time.

> +	ofono_sms_create(modem, OFONO_VENDOR_SIMCOM, "atmodem",
> +						data->dlcs[SMS_DLC]);
> +
> +
> +	gprs = ofono_gprs_create(modem, 0, "atmodem", data->dlcs[GPRS_DLC]);
> +	if (gprs == NULL)
> +		return;
> +
> +	gc = ofono_gprs_context_create(modem, OFONO_VENDOR_SIMCOM,
> +					"atmodem", data->dlcs[GPRS_DLC]);
> +	if (gc)
> +		ofono_gprs_add_context(gprs, gc);
> +}
> +

Regards,
-Denis

  parent reply	other threads:[~2018-09-19 16:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-18 20:36 [PATCH 1/3] sim800: adding support for Simcom SIM800 modem =?unknown-8bit?q?Cl=C3=A9mentViel?=
2018-09-18 20:36 ` [PATCH 2/3] sim800: add udev detection =?unknown-8bit?q?Cl=C3=A9mentViel?=
2018-09-19 16:46   ` Denis Kenzior
2018-09-19 20:01     ` Clement Viel
2018-09-19 20:03       ` Denis Kenzior
2018-09-19 20:10         ` Clement Viel
2018-09-18 20:36 ` [PATCH 3/3] sim800: adding documentation to inform about the udev rule the user must add =?unknown-8bit?q?Cl=C3=A9mentViel?=
2018-09-19 16:43   ` Denis Kenzior
2018-09-19 19:25     ` Clement Viel
2018-09-19 19:27       ` =?unknown-8bit?q?Pi=C4=8Dugins?= Arsenijs
2018-09-20 22:05   ` Pavel Machek
2018-09-19 16:51 ` Denis Kenzior [this message]
2018-09-19 17:03   ` [PATCH 1/3] sim800: adding support for Simcom SIM800 modem =?unknown-8bit?q?Pi=C4=8Dugins?= Arsenijs
2018-09-19 19:52     ` Clement Viel
2018-09-19 19:45   ` Clement Viel
  -- strict thread matches above, loose matches on Subject: below --
2018-09-24 22:43 [PATCH 1/3] sim800: adding support for SimCom " Clement Viel
2018-09-25 16:48 ` Denis Kenzior
2018-09-25 18:08   ` Clement Viel
2018-09-25 18:41     ` 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=8f8dea50-577d-fa93-509a-3a8103a7fff5@gmail.com \
    --to=denkenz@gmail.com \
    --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