RE: How does ConnMan works with Ofono? RE: [PATCH */4] add interface property to primary context

2009-11-09 Thread Xu, Martin
> __
> Ofono ConnMan
> --
> 
> 1.Modemdevice
>   |
>   | (create/load)
>   |
>   V
> 2.PC_i Network
>   |
>   |(powered up)
>   |
>   V
> 3.Attached PC_i--->Service (ready)
 3.Attached PC_i--->Service (idle)

>  |
>  |(connect)
>  |
>  V
> 4.Activated PC_i   Service (associated)
>  |
>  |(configure/dhcp)
>  |
>  V
> 5.   Service (READY)
> 
> 1. ConnMan detects the Modem from Ofono and create corresponding device
> 2. ConnMan detects the PC_i and create corresponding Network(First time,
> ConnMan will ask Ofono to create PC_i)
> 3. Once the PC_i attached ConnMan will create service
> 4. When user connects service, ConnMan will ask ofono to activate PC_i.
>When PC_i is activated, Service in ConnMan is associated.
> 5. ConnMan will configure/dhcp to ipconfigure the service, and then service in
> READY state
> ___
> connman mailing list
> conn...@connman.net
> http://lists.connman.net/listinfo/connman
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


How does ConnMan works with Ofono? RE: [PATCH */4] add interface property to primary context

2009-11-09 Thread Xu, Martin
Hi Marcel/Denis
In order to implement interface property. I think we need to clarify how does 
ConnMan work with Ofono firstly

In my opinion ConnMan and ofono works like below. Could you review and give out 
your opinions? Thanks!

PC_i: PrimaryContext_(internet type):
__
Ofono ConnMan
--

1.Modemdevice
  |
  | (create/load)
  |
  V
2.PC_i Network
  |
  |(powered up)
  |
  V
3.Attached PC_i--->Service (ready)
 |
 |(connect)
 |
 V 
4.Activated PC_i   Service (associated)
 |
 |(configure/dhcp)
 |
 V
5.   Service (READY)

1. ConnMan detects the Modem from Ofono and create corresponding device
2. ConnMan detects the PC_i and create corresponding Network(First time, 
ConnMan will ask Ofono to create PC_i)
3. Once the PC_i attached ConnMan will create service
4. When user connects service, ConnMan will ask ofono to activate PC_i.
   When PC_i is activated, Service in ConnMan is associated.
5. ConnMan will configure/dhcp to ipconfigure the service, and then service in 
READY state
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


[PATCH */4] add interface property to primary context

2009-11-08 Thread Xu, Martin
Hi:
"Interface" property of Primary Context is needed by ofono plugin for Connman.
These patches are used to implement "interface" property for Primary Context. 
Below is the way to implement it.
1.  Create "interface" in Primary Context creating 
2.   Destroy "interface" in Primary Context destroying
3.  "interface" is created/destroyed by ofono_gprs_context_driver
   a)   "interface" of MBM is inherited from NetworkInterface of modem which is 
exported from kernel
   b)   Others can use ofono_gprs_context_driver->create/destroy_interface() to 
create/destroy interface such as ppp0 and tun0.
Please review it.
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono