Re: [PATCH] udevng: Add support for Quectel BG96 modem
by Martin Hundebøll
Hi Sean,
On 11/25/19 9:26 AM, Sean Nyekjaer wrote:
> Signed-off-by: Sean Nyekjaer <sean(a)geanix.com>
No signoff when submitting to ofono.
// Martin
> ---
> plugins/udevng.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/plugins/udevng.c b/plugins/udevng.c
> index 40ed2b02..cc294c94 100644
> --- a/plugins/udevng.c
> +++ b/plugins/udevng.c
> @@ -1790,6 +1790,8 @@ static struct {
> { "quectelqmi", "qcserial", "2c7c", "0121" },
> { "quectelqmi", "qmi_wwan", "2c7c", "0125" },
> { "quectelqmi", "qcserial", "2c7c", "0125" },
> + { "quectelqmi", "qmi_wwan", "2c7c", "0296" },
> + { "quectelqmi", "qcserial", "2c7c", "0296" },
> { "ublox", "cdc_acm", "1546", "1010" },
> { "ublox", "cdc_ncm", "1546", "1010" },
> { "ublox", "cdc_acm", "1546", "1102" },
>
6 months, 2 weeks
APN for a newly added service provider
by Marek Szuba
Hello,
I have noticed something interesting lately in how oFono (or to be
precise oFono+Connman, as that is what I have on my system) has handled
a newly added service provider and I wonder if this is intentional or I
have done something wrong.
Context: I have attempted to connect to the Internet using a broadband
modem using a SIM card from a provider not listed in my
serviceproviders.xml file. The provider in question is an MVNO on the
German T-Mobile network, with all the settings (other than the SPN, of
course) identical to those of another pre-paid MVNO that already has an
entry in the aforementioned file (Congstar), which has only got a single
APN defined.
My steps: I have cloned the Congstar <provider> section in
serviceproviders.xml with an appropriate SPN, then disconnected the
modem and restarted ofonod just in case.
Expected: Connman establishes a cellular connection right away
Actually happened: although ofonod debug messages showed that it had
correctly read the new SPN entry and set up an Internet context, said
context did not have an APN set and connman failed to use it to
establish a connection - until I used the "create-internet-context" test
script to set the APN. Now regardless of how often I disconnect the
modem, restart ofonod and so on, the context's APN does get set
automatically and the mobile-broadband connection works fine.
I am curious regarding what might have happened here so that I
understand why it has happened and possibly prevent from having to mess
around with test scripts in the future. Thank you in advance for your
comments!
--
MS
10 months
APN for a newly added service provider
by Marek Szuba
Hello,
I have noticed something interesting lately in how oFono (or to be
precise oFono+Connman, as that is what I have on my system) has handled
a newly added service provider and I wonder if this is intentional or I
have done something wrong.
Context: I have attempted to connect to the Internet using a broadband
modem using a SIM card from a provider not listed in my
serviceproviders.xml file. The provider in question is an MVNO on the
German T-Mobile network, with all the settings (other than the SPN, of
course) identical to those of another pre-paid MVNO that already has an
entry in the aforementioned file (Congstar), which has only got a single
APN defined.
My steps: I have cloned the Congstar <provider> section in
serviceproviders.xml with an appropriate SPN, then disconnected the
modem and restarted ofonod just in case.
Expected: Connman establishes a cellular connection right away
Actually happened: although ofonod debug messages showed that it had
correctly read the new SPN entry and set up an Internet context, said
context did not have an APN set and connman failed to use it to
establish a connection - until I used the "create-internet-context" test
script to set the APN. Now regardless of how often I disconnect the
modem, restart ofonod and so on, the context's APN does get set
automatically and the mobile-broadband connection works fine.
I am curious regarding what might have happened here so that I
understand why it has happened and possibly prevent from having to mess
around with test scripts in the future. Thank you in advance for your
comments!
--
MS
--
MS
10 months
Using a Huawei modem in NCM mode
by Marek Szuba
Hello,
A possibly stupid question: is there any way of having my broadband
modem, a Huawei E3372 (12d1:155e), connect in NCM mode rather than
PPP-via-Modem mode? At first I thought this mode was not supported for
Huawei in spite of it exposing a CDC_NCM interface to the system which
the kernel has used to create a WWAN network interface. Then however I
noticed ofonod logs report the modem as capable of both Modem and NDIS
modes, and posts and patches I have found on OpenWRT mailing lists
(comments elsewhere invariably said one had to flash stick-mode firmware
to make it work, which however I am confident is not needed in my case
because I can get the stick out if Hilink and into Modem/NDIS mode
simply by setting the right option in usb_modeswitch configuration)
suggest switching to NDIS mode might be a simple matter of sending an
appropriate AT^NDISDUP command. Unfortunately, I haven't found anything
on how to achieve this in oFono.
Just to make it clear, the ttyUSB0+ppp mode of this modem works
perfectly with oFono.
Again, thank you in advance for your answers.
--
MS
10 months
[PATCH] plugin: provision: create multiple contexts for multiple entries in mbpi
by Nicola Lunghi
if the mobile provider information database has multiple apn settings for the
same operator, ofono was throwing an error and creating a default internet
context with an empty apn.
This patch will instead allow the automatic creation of multiple context
allowing the user to pick one of the default via connman.
Connman supports multiple cellular context so no issue there.
Previously proposed by Martin Hundebøll here:
https://lists.ofono.org/hyperkitty/list/ofono@ofono.org/thread/2SC46PH5CW...
And tested by Nicola Lunghi with connman 1.37
Signed-off-by: Nicola Lunghi <nick83ola(a)gmail.com>
---
plugins/provision.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/provision.c b/plugins/provision.c
index 99c299eb..aa0b05e4 100644
--- a/plugins/provision.c
+++ b/plugins/provision.c
@@ -50,7 +50,7 @@ static int provision_get_settings(const char *mcc, const char *mnc,
DBG("Provisioning for MCC %s, MNC %s, SPN '%s'", mcc, mnc, spn);
- apns = mbpi_lookup_apn(mcc, mnc, FALSE, &error);
+ apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);
if (apns == NULL) {
if (error != NULL) {
ofono_error("%s", error->message);
--
2.20.1
10 months, 2 weeks
How to handle modems with additional wwan connect stage?
by mattias.mansson@verisure.com
We are writing a ofono driver/plugin for a new Quectel modem based on a qualcomm chipset. This modem has a wwan interface that needs to be "connected" after the context is activated, partially to allow the host to run dhcp. It can be done either using QMI or with a special qualcomm command AT$QCRMCALL. We want to control it using AT, as we have found several issues with QMI. But we are having some trouble figuring out where this command should be called in the ofono state machine, at least in the LTE case where the context is automatically activated. If we activate the context manually, we could just add that call in the end of the context activation. But if we for the automatic case add this command when we receive PDN ACT 1 and the AT command fails (which right now happens sometimes), we end up in a state where we can't try again, because the context is already activated. So we can't really find the best way to do this...
Another issue I wanted to ask is that when we get an automatic context activation on 4G, we don't get the APN set from the network in the AT+CGDCONT? response. According to Quectel, this is just how their modem work. It will only show manually set APN from that response. Is this normal for any other modules? And how to solve the problem that ofono wants the APN when calling ofono_gprs_cid_activated when we get the CGEV saying the PDN is active?
10 months, 2 weeks
[PATCH] build: require dbus >= 1.6
by joey@joeyhewitt.com
dbus_validate_path() is used several times. dbus's NEWS says it was
added in 1.5.12.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b17bfb5e..3655a112 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,8 +67,8 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32, dummy=yes,
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
-PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.4, dummy=yes,
- AC_MSG_ERROR(D-Bus >= 1.4 is required))
+PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.6, dummy=yes,
+ AC_MSG_ERROR(D-Bus >= 1.6 is required))
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
--
2.17.1
10 months, 3 weeks
Expose MBPI api over d-bus
by nick83ola
Dear Ofono developers,
I need to expose the mbpi information over d-bus and possibly
automatically create profiles based on the information provided in the
mobile provider information database.
Do you think the right way could be:
- add a d-bus interface to the mbpi.c plugin
- or extend the allowed apn plugin to query the mobile provider database?
- or something else?
Thanks
Nicola Lunghi
10 months, 3 weeks
LTE Registration req not tried
by khlee9228@naver.com
Hello.
We are currently using samsung modem and RIL connection.
After power up,
In 3G case, attach request is happenend automatically
in 4G case, attach request is not happened automatically
Do you know why LTE resitration request is not happend automatically after power up?
AT+CGATT=1 is ok to make LTE registration but I have no idea why LTE registration is not happend?
10 months, 3 weeks