* [PATCH] common : bring back some details about technology
@ 2010-10-21 14:07 =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-22 13:29 ` Aki Niemi
0 siblings, 1 reply; 4+ messages in thread
From: =?unknown-8bit?q?Beno=C3=AEt?= Monin @ 2010-10-21 14:07 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
Our application require some more details about network technology
in use. This patch might be a bit controversial because commit
1e783b3 actively simplified the technology field.
Maybe adding a 'Generation' field ('2G', '2.5G', '3G'...) would
be more end-user friendly ?
---
src/common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/common.c b/src/common.c
index b5b9a6f..d571d81 100644
--- a/src/common.c
+++ b/src/common.c
@@ -655,15 +655,15 @@ const char *registration_tech_to_string(int tech)
case ACCESS_TECHNOLOGY_GSM:
return "gsm";
case ACCESS_TECHNOLOGY_GSM_COMPACT:
- return "gsm";
+ return "gprs";
case ACCESS_TECHNOLOGY_UTRAN:
return "umts";
case ACCESS_TECHNOLOGY_GSM_EGPRS:
return "edge";
case ACCESS_TECHNOLOGY_UTRAN_HSDPA:
- return "hspa";
+ return "hsdpa";
case ACCESS_TECHNOLOGY_UTRAN_HSUPA:
- return "hspa";
+ return "hsupa";
case ACCESS_TECHNOLOGY_UTRAN_HSDPA_HSUPA:
return "hspa";
case ACCESS_TECHNOLOGY_EUTRAN:
--
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] common : bring back some details about technology
2010-10-21 14:07 [PATCH] common : bring back some details about technology =?unknown-8bit?q?Beno=C3=AEt?= Monin
@ 2010-10-22 13:29 ` Aki Niemi
0 siblings, 0 replies; 4+ messages in thread
From: Aki Niemi @ 2010-10-22 13:29 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]
Hi,
2010/10/21 "Benoît Monin" <benoit.monin@gmx.fr>:
> diff --git a/src/common.c b/src/common.c
> index b5b9a6f..d571d81 100644
> --- a/src/common.c
> +++ b/src/common.c
> @@ -655,15 +655,15 @@ const char *registration_tech_to_string(int tech)
> case ACCESS_TECHNOLOGY_GSM:
> return "gsm";
> case ACCESS_TECHNOLOGY_GSM_COMPACT:
> - return "gsm";
> + return "gprs";
> case ACCESS_TECHNOLOGY_UTRAN:
> return "umts";
> case ACCESS_TECHNOLOGY_GSM_EGPRS:
> return "edge";
> case ACCESS_TECHNOLOGY_UTRAN_HSDPA:
> - return "hspa";
> + return "hsdpa";
> case ACCESS_TECHNOLOGY_UTRAN_HSUPA:
> - return "hspa";
> + return "hsupa";
> case ACCESS_TECHNOLOGY_UTRAN_HSDPA_HSUPA:
> return "hspa";
> case ACCESS_TECHNOLOGY_EUTRAN:
Do you need to know if the cell supports high speed uplink, downlink
or both; or in fact, when uplink or downlink is active (i.e., channel
allocated)? Currently the API is telling you the former, and
supporting the latter would require changes not only in the D-Bus API,
but also in the driver API.
As a side note, I think I was originally proposing using the
generation tags, but either way works for me. That is, I consider it
3.5G when at least HSDPA is available.
Cheers,
Aki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] common : bring back some details about technology
@ 2010-10-22 14:01 =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-22 14:37 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: =?unknown-8bit?q?Beno=C3=AEt?= Monin @ 2010-10-22 14:01 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]
Hi Aki,
> De : Aki Niemi
>
> Hi,
>
> 2010/10/21 "Benoît Monin" <benoit.monin@gmx.fr>:
> > diff --git a/src/common.c b/src/common.c
> > index b5b9a6f..d571d81 100644
> > --- a/src/common.c
> > +++ b/src/common.c
> > @@ -655,15 +655,15 @@ const char *registration_tech_to_string(int tech)
> > case ACCESS_TECHNOLOGY_GSM:
> > return "gsm";
> > case ACCESS_TECHNOLOGY_GSM_COMPACT:
> > - return "gsm";
> > + return "gprs";
> > case ACCESS_TECHNOLOGY_UTRAN:
> > return "umts";
> > case ACCESS_TECHNOLOGY_GSM_EGPRS:
> > return "edge";
> > case ACCESS_TECHNOLOGY_UTRAN_HSDPA:
> > - return "hspa";
> > + return "hsdpa";
> > case ACCESS_TECHNOLOGY_UTRAN_HSUPA:
> > - return "hspa";
> > + return "hsupa";
> > case ACCESS_TECHNOLOGY_UTRAN_HSDPA_HSUPA:
> > return "hspa";
> > case ACCESS_TECHNOLOGY_EUTRAN:
>
> Do you need to know if the cell supports high speed uplink, downlink
> or both; or in fact, when uplink or downlink is active (i.e., channel
> allocated)? Currently the API is telling you the former, and
> supporting the latter would require changes not only in the D-Bus API,
> but also in the driver API.
>
The API is fine as-is, we just need a bit more details about the
technology in use. It will be purely informative in our application
anyway.
> As a side note, I think I was originally proposing using the
> generation tags, but either way works for me. That is, I consider it
> 3.5G when at least HSDPA is available.
>
I was just thinking out loud about a "generation" field, I don't have
any need for it. And it can be obtained from the technology (correct
me if I'm wrong) :
gsm -> 2G
gprs, edge -> 2.5G
umts -> 3G
hsdpa, hsupa, hspa -> 3.5G
lte -> 4G
--
Benoît.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] common : bring back some details about technology
2010-10-22 14:01 =?unknown-8bit?q?Beno=C3=AEt?= Monin
@ 2010-10-22 14:37 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2010-10-22 14:37 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]
Hi Benoît,
On 10/22/2010 09:01 AM, "Benoît Monin" wrote:
> Hi Aki,
>
>> De : Aki Niemi
>>
>> Hi,
>>
>> 2010/10/21 "Benoît Monin" <benoit.monin@gmx.fr>:
>>> diff --git a/src/common.c b/src/common.c
>>> index b5b9a6f..d571d81 100644
>>> --- a/src/common.c
>>> +++ b/src/common.c
>>> @@ -655,15 +655,15 @@ const char *registration_tech_to_string(int tech)
>>> case ACCESS_TECHNOLOGY_GSM:
>>> return "gsm";
>>> case ACCESS_TECHNOLOGY_GSM_COMPACT:
>>> - return "gsm";
>>> + return "gprs";
>>> case ACCESS_TECHNOLOGY_UTRAN:
>>> return "umts";
>>> case ACCESS_TECHNOLOGY_GSM_EGPRS:
>>> return "edge";
>>> case ACCESS_TECHNOLOGY_UTRAN_HSDPA:
>>> - return "hspa";
>>> + return "hsdpa";
>>> case ACCESS_TECHNOLOGY_UTRAN_HSUPA:
>>> - return "hspa";
>>> + return "hsupa";
>>> case ACCESS_TECHNOLOGY_UTRAN_HSDPA_HSUPA:
>>> return "hspa";
>>> case ACCESS_TECHNOLOGY_EUTRAN:
>>
>> Do you need to know if the cell supports high speed uplink, downlink
>> or both; or in fact, when uplink or downlink is active (i.e., channel
>> allocated)? Currently the API is telling you the former, and
>> supporting the latter would require changes not only in the D-Bus API,
>> but also in the driver API.
>>
> The API is fine as-is, we just need a bit more details about the
> technology in use. It will be purely informative in our application
> anyway.
>
>> As a side note, I think I was originally proposing using the
>> generation tags, but either way works for me. That is, I consider it
>> 3.5G when at least HSDPA is available.
>>
> I was just thinking out loud about a "generation" field, I don't have
> any need for it. And it can be obtained from the technology (correct
> me if I'm wrong) :
>
The way AT modems report technology is totally bizarre. Daniel Wagner
played quite extensively with HSO and technology reporting, but we
failed to come up with a nice solution due to the stupid firmware on
these devices.
This is when we then decided to use 2g/3g/4g information only in the
NetworkRegistration atom and give the currently active bearer technology
in the ConnectionManager atom. Nobody has had time to do the latter.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-22 14:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 14:07 [PATCH] common : bring back some details about technology =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-22 13:29 ` Aki Niemi
-- strict thread matches above, loose matches on Subject: below --
2010-10-22 14:01 =?unknown-8bit?q?Beno=C3=AEt?= Monin
2010-10-22 14:37 ` Denis Kenzior
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.