RE: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-08 Thread Rémi Denis-Courmont
On Thu, 8 Jul 2010 10:31:03 +0800, Zhang, Zhenhua zhenhua.zh...@intel.com wrote: Marcel is right. Here I fake most AT commands like +CFUN to make DUN client happy. We don't need to power on/off real modem at all. See gatchat/test-server.c for similar implementation. That depends much what

RE: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-08 Thread Marcel Holtmann
Hi Remi, Marcel is right. Here I fake most AT commands like +CFUN to make DUN client happy. We don't need to power on/off real modem at all. See gatchat/test-server.c for similar implementation. That depends much what you're trying to achieve. If you only care about Dial-Up Networking,

RE: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-08 Thread Rémi Denis-Courmont
On Thu, 08 Jul 2010 10:26:04 -0300, Marcel Holtmann mar...@holtmann.org wrote: Marcel is right. Here I fake most AT commands like +CFUN to make DUN client happy. We don't need to power on/off real modem at all. See gatchat/test-server.c for similar implementation. That depends much what

Re: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-08 Thread Denis Kenzior
Hi Remi, On 07/08/2010 09:23 AM, Rémi Denis-Courmont wrote: On Thu, 08 Jul 2010 10:26:04 -0300, Marcel Holtmann mar...@holtmann.org wrote: Marcel is right. Here I fake most AT commands like +CFUN to make DUN client happy. We don't need to power on/off real modem at all. See

Re: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-07 Thread Rémi Denis-Courmont
On Wed, 7 Jul 2010 18:01:48 +0800, Zhenhua Zhang zhenhua.zh...@intel.com wrote: +static void cfun_cb(GAtServerRequestType type, GAtResult *cmd, + gpointer user_data) +{ + struct ofono_emulator *e = user_data; + char buf[50]; + + switch

Re: [PATCH 11/15] emulator: Register mandatory AT command handlers

2010-07-07 Thread Marcel Holtmann
Hi Remi, +static void cfun_cb(GAtServerRequestType type, GAtResult *cmd, + gpointer user_data) +{ + struct ofono_emulator *e = user_data; + char buf[50]; + + switch (type) { + case G_AT_SERVER_REQUEST_TYPE_SUPPORT: +