[PATCH 2/4] Add handle the case when write buffer is full

2010-02-10 Thread Zhenhua Zhang
If current write_buf is fulled, put it into the full list and fetch a new ring buffer from the free list. --- gatchat/gatserver.c | 63 -- 1 files changed, 60 insertions(+), 3 deletions(-) diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c

[PATCH] Add support of Huawei EM770 modem

2010-02-10 Thread Gu, Yang
Hi, This patch is to enable Huawei EM770 modem, which is a full feature modem that supports voicecall, phonebook, call forwarding, call barring, etc. There are two known parts of code that may have problem and need your comments. 1. Once connecting this modem to PC via USB, we can get 5 tty

Re: [PATCH 3/4] Add ring_buffer_read_advance for partial write

2010-02-10 Thread Denis Kenzior
Hi Zhenhua, These two patches are for server side partial write. When server writes data into non-blocking IO, we first get the read pointer of write_buf and write data as much as we can. Then we advance the read_ptr according to the real bytes written. --- gatchat/ringbuffer.c |8

Re: [PATCH] Add support of Huawei EM770 modem

2010-02-10 Thread Denis Kenzior
Hi Yang, There are two known parts of code that may have problem and need your comments. 1. Once connecting this modem to PC via USB, we can get 5 tty ports: ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3 and ttyUSB4. The correct way to talk to this modem is using ttyUSB2. I'm not sure if I handled

Re: [PATCH 1/4] Rename buf to read_buf in GAtServer

2010-02-10 Thread Denis Kenzior
Hi Zhenhua, Because we may introduce write_buf for sever response buffer. --- This patch has been applied, thanks. Regards, -Denis ___ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono

RFC: Neighbouring Cell Info, take 2

2010-02-10 Thread Bastian, Waldo
Hi, Revisited proposal for neighbouring cell info based on previous feedback: - Low-level driver API instead of oFono.org DBUS API - Polling based, no automatic periodic updates - Follows definitions in OMA SUPL v2.0 I'm not particular fond of the nested list - wcdma.

Re: [PATCH 1/4] Add write ring buffer for non-blocking write

2010-02-10 Thread Zhenhua Zhang
Hi Padovan, On 02/11/2010 01:23 AM, Gustavo F. Padovan wrote: * Zhenhua Zhangzhenhua.zh...@intel.com [2010-02-10 16:13:40 +0800]: + + for (i = 0; i MAX_BUFFER_NUM; i++) { +#ifdef WRITE_SCHEDULER_DEBUG + buf = ring_buffer_new(4); +#else + buf =

[PATCH 2/3] Add handle the case when write buffer is full

2010-02-10 Thread Zhenhua Zhang
If current write_buf is fulled, put it into the full list and fetch a new ring buffer from the free list. --- gatchat/gatserver.c | 63 -- 1 files changed, 60 insertions(+), 3 deletions(-) diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c

[PATCH 1/3] Add write ring buffer for non-blocking write

2010-02-10 Thread Zhenhua Zhang
Use two layers to cache server side response data to client. 1. A fixed-length ring buffer. 2. A list of free ring buffers and a list of empty full ring buffer. If current ring buffer is full, put it into full buffer list and fetch a free buffer frome free list. --- gatchat/gatserver.c | 106

RE: [PATCH] Add support of Huawei EM770 modem

2010-02-10 Thread Gu, Yang
Hi, Andrew and Denis, -Original Message- From: ofono-boun...@ofono.org [mailto:ofono-boun...@ofono.org] On Behalf Of Denis Kenzior Sent: Thursday, February 11, 2010 6:38 AM To: ofono@ofono.org Subject: Re: [PATCH] Add support of Huawei EM770 modem Hi Yang, There are two known parts of

Re: RFC: Neighbouring Cell Info, take 2

2010-02-10 Thread Aki Niemi
to, 2010-02-11 kello 01:23 +0100, ext Bastian, Waldo kirjoitti: Revisited proposal for neighbouring cell info based on previous feedback: - Low-level driver API instead of oFono.org DBUS API - Polling based, no automatic periodic updates - Follows definitions in OMA SUPL v2.0 I like it.