Option (hso) modem and PAP

2010-09-27 Thread Benoit Monin
Hi, I have been trying an Option modem with ofono recently. It took me a while to establish a connection because the APN we're using needs a username and password. Apparently Option swapped the username and password of the AT command AT$QCPDPP. Also, it seems that some other Option modem uses

[PATCH] Set username and password with create-context

2010-09-27 Thread Benoit Monin
Add the possibility to set the username and the password with create-context, in complement of the APN. --- test/create-context | 28 +++- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/test/create-context b/test/create-context index 6777ba7..6e42053 100755

[PATCH] hso : swap username and password for PAP

2010-09-27 Thread Benoit Monin
The parameters for the AT command AT$QCPDPP must be swapped for PAP in order to make to work with an Option modem. Tested with a GTM382 development kit. No idea about CHAP parameters. --- drivers/hsomodem/gprs-context.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] Fix 8bit port handling

2010-09-27 Thread Aki Niemi
--- src/sms.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sms.c b/src/sms.c index 9bf7feb..6143aa2 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1197,8 +1197,8 @@ static void sms_dispatch(struct ofono_sms *sms, GSList *sms_list) }

[PATCH 2/2] Add datagram dispatch to sms atom

2010-09-27 Thread Aki Niemi
--- src/sms.c | 41 +++-- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/sms.c b/src/sms.c index 9bf7feb..e6a2f9c 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1064,12 +1064,24 @@ static gboolean compute_incoming_msgid(GSList *sms_list,

[PATCH 1/2] Include datagram support to history API

2010-09-27 Thread Aki Niemi
--- include/history.h |5 + src/history.c | 47 ++- src/ofono.h |8 3 files changed, 59 insertions(+), 1 deletions(-) diff --git a/include/history.h b/include/history.h index c1c4aa1..e661f24 100644 ---

[PATCH] calypso: update power and reset path

2010-09-27 Thread Frank Gau
--- plugins/calypso.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calypso.c b/plugins/calypso.c index ea55ed4..130fa6e 100644 --- a/plugins/calypso.c +++ b/plugins/calypso.c @@ -58,8 +58,8 @@ #include drivers/atmodem/vendor.h -#define

SMS agent interface

2010-09-27 Thread Aki Niemi
Hi all, This following set of patches introduces an agent interface for receiving text messages as well as vCard and vCal objects. It grows a pair of methods on the org.ofono.MessageManager interface for registering and unregistering such agents. I've included the patches introducing datagram

[PATCH 2/7] Add datagram dispatch to sms atom

2010-09-27 Thread Aki Niemi
--- src/sms.c | 41 +++-- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/sms.c b/src/sms.c index 9bf7feb..e6a2f9c 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1064,12 +1064,24 @@ static gboolean compute_incoming_msgid(GSList *sms_list,

[PATCH 1/7] Include datagram support to history API

2010-09-27 Thread Aki Niemi
--- include/history.h |5 + src/history.c | 47 ++- src/ofono.h |8 3 files changed, 59 insertions(+), 1 deletions(-) diff --git a/include/history.h b/include/history.h index c1c4aa1..e661f24 100644 ---

[PATCH 4/7] Add message agent interface definition

2010-09-27 Thread Aki Niemi
--- include/dbus.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/dbus.h b/include/dbus.h index 363bae2..bf945f1 100644 --- a/include/dbus.h +++ b/include/dbus.h @@ -42,6 +42,7 @@ extern C { #define OFONO_CONNECTION_MANAGER_INTERFACE org.ofono.ConnectionManager

[PATCH 3/7] Add message agent interface documentation

2010-09-27 Thread Aki Niemi
--- doc/message-api.txt | 51 +++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/doc/message-api.txt b/doc/message-api.txt index 9e8d02f..5bdc98d 100644 --- a/doc/message-api.txt +++ b/doc/message-api.txt @@ -38,6 +38,29 @@

[PATCH 5/7] Add message agent implementation

2010-09-27 Thread Aki Niemi
--- Makefile.am|2 +- src/smsagent.c | 344 src/smsagent.h | 56 + 3 files changed, 401 insertions(+), 1 deletions(-) create mode 100644 src/smsagent.c create mode 100644 src/smsagent.h diff --git a/Makefile.am

[PATCH 6/7] Add agent interface to sms atom

2010-09-27 Thread Aki Niemi
--- src/sms.c | 146 +++- 1 files changed, 143 insertions(+), 3 deletions(-) diff --git a/src/sms.c b/src/sms.c index e6a2f9c..d86b5ec 100644 --- a/src/sms.c +++ b/src/sms.c @@ -38,6 +38,8 @@ #include smsutil.h #include storage.h

Re: Please comment on callhistory API

2010-09-27 Thread Marcel Holtmann
Hi Raji, CallHistory hierarchy = Service : org.ofono Interface : org.ofono.CallHistory Object path : [variable prefix]/{modem0,modem1,...}/CallHistory the object path is wrong here. This should be pretty much on the main / object path. And not on per modem and not in a

Re: Please comment on callhistory API

2010-09-27 Thread rajyalakshmi bommaraju
Marcel, org.ofono.History will be the main adapter interface and org.ofono.CallHistoryAgent the callhistory agent and org.ofono.SmsHistoryAgent as the sms history agent. I want to seperate the two agents so that sms app will expose sms history agent and dialer will register and expose

Re: Please comment on callhistory API

2010-09-27 Thread Marcel Holtmann
Hi Raji, this is the second time I have to remind you to not top post. Next time I will ignore your email. Just a friendly reminder to follow proper mailing list etiquette. org.ofono.History will be the main adapter interface and org.ofono.CallHistoryAgent the callhistory agent and

Re: Please comment on callhistory API

2010-09-27 Thread Denis Kenzior
Hi Marcel, On 09/27/2010 12:50 PM, Marcel Holtmann wrote: Hi Raji, CallHistory hierarchy = Service : org.ofono Interface : org.ofono.CallHistory Object path : [variable prefix]/{modem0,modem1,...}/CallHistory the object path is wrong here. This should be pretty much on the

Re: Please comment on callhistory API

2010-09-27 Thread Marcel Holtmann
Hi Denis, CallHistory hierarchy = Service : org.ofono Interface : org.ofono.CallHistory Object path : [variable prefix]/{modem0,modem1,...}/CallHistory the object path is wrong here. This should be pretty much on the main / object path. And not on per modem and not

Re: Please comment on callhistory API

2010-09-27 Thread Denis Kenzior
Hi Marcel, On 09/27/2010 06:14 PM, Marcel Holtmann wrote: Hi Denis, CallHistory hierarchy = Service : org.ofono Interface : org.ofono.CallHistory Object path : [variable prefix]/{modem0,modem1,...}/CallHistory the object path is wrong here. This should be pretty much on the

Re: Please comment on callhistory API

2010-09-27 Thread rajyalakshmi bommaraju
Hello Marcel, Marcel Holtmann wrote: Hi Raji, this is the second time I have to remind you to not top post. Next time I will ignore your email. Just a friendly reminder to follow proper mailing list etiquette. org.ofono.History will be the main adapter interface and

Re: [PATCHv2] Fix 8bit port handling

2010-09-27 Thread Denis Kenzior
Hi Aki, On 09/27/2010 10:45 AM, Aki Niemi wrote: --- src/sms.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) This one looks good to me. Thanks, -Denis ___ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono

Re: [PATCH] calypso: update power and reset path

2010-09-27 Thread Denis Kenzior
Hi Frank, On 09/27/2010 09:05 AM, Frank Gau wrote: --- plugins/calypso.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Patch has been applied, thanks. I'm assuming this will work with the latest Freerunner kernels only? Regards, -Denis

Re: [PATCH] hso : swap username and password for PAP

2010-09-27 Thread Denis Kenzior
Hi Benoit, On 09/27/2010 07:38 AM, Benoit Monin wrote: The parameters for the AT command AT$QCPDPP must be swapped for PAP in order to make to work with an Option modem. Tested with a GTM382 development kit. No idea about CHAP parameters. --- drivers/hsomodem/gprs-context.c | 2 +- 1 files

RE: Using ofono HFP

2010-09-27 Thread Zhang, Zhenhua
Hi Moises, Denis Kenzior wrote: Hi Moises, I was advised by padovan on IRC that I should try dbus = 1.3 ... I am going to try that today, I was putting that off cuz this seemed like a lower level issue and upgrading dbus seemed like non-trivial since many things depend on dbus and fedora

Re: [PATCH 1/7] Include datagram support to history API

2010-09-27 Thread Denis Kenzior
Hi Aki, --- a/src/history.c +++ b/src/history.c @@ -47,7 +47,15 @@ struct history_call_foreach_data { struct history_sms_foreach_data { const struct ofono_uuid *uuid; const char *address; - const char *text; + union { + const char *text; +

Re: Using ofono HFP

2010-09-27 Thread Moises Silva
On Mon, Sep 27, 2010 at 9:26 PM, Zhang, Zhenhua zhenhua.zh...@intel.comwrote: Right. See bluez/audio/unix.c for BlueZ part SCO code that cooperate with pulseaudio. BlueZ sends SCO fd to pulseaudio via UNIX type socks. Thanks a lot for the additional help. I just setup a quick wiki page to

RE: Using ofono HFP

2010-09-27 Thread Zhang, Zhenhua
Hi Silva, From: ofono-boun...@ofono.org [mailto:ofono-boun...@ofono.org] On Behalf Of Moises Silva Sent: Tuesday, September 28, 2010 10:45 AM To: ofono@ofono.org Subject: Re: Using ofono HFP On Mon, Sep 27, 2010 at 9:26 PM, Zhang,