All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clement Viel <vielclement@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] sim800: adding support for Simcom SIM800 modem
Date: Wed, 19 Sep 2018 21:52:05 +0200	[thread overview]
Message-ID: <20180919195205.GC3536@turing> (raw)
In-Reply-To: <2048901537376607@iva4-031ea4da33a1.qloud-c.yandex.net>

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


On Wed, Sep 19, 2018 at 08:03:27PM +0300, Pičugins Arsenijs wrote:
Hi,

I guess I submit it in a hurry and forgot to add the firmware version.
BTW, your problem may be related to this. Are you sure your CMUX command is not returning an error ? Thus preventing ofono from enabling the modem ? I had this problem and Simcom sent me an updated firmware that supports the CMUX command.

> <div>Hello!</div><div> </div><div>&gt; You might want to describe how this is different from sim900 that it<br />&gt; warrants a fully separate driver?</div><div> </div><div>I've tried to apply this patch yesterday evening (since I too am</div><div>interested in SIM800 integration) and tried to apply it, patch 2</div><div>doesn't apply on current master for some reason. Here's a diff</div><div>between current SIM900 and this SIM800:</div><div><a href="https://matrix.org/_matrix/media/v1/download/matrix.org/KqDxbcuYLxrcceUfRorxYgus" data-external="true">https://matrix.org/_matrix/media/v1/download/matrix.org/KqDxbcuYLxrcceUfRorxYgus</a></div><div> </div><div>tl;dr: apart from</div><div> </div><div>- adding phonebook support (two lines, I don't understand it quite yet)</div><div>- the sleep() hack</div><div>- a comment clarifying a problem with some unknown version of firmware</div><div>- DBG() log calls</div><div>- sim900 =&gt; sim800 renaming</div><div> </div><div>it's no different than current SIM900 driver. Unfortunately, that</div><div>doesn't solve the problems I'm personally experiencing (hang on</div><div>CFUN, for one).</div><div> </div><div>Cheers!<br />Arsenijs</div><div> </div><div>19.09.2018, 19:51, "Denis Kenzior" &lt;denkenz(a)gmail.com&gt;:</div><blockquote type="cite"><p>Hi,<br /><br />On 09/18/2018 03:36 PM, ClémentViel wrote:</p><blockquote> From: clem &lt;<a data-external="true" href="mailto:vielclement@gmail.com">vielclement(a)gmail.com</a>&gt;<br /> </blockquote><p><br />You might want to describe how this is different from sim900 that it<br />warrants a fully separate driver?<br /><br />If there are only minor differences, then this can be handled via UDEV<br />attributes or querying +CGMM, etc.<br /> </p><blockquote> ---<br />   Makefile.am | 4 +<br />   plugins/sim800.c | 424 +++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />   2 files changed, 428 insertions(+)<br />   create mode 100644 plugins/sim800.c<br /> </blockquote><p><br />&lt;snip&gt;<br /> </p><blockquote> +<br /> +static void sim800_post_sim(struct ofono_modem *modem)<br /> +{<br /> + struct sim800_data *data = ofono_modem_get_data(modem);<br /> + struct ofono_gprs *gprs;<br /> + struct ofono_gprs_context *gc;<br /> +<br /> + DBG("%p", modem);<br /> +<br /> + /* Dirty Hack : give some time to sim800 for multiplexing<br /> + * to be effective and avoid VOICE_DLC to be<br /> + * flooded thus leading to a "famine" situation<br /> + */<br /> +<br /> + sleep(2);</blockquote><p><br />No sleeps inside plugins. That blocks the entire daemon and we can't<br />have that. How does this help you anyway? GAtChat is a queue, so only<br />1 command is outstanding at a time.<br /> </p><blockquote> + ofono_sms_create(modem, OFONO_VENDOR_SIMCOM, "atmodem",<br /> + data-&gt;dlcs[SMS_DLC]);<br /> +<br /> +<br /> + gprs = ofono_gprs_create(modem, 0, "atmodem", data-&gt;dlcs[GPRS_DLC]);<br /> + if (gprs == NULL)<br /> + return;<br /> +<br /> + gc = ofono_gprs_context_create(modem, OFONO_VENDOR_SIMCOM,<br /> + "atmodem", data-&gt;dlcs[GPRS_DLC]);<br /> + if (gc)<br /> + ofono_gprs_add_context(gprs, gc);<br /> +}<br /> +</blockquote><p><br />Regards,<br />-Denis<br />_______________________________________________<br />ofono mailing list<br /><a data-external="true" href="mailto:ofono@ofono.org">ofono(a)ofono.org</a><br /><a href="https://lists.ofono.org/mailman/listinfo/ofono">https://lists.ofono.org/mailman/listinfo/ofono</a></p></blockquote>

  reply	other threads:[~2018-09-19 19:52 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 ` [PATCH 1/3] sim800: adding support for Simcom SIM800 modem Denis Kenzior
2018-09-19 17:03   ` =?unknown-8bit?q?Pi=C4=8Dugins?= Arsenijs
2018-09-19 19:52     ` Clement Viel [this message]
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=20180919195205.GC3536@turing \
    --to=vielclement@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.