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and BlueZ

Hi Zhenhua,

* Zhang, Zhenhua <[email protected]> [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
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

2010-05-05 00:57:11

by Zhenhua Zhang

[permalink] [raw]
Subject: RE: Modem emulator and DUN server side for oFono and BlueZ

Hi Padovan,

Gustavo F. Padovan wrote:
> Hi Zhenhua,
>
> * Zhang, Zhenhua <[email protected]> [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
> [email protected]
> http://lists.ofono.org/listinfo/ofono



Regards,
Zhenhua


2010-07-06 09:37:37

by Suraj Sumangala

[permalink] [raw]
Subject: RE: Modem emulator and DUN server side for oFono and BlueZ

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 <[email protected]> [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
> >>> [email protected]
> >>> 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
> >> [email protected]
> >> 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
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BsaW51eC1ibHVldG9vdGgiIGluIHRoZSBib2R5IG9mIGEgbWVzc2Fn
ZSB0bw0KPj4gbWFqb3Jkb21vQHZnZXIua2VybmVsLm9yZyANCj4+IE1vcmUgbWFqb3Jkb21vIGlu
Zm8gYXQgIGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbA0KPiANCj4g
RG8geW91IGhhdmUgRFVOUCBzZXJ2ZXIgZW11bGF0b3IgaW1wbGVtZW50ZWQ/DQo+IEkgd2FzIHRo
aW5raW5nIGFib3V0IGltcGxlbWVudGluZyB0aGUgc2FtZS4gQnV0IHdvdWxkIGxpa2UgdG8gdXNl
IHlvdXINCj4gaW1wbGVtZW50YXRpb24gaWYgeW91IGhhdmUgYWxyZWFkeSBkb25lIGl0Lg0KPiAN
Cj4gUmVnYXJkcw0KPiBTdXJhag0KDQpZZXMsIEkgYW0gd29ya2luZyBEVU4gc2VydmVyIHBhcnQg
bm93LiAoSSBhc3N1bWUgJ0RVTlAnIHlvdSBtZW50aW9uZWQgaXMgJ0RVTicsIGRpYWxpbmcgdXAg
bmV0d29ya2luZykuIEkgYW0gdHJ5aW5nIHRvIHN1Ym1pdCBwYXRjaGVzIHRvIHVwc3RyZWFtIG5v
dy4gSG9wZSBpdCBjb3VsZCBiZSByZWFkeSBhc2FwIHNvIHlvdSBjYW4gdHJ5IGl0IGlmIGludGVy
ZXN0ZWQuIFRoYW5rcy4NCg0KUmVnYXJkcywNClpoZW5odWENCg0K

2010-07-06 08:30:50

by Suraj Sumangala

[permalink] [raw]
Subject: RE: Modem emulator and DUN server side for oFono and BlueZ

Hi Zhenhua,


On Wed, 2010-05-05 at 06:27 +0530, Zhang, Zhenhua wrote:
> Hi Padovan,
>
> Gustavo F. Padovan wrote:
> > Hi Zhenhua,
> >
> > * Zhang, Zhenhua <[email protected]> [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
> > [email protected]
> > 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 [email protected]
> 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