Re: oFono running on new Freerunner distribution

2009-12-01 Thread Denis Kenzior
Hi Dario,

 I also noticed a missing line in the plugins/calypso.c file which
 differs from 0.7 to 0.8-0.11, I added in the 0.11 release but without
 results, but if it can be useful to debug the line is:

 ofono_devinfo_create(modem, 0, atmodem, data-dlcs[AUX_DLC]);

It isn't missing, it has been moved to pre_sim function.  Actually all of 
calypso.c atom setup was completely wrong.  It suffered some bit-rot.

I've fixed up calypso plugin and tested it running natively on my Freerunner.  
I can now dial - alerting - hangup, and also dial - accept - hangup.

Hopefully third time is the charm.  Let me know if it still doesn't work.

Regards,
-Denis
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: Huawei E220 + Data Connection Manager

2009-12-01 Thread Marcel Holtmann
Hi Mitsutaka,

 I'm trying to implement for Huawei E220 using Data Connection
 Manager. I understand GPRS data conneciton is working in progress. But
 I don't know much connection sequence that.
 
 So I'd like to tell me how should I approach. and I guess data
 connection in the following. If I mistake, please point out.
 
 1. Launch ofonod, plug-in the modem.
 2. Enable modems for getting modem information, Model, Manufacture, Serial 
 and so on(test/enable-modem).
 
 3. Create a context(org.ofono.PrimaryDataContext) according to 
 doc/dataconnectionmanager-api.txt 
ex. Japanese carrier
 % ./test/list-contexts
 [ /huawei1 ]
 [ /huawei1/primarycontext1 ]
 Username = em
 Name = Example
 Settings = { }
 Active = 0
 AccessPointName = 1
 Password = em
 Type = internet
 
 4. Activate it. but currently it can not be atacched
 Traceback (most recent call last):
   File ./test/activate-context, line 38, in module
 context.SetProperty(Active, dbus.Boolean(1))
   File /usr/lib/python2.6/site-packages/dbus/proxies.py, line 68, in 
 __call__
 return self._proxy_method(*args, **keywords)
   File /usr/lib/python2.6/site-packages/dbus/proxies.py, line 140, in 
 __call__
 **keywords)
   File /usr/lib/python2.6/site-packages/dbus/connection.py, line 622, in 
 call_blocking
 message, timeout)
 dbus.exceptions.DBusException: org.ofono.Error.NotAttached: GPRS is not 
 attached
 
 5. Dialup using ATDT (this case is support only Tone)
ATDT*99***1#
CONNECT
 6. ppp0 interface up
 7. Authenticate EAP, PAP or CHAP using Username, Passowrd
 8. Getting IP Address, Netmask, Gateway from APN(?)

so this is the interesting part. We don't wanna use the magic *99* magic
and actually use the proper GPRS AT command for connecting the context.
But then we have to talk PPP. That is currently work in progress as an
extension to GAtChat.

Regards

Marcel


___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: Huawei E220 + Data Connection Manager

2009-12-01 Thread Mitsutaka Amano
Hi, Marcel

On 03:17 Wed 02 Dec , Marcel Holtmann wrote:
 Hi Mitsutaka,
 
  I'm trying to implement for Huawei E220 using Data Connection
  Manager. I understand GPRS data conneciton is working in progress. But
  I don't know much connection sequence that.
  
  So I'd like to tell me how should I approach. and I guess data
  connection in the following. If I mistake, please point out.
  
  1. Launch ofonod, plug-in the modem.
  2. Enable modems for getting modem information, Model, Manufacture, Serial 
  and so on(test/enable-modem).
  
  3. Create a context(org.ofono.PrimaryDataContext) according to 
  doc/dataconnectionmanager-api.txt 
 ex. Japanese carrier
  % ./test/list-contexts
  [ /huawei1 ]
  [ /huawei1/primarycontext1 ]
  Username = em
  Name = Example
  Settings = { }
  Active = 0
  AccessPointName = 1
  Password = em
  Type = internet
  
  4. Activate it. but currently it can not be atacched
  Traceback (most recent call last):
File ./test/activate-context, line 38, in module
  context.SetProperty(Active, dbus.Boolean(1))
File /usr/lib/python2.6/site-packages/dbus/proxies.py, line 68, in 
  __call__
  return self._proxy_method(*args, **keywords)
File /usr/lib/python2.6/site-packages/dbus/proxies.py, line 140, in 
  __call__
  **keywords)
File /usr/lib/python2.6/site-packages/dbus/connection.py, line 622, in 
  call_blocking
  message, timeout)
  dbus.exceptions.DBusException: org.ofono.Error.NotAttached: GPRS is not 
  attached
  
  5. Dialup using ATDT (this case is support only Tone)
 ATDT*99***1#
 CONNECT
  6. ppp0 interface up
  7. Authenticate EAP, PAP or CHAP using Username, Passowrd
  8. Getting IP Address, Netmask, Gateway from APN(?)
 
 so this is the interesting part. We don't wanna use the magic *99* magic
 and actually use the proper GPRS AT command for connecting the context.
Yes. I know dialup call is different in each carrier. Most data
connection dial number's are fixed. so I think it needs to add a new
context parametor 'dial number'.

 But then we have to talk PPP. That is currently work in progress as an
 extension to GAtChat.
Yeah, I thought data connection needs PPP(pppd). My image of
implementation is as wvdial configuration.

ex. wvdial connection
1. wvdial settings
2. Run wvdial using /etc/wvdial.conf
3. Run pppd from wvdial

ex. ofono connection
1. ofono settings to the D-Bus
2. Activate context and connection
3. Run pppd from ofonod

Thanks,
-- 
Mitsutaka Amano
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: Huawei E220 + Data Connection Manager

2009-12-01 Thread Denis Kenzior
Hi Mitsutaka,

  so this is the interesting part. We don't wanna use the magic *99* magic
  and actually use the proper GPRS AT command for connecting the context.

 Yes. I know dialup call is different in each carrier. Most data
 connection dial number's are fixed. so I think it needs to add a new
 context parametor 'dial number'.

That is actually not correct.  ATD*99 is a form used for backward 
compatibility.  It is described in Section 10.2 of 3GPP 27.007.  This form is 
frequently used as a shortcut and known by most users.  It is however not the 
'proper' way to establish a GPRS context.  The proper way is actually a bit 
more involved, but offers greater flexibility.  This is what oFono will use.


  But then we have to talk PPP. That is currently work in progress as an
  extension to GAtChat.

 Yeah, I thought data connection needs PPP(pppd). My image of
 implementation is as wvdial configuration.

We will not use pppd.  We're working on our own ppp solution for oFono.  This 
is a work in progress and thus ppp devices are not yet supported.

Regards,
-Denis
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono