Open Source Telephony
 help / color / mirror / Atom feed
* Modem emulator and DUN server side for oFono and BlueZ
@ 2010-04-27  7:53 Zhang, Zhenhua
  2010-04-30  8:03 ` Gustavo F. Padovan
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang, Zhenhua @ 2010-04-27  7:53 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]

Hi,

I am now working on modem emulator and one usage is for DUN server role. Since Padovan is working on client role, it's good to share my rough thinking for server side implementation. Here are the simple steps I have:

1. Create an oFono emulator atom in oFono. It's the emulator manager that could create DUN, HFP AG or SPP type emulators. It exposes dbus methods like CreateEmulator, DestroyEmulator, GetProperty, etc.

2. DUN agent server in BlueZ watch oFono and call CreateEmulator and pass the file descriptor to oFono. This server could further implement HFP AG and SPP connection.

3. Once an emulator is created, other atom like voicecall, grps, sms register their interested AT command handlers to it. The goal is that we could handle all mandatory AT commands defined in DUN profile spec.

4. Once a DUN emulator received ATD*99#, DUN client performs ppp connection so we forward ppp command to ppp stack. It is done by ppp server side extension. It should be the simple command forwarding.

5. Once the PPP link over DUN is established, DUN client performs ConnMan integration and setup IP address, DNS server, etc.

6. Once the Bluetooth link is disconnected, we destroy the PPP and DUN emulator. If emulator atom itself is destroyed, we destroy the PPP and the Bluetooth connection. If the PPP link is disconnected but Bluetooth link is alive, we destroy the PPP and stay emulator alive.

Comments are welcome. :)

Regards,
Zhenhua
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modem emulator and DUN server side for oFono and BlueZ
  2010-04-27  7:53 Modem emulator and DUN server side for oFono and BlueZ Zhang, Zhenhua
@ 2010-04-30  8:03 ` Gustavo F. Padovan
  2010-05-05  0:57   ` Zhang, Zhenhua
  0 siblings, 1 reply; 6+ messages in thread
From: Gustavo F. Padovan @ 2010-04-30  8:03 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Hi Zhenhua,

* Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-04-27 15:53:54 +0800]:

> Hi,
> 
> I am now working on modem emulator and one usage is for DUN server role. Since Padovan is working on client role, it's good to share my rough thinking for server side implementation. Here are the simple steps I have:
> 
> 1. Create an oFono emulator atom in oFono. It's the emulator manager that could create DUN, HFP AG or SPP type emulators. It exposes dbus methods like CreateEmulator, DestroyEmulator, GetProperty, etc.
> 
> 2. DUN agent server in BlueZ watch oFono and call CreateEmulator and pass the file descriptor to oFono. This server could further implement HFP AG and SPP connection.


Shouldn't the emulator register itself on the BlueZ agent server?


-- 
Gustavo F. Padovan
http://padovan.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Modem emulator and DUN server side for oFono and BlueZ
  2010-04-30  8:03 ` Gustavo F. Padovan
@ 2010-05-05  0:57   ` Zhang, Zhenhua
  2010-07-06  8:31     ` suraj
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang, Zhenhua @ 2010-05-05  0:57 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

Hi Padovan,

Gustavo F. Padovan wrote:
> Hi Zhenhua,
> 
> * Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-04-27 15:53:54
> +0800]: 
> 
>> Hi,
>> 
>> I am now working on modem emulator and one usage is for DUN
> server role. Since Padovan is working on client role, it's
> good to share my rough thinking for server side
> implementation. Here are the simple steps I have:
>> 
>> 1. Create an oFono emulator atom in oFono. It's the emulator
> manager that could create DUN, HFP AG or SPP type emulators.
> It exposes dbus methods like CreateEmulator, DestroyEmulator,
> GetProperty, etc.
>> 
>> 2. DUN agent server in BlueZ watch oFono and call
> CreateEmulator and pass the file descriptor to oFono. This
> server could further implement HFP AG and SPP connection.
> 
> 
> Shouldn't the emulator register itself on the BlueZ agent server?

It's fine to register the emulator like HFP client. In this way, we might able to share the agent with DUN server as well. Thanks.

> 
> --
> Gustavo F. Padovan
> http://padovan.org
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono



Regards,
Zhenhua


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Modem emulator and DUN server side for oFono and BlueZ
  2010-05-05  0:57   ` Zhang, Zhenhua
@ 2010-07-06  8:31     ` suraj
  2010-07-06  9:30       ` Zhang, Zhenhua
  0 siblings, 1 reply; 6+ messages in thread
From: suraj @ 2010-07-06  8:31 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

Hi Zhenhua,


On Wed, 2010-05-05 at 06:27 +0530, Zhang, Zhenhua wrote:
> Hi Padovan,
> 
> Gustavo F. Padovan wrote:
> > Hi Zhenhua,
> > 
> > * Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-04-27 15:53:54
> > +0800]: 
> > 
> >> Hi,
> >> 
> >> I am now working on modem emulator and one usage is for DUN
> > server role. Since Padovan is working on client role, it's
> > good to share my rough thinking for server side
> > implementation. Here are the simple steps I have:
> >> 
> >> 1. Create an oFono emulator atom in oFono. It's the emulator
> > manager that could create DUN, HFP AG or SPP type emulators.
> > It exposes dbus methods like CreateEmulator, DestroyEmulator,
> > GetProperty, etc.
> >> 
> >> 2. DUN agent server in BlueZ watch oFono and call
> > CreateEmulator and pass the file descriptor to oFono. This
> > server could further implement HFP AG and SPP connection.
> > 
> > 
> > Shouldn't the emulator register itself on the BlueZ agent server?
> 
> It's fine to register the emulator like HFP client. In this way, we might able to share the agent with DUN server as well. Thanks.
> 
> > 
> > --
> > Gustavo F. Padovan
> > http://padovan.org
> > _______________________________________________
> > ofono mailing list
> > ofono(a)ofono.org
> > http://lists.ofono.org/listinfo/ofono
> 
> 
> 
> Regards,
> Zhenhua
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo(a)vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Do you have DUNP server emulator implemented?
I was thinking about implementing the same. But would like to use your
implementation if you have already done it.

Regards
Suraj



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Modem emulator and DUN server side for oFono and BlueZ
  2010-07-06  8:31     ` suraj
@ 2010-07-06  9:30       ` Zhang, Zhenhua
  2010-07-06  9:38         ` suraj
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang, Zhenhua @ 2010-07-06  9:30 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]

Hi Suraj,

suraj wrote:
> Hi Zhenhua,
> 
> 
> On Wed, 2010-05-05 at 06:27 +0530, Zhang, Zhenhua wrote:
>> Hi Padovan,
>> 
>> Gustavo F. Padovan wrote:
>>> Hi Zhenhua,
>>> 
>>> * Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-04-27 15:53:54
>>> +0800]: 
>>> 
>>>> Hi,
>>>> 
>>>> I am now working on modem emulator and one usage is for DUN
>>> server role. Since Padovan is working on client role, it's
>>> good to share my rough thinking for server side
>>> implementation. Here are the simple steps I have:
>>>> 
>>>> 1. Create an oFono emulator atom in oFono. It's the emulator
>>> manager that could create DUN, HFP AG or SPP type emulators.
>>> It exposes dbus methods like CreateEmulator, DestroyEmulator,
>>> GetProperty, etc.
>>>> 
>>>> 2. DUN agent server in BlueZ watch oFono and call
>>> CreateEmulator and pass the file descriptor to oFono. This
>>> server could further implement HFP AG and SPP connection.
>>> 
>>> 
>>> Shouldn't the emulator register itself on the BlueZ agent server?
>> 
>> It's fine to register the emulator like HFP client. In this
> way, we might able to share the agent with DUN server as well. Thanks.
>> 
>>> 
>>> --
>>> Gustavo F. Padovan
>>> http://padovan.org
>>> _______________________________________________
>>> ofono mailing list
>>> ofono(a)ofono.org
>>> http://lists.ofono.org/listinfo/ofono
>> 
>> 
>> 
>> Regards,
>> Zhenhua
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-bluetooth" in the body of a message to
>> majordomo(a)vger.kernel.org 
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> Do you have DUNP server emulator implemented?
> I was thinking about implementing the same. But would like to use your
> implementation if you have already done it.
> 
> Regards
> Suraj

Yes, I am working DUN server part now. (I assume 'DUNP' you mentioned is 'DUN', dialing up networking). I am trying to submit patches to upstream now. Hope it could be ready asap so you can try it if interested. Thanks.

Regards,
Zhenhua


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Modem emulator and DUN server side for oFono and BlueZ
  2010-07-06  9:30       ` Zhang, Zhenhua
@ 2010-07-06  9:38         ` suraj
  0 siblings, 0 replies; 6+ messages in thread
From: suraj @ 2010-07-06  9:38 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]

Hi Zhenhua,

On Tue, 2010-07-06 at 15:00 +0530, Zhang, Zhenhua wrote:
> Hi Suraj,
> 
> suraj wrote:
> > Hi Zhenhua,
> > 
> > 
> > On Wed, 2010-05-05 at 06:27 +0530, Zhang, Zhenhua wrote:
> >> Hi Padovan,
> >> 
> >> Gustavo F. Padovan wrote:
> >>> Hi Zhenhua,
> >>> 
> >>> * Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-04-27 15:53:54
> >>> +0800]: 
> >>> 
> >>>> Hi,
> >>>> 
> >>>> I am now working on modem emulator and one usage is for DUN
> >>> server role. Since Padovan is working on client role, it's
> >>> good to share my rough thinking for server side
> >>> implementation. Here are the simple steps I have:
> >>>> 
> >>>> 1. Create an oFono emulator atom in oFono. It's the emulator
> >>> manager that could create DUN, HFP AG or SPP type emulators.
> >>> It exposes dbus methods like CreateEmulator, DestroyEmulator,
> >>> GetProperty, etc.
> >>>> 
> >>>> 2. DUN agent server in BlueZ watch oFono and call
> >>> CreateEmulator and pass the file descriptor to oFono. This
> >>> server could further implement HFP AG and SPP connection.
> >>> 
> >>> 
> >>> Shouldn't the emulator register itself on the BlueZ agent server?
> >> 
> >> It's fine to register the emulator like HFP client. In this
> > way, we might able to share the agent with DUN server as well. Thanks.
> >> 
> >>> 
> >>> --
> >>> Gustavo F. Padovan
> >>> http://padovan.org
> >>> _______________________________________________
> >>> ofono mailing list
> >>> ofono(a)ofono.org
> >>> http://lists.ofono.org/listinfo/ofono
> >> 
> >> 
> >> 
> >> Regards,
> >> Zhenhua
> >> 
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe
> >> linux-bluetooth" in the body of a message to
> >> majordomo(a)vger.kernel.org 
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> > Do you have DUNP server emulator implemented?
> > I was thinking about implementing the same. But would like to use your
> > implementation if you have already done it.
> > 
> > Regards
> > Suraj
> 
> Yes, I am working DUN server part now. (I assume 'DUNP' you mentioned is 'DUN', dialing up networking). I am trying to submit patches to upstream now. Hope it could be ready asap so you can try it if interested. Thanks.
> 
> Regards,
> Zhenhua
> 

Thank you. You are right, I meant DUN server.
I will use your patches when it is ready.

Regards
Suraj




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-06  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27  7:53 Modem emulator and DUN server side for oFono and BlueZ Zhang, Zhenhua
2010-04-30  8:03 ` Gustavo F. Padovan
2010-05-05  0:57   ` Zhang, Zhenhua
2010-07-06  8:31     ` suraj
2010-07-06  9:30       ` Zhang, Zhenhua
2010-07-06  9:38         ` suraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox