All of lore.kernel.org
 help / color / mirror / Atom feed
From: riccardo.sala <riccardo.sala@springtech.it>
To: ofono@ofono.org
Subject: Re: Simcom SIM800 gprs data connection not working
Date: Thu, 16 May 2019 21:32:32 +0200	[thread overview]
Message-ID: <PRM3MC$A827E4DA24FB85833943D175F226015A@springtech.it> (raw)
In-Reply-To: <cbedc417-1540-937a-357d-e91d56e33661@gmail.com>

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

Thank you Danis for your support. 



The problem was the missing TAP/TUN support in my kernel! Now everything is working.


The sim800 is similar to sim900, it has the same features. I've made this little fix to sim900.c:




420c420
<     if (data->modem_type == SIM900) {
---
>     if ((data->modem_type == SIM900) || (data->modem_type == SIM800)) {



to enable sms and gprs for the SIM800.


Regards


Da: "Denis Kenzior" denkenz(a)gmail.com
A: "Riccardo Sala" riccardo.sala(a)springtech.it, ofono(a)ofono.org
Cc: 
Data: Thu, 16 May 2019 10:39:59 -0500
Oggetto: Re: Simcom SIM800 gprs data connection not working


Hi Riccardo,
 
> 
> # dbus-send --system --print-reply --dest=org.ofono /sim900_0/context1 
> org.ofono.ConnectionContext.SetProperty string:"Active" 
> variant:boolean:true
> Error org.ofono.Error.NotImplemented: Implementation not provided
 
This basically means that no gprs_context atom has been created by the 
modem driver or the driver initialization has failed.  Briefly looking 
at plugins/sim900.c, I can see that only sim900 (not sim800) supports 
gprs.  Given that you get this far, I assume you hacked this part to 
create gprs/gprs_context...
 
The other place to look is to see whether the 'atmodem' gprs_context 
driver is working properly.  Perhaps you're missing the TUN/TAP support 
in your kernel?  Run 'sudo modprobe tun' and see if that fixes things.
 
See drivers/atmodem/gprs-context.c for more details.
 
Regards,
-Denis

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2850 bytes --]

  reply	other threads:[~2019-05-16 19:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 16:50 Simcom SIM800 gprs data connection not working Riccardo Sala
2019-05-16 15:39 ` Denis Kenzior
2019-05-16 19:32   ` riccardo.sala [this message]
2019-05-28  8:10 Riccardo Sala

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='PRM3MC$A827E4DA24FB85833943D175F226015A@springtech.it' \
    --to=riccardo.sala@springtech.it \
    --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.