Re: oFono running on new Freerunner distribution

2009-12-02 Thread Marcel Holtmann
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.
> >   
> well, I forgot to mention it was present (in 0.7) in both functions, but 
> it doesn't mind ;) I'm very happy to announce now everything works ok! :)
> > 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.
> >   
> YES IT WORKS! :)
> Thank you very much for your effort, very nice job!
> I have only one question: which parameters do you use to compile oFono? 
> Do you activate threads or not? (I don't and don't use neither udev as 
> in our distribution we choose to use a statically populated /dev directory)

you don't have to use --enable-threads. That is for for plugins that
wanna use threads and we don't have that yet. And I hope we never need
it. It would introduce a complexity that might break things. So we
always compile it without threading support.

Regards

Marcel


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


Re: oFono running on new Freerunner distribution

2009-12-02 Thread djdas

Hi Denis,

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.
  
well, I forgot to mention it was present (in 0.7) in both functions, but 
it doesn't mind ;) I'm very happy to announce now everything works ok! :)
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.
  

YES IT WORKS! :)
Thank you very much for your effort, very nice job!
I have only one question: which parameters do you use to compile oFono? 
Do you activate threads or not? (I don't and don't use neither udev as 
in our distribution we choose to use a statically populated /dev directory)

Best regards,
Dario.
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


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: oFono running on new Freerunner distribution

2009-12-01 Thread djdas

Hi Denis,
attached is a correct log with the AT debug lines, sorry for the 
mistake, the patch didn't achieve any results though...
For what regards the "second call not possible after the first one 
hangup" I noticed the first version on which appears the problem is 0.8, 
the one where the muxer support was introduced. I can confirm 0.7 works 
great, I can do as many calls I want without problems (even if the 
"can't hangup while alerting" does occur).
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]);

at row 446 in fuction: calypso_post_sim(struct ofono_modem *modem)

it was present (without muxer support of course) in 0.7.
Hoping to be useful, best regards.
Dario.


ofonod[765]: oFono version 0.10
Using **pending_return in dbus_connection_send_with_reply_setup() without 
pending_setup is deprecated and strongly discouraged
Using **pending_return in dbus_connection_send_with_reply_setup() without 
pending_setup is deprecated and strongly discouraged
ofonod[765]: src/plugin.c:__ofono_plugin_init() 
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68f8c, name: 
palmpre
ofonod[765]: plugins/hfp.c:hfp_init() 
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68f38, name: 
hfp
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68f04, name: 
novatel
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68ed0, name: 
huawei
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68e9c, name: 
hso
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68e60, name: 
mbm
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68e2c, name: 
calypso
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68df8, name: g1
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68dc4, name: 
atgen
ofonod[765]: src/modem.c:ofono_modem_driver_register() driver: 0x68d90, name: 
phonesim
ofonod[765]: src/modem.c:ofono_modem_create() calypso
ofonod[765]: src/modem.c:set_modem_property() modem 0x71b90 property Device
ofonod[765]: plugins/calypso.c:calypso_probe() 
ofonod[765]: src/modem.c:get_modem_property() modem 0x71b90 property Device
ofonod[765]: plugins/calypso.c:calypso_probe() /dev/ttySAC0
ofonod[765]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x68d44, 
name: hso
ofonod[765]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x68d18, 
name: mbm
ofonod[765]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x68c50, 
name: hfpmodem
ofonod[765]: src/network.c:ofono_netreg_driver_register() driver: 0x68ca0, 
name: hfpmodem
ofonod[765]: src/call-volume.c:ofono_call_volume_driver_register() driver: 
0x68cd8, name: hfpmodem
ofonod[765]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x68bf0, 
name: calypsomodem
ofonod[765]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x68aa8, 
name: atmodem
ofonod[765]: src/modem.c:ofono_devinfo_driver_register() driver: 0x68b54, name: 
atmodem
ofonod[765]: src/call-barring.c:ofono_call_barring_driver_register() driver: 
0x68b00, name: atmodem
ofonod[765]: src/call-forwarding.c:ofono_call_forwarding_driver_register() 
driver: 0x68990, name: atmodem
ofonod[765]: src/call-meter.c:ofono_call_meter_driver_register() driver: 
0x689b8, name: atmodem
ofonod[765]: src/call-settings.c:ofono_call_settings_driver_register() driver: 
0x688e4, name: atmodem
ofonod[765]: src/phonebook.c:ofono_phonebook_driver_register() driver: 0x68b20, 
name: atmodem
ofonod[765]: src/ssn.c:ofono_ssn_driver_register() driver: 0x68b48, name: 
atmodem
ofonod[765]: src/ussd.c:ofono_ussd_driver_register() driver: 0x68a8c, name: 
atmodem
ofonod[765]: src/sms.c:ofono_sms_driver_register() driver: 0x6892c, name: 
atmodem
ofonod[765]: src/sim.c:ofono_sim_driver_register() driver: 0x68a40, name: 
atmodem
ofonod[765]: src/network.c:ofono_netreg_driver_register() driver: 0x68a00, 
name: atmodem
ofonod[765]: src/cbs.c:ofono_cbs_driver_register() driver: 0x6897c, name: 
atmodem
ofonod[765]: src/call-volume.c:ofono_call_volume_driver_register() driver: 
0x68b70, name: atmodem
ofonod[765]: src/gprs.c:ofono_gprs_driver_register() driver: 0x68b98, name: 
atmodem
ofonod[765]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x68bbc, 
name: atmodem
ofonod[765]: src/modem.c:ofono_devinfo_driver_register() driver: 0x68630, name: 
isimodem
ofonod[765]: src/phonebook.c:ofono_phonebook_driver_register() driver: 0x68620, 
name: isimodem
ofonod[765]: src/network.c:ofono_netreg_driver_register() driver: 0x6864c, 
name: isimodem
ofonod[765]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x68674, 
name: isimodem
ofonod[765]: src/sms.c:ofono_sms_driver_register() driver: 0x686bc, name: 
isimodem
ofonod[765]: src/cbs.c:ofono_cbs_driver_register() driver: 0x686d4, name: 
isi

Re: oFono running on new Freerunner distribution

2009-11-27 Thread Denis Kenzior
Hi Dario,

> I recompiled from the git and the situation is the same as before;
> attached are two archives, each containing two log files, one made by
> oFono with the options above, the second is the console output of the
> "dbus-monitor --system" command (in which, at the end of file, I pasted

Please make sure you restart oFono when setting OFONO_AT_DEBUG.  The 
environment variable is checked only when the modem is created, which is 
usually startup in the case of modem.conf ones.  This will give much more 
output, including every command sent and received from the modem.

Please redo the logs with the environment variable set before ofono is 
started.

> the command lines I used to do the tests);  the first archive
> (call_answer_hangup*) is a simple test call using one of my provider
> service numbers, I simply called, they answered and I hangup the call,
> after this, as you can see, I was not able to do another call (I did my
> previous tests with my phone application and I didn't notice the error
> given by oFono, sorry!); the second archive (call_hanguptry_remotedisc*)
> is a call to another phone (I masked the number with  for privacy
> purposes), tried to hangup but wasn't able to and asked the other party
> to hangup.

Ok, you were hitting a bug that Zhenhua just caught.  I pushed out his fix.  
I'd be interested in first seeing whether dial -> alerting -> hangup now works 
on a freshly booted oFono instance.

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


Re: oFono running on new Freerunner distribution

2009-11-26 Thread Denis Kenzior
Hi Dario,

> Hi Denis,
>
> > I pushed an experimental fix.  Let me know if you can now hangup alerting
> > calls.  It did not make it into release 0.11 though.
>
> before, I can dial but can't hangup during alerting state. Furthermore

Ok, I pushed a few more things that should fix this.  At least it does for me 
on my Freerunner.   If it still doesn't work, can you send me a log of what 
happens.  export OFONO_AT_DEBUG=1 and run with ofono -nd.

> after the first conversation this new release doesn't let me dial any
> other number but can receive calls... I tried the previous one (0.9
> IIRC) and it worked well.

Is your moko device upgraded to the latest gsm firmware?  I'm using moko11 and 
this seems to work.  Are you running the native calypso plugin or using 
phonesim plugin?

Note that the previous wakeup handling did not always for the phonesim one, 
I've pushed a few fixes that should take care of this as well.

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


Re: oFono running on new Freerunner distribution

2009-11-26 Thread DJDAS

Hi Denis,
I pushed an experimental fix.  Let me know if you can now hangup alerting 
calls.  It did not make it into release 0.11 though.


  


Sorry for the late reply but I was busy at work in last days. I tried 
your patch but had no positive results, the behavior remains the same as 
before, I can dial but can't hangup during alerting state. Furthermore 
after the first conversation this new release doesn't let me dial any 
other number but can receive calls... I tried the previous one (0.9 
IIRC) and it worked well.
If I can help you sending some logs please feel free to ask me what you 
need.

Thank you in advance, bye.
Dario.

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


Re: oFono running on new Freerunner distribution

2009-11-23 Thread Denis Kenzior
> This seems to be a peculiarity of the Calypso modem.  When using ATD on an
> uninitialized port the ATD returns immediately.  This means that
> dialing/alerting calls can be hung up.  However, we use CPI indications and
> for some reason the ATD behavior changes when this is used.  ATD now only
> returns when a call connects, which means we can't hangup dialing/alerting
> calls, as you point out.  There are a couple of solutions we can try, stay
> tuned.

I pushed an experimental fix.  Let me know if you can now hangup alerting 
calls.  It did not make it into release 0.11 though.

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


Re: oFono running on new Freerunner distribution

2009-11-23 Thread Denis Kenzior
Hi Dario,

> GREAT It worked!!! :)
> It registers in less than one minute! :)
> I noticed I don't need to call the Register method of
> NetworkRegistration interface but I just need to power up the modem, is
> it ok?

By default the netreg atom registers you automatically.  However it does 
remember the setting, so if you choose manual registration or deregister from 
the network it will not attempt to register you the next time you reboot.

> I have another question but maybe it's my fault: I noticed if I want to
> hangup a call during its "alerting" state, I can't, the other party
> continues ringing even if I call the hangup method on the correct path (
> /calypso0/voicecall01). What am I missing?

This seems to be a peculiarity of the Calypso modem.  When using ATD on an 
uninitialized port the ATD returns immediately.  This means that 
dialing/alerting calls can be hung up.  However, we use CPI indications and 
for some reason the ATD behavior changes when this is used.  ATD now only 
returns when a call connects, which means we can't hangup dialing/alerting 
calls, as you point out.  There are a couple of solutions we can try, stay 
tuned.

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


Re: oFono running on new Freerunner distribution

2009-11-23 Thread DJDAS

DJDAS ha scritto:

Hi Denis,

Hi Dario,
 

Do I have to take the git code or these features are already in the
current 0.10 version?



This change was made after 0.10 was tagged.  So you'll need the git 
version.


  


OK, I'm pulling from the git, I'll let you know ASAP.
Bye,
Dario.


GREAT It worked!!! :)
It registers in less than one minute! :)
I noticed I don't need to call the Register method of 
NetworkRegistration interface but I just need to power up the modem, is 
it ok?
I have another question but maybe it's my fault: I noticed if I want to 
hangup a call during its "alerting" state, I can't, the other party 
continues ringing even if I call the hangup method on the correct path ( 
/calypso0/voicecall01). What am I missing?

Thank you very much in advance, bye.
Bye,
Dario.

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


Re: oFono running on new Freerunner distribution

2009-11-23 Thread DJDAS

Hi Denis,

Hi Dario,
  

Do I have to take the git code or these features are already in the
current 0.10 version?



This change was made after 0.10 was tagged.  So you'll need the git version.

  


OK, I'm pulling from the git, I'll let you know ASAP.
Bye,
Dario.
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: oFono running on new Freerunner distribution

2009-11-23 Thread Denis Kenzior
Hi Dario,
> Do I have to take the git code or these features are already in the
> current 0.10 version?

This change was made after 0.10 was tagged.  So you'll need the git version.

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


Re: oFono running on new Freerunner distribution

2009-11-23 Thread DJDAS

Denis Kenzior ha scritto:
Actually a reference UI for oFono is something we're still lacking.  We've all 
been too busy adding core features.  This is something we want to fix...
  
I know, following the list I imagine you're very busy. Maybe I can send 
you my code (after finishing and cleaning up) if you want a simple C 
test program...
  

I have just one question: I noticed the Calypso modem registers on the
network quite slowly (about 1,5-2 mins after powering up) is this
normal? Can we help you in testing/patching the code to achieve faster
times (normal phones usually register in seconds).



This might have been related to automatic operator scanning.  Freerunner is 
especially slow on this operation.  The API was changed recently to disable 
this.  Can you test git HEAD to see if this still happens?  


Regards,
-Denis
  


Do I have to take the git code or these features are already in the 
current 0.10 version?

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


Re: oFono running on new Freerunner distribution (was: Palm Pre modem plugin)

2009-11-23 Thread Denis Kenzior
Hi Dario,

> Well, maybe you missed some of my previous email in this list some time
> ago :)
> I'm the project leader of a new distribution, called NEOPhysis, for the
> Openmoko Freerunner and Niko is the UI team leader.
> We are about 10 people in our team and started from scratch creating a
> new distribution which differs from the others, approaching the system
> concept as an embedded low resources device instead of a micro-desktop
> system.

Ah, I do remember seeing your previous post.  Did not connect the two together 
though.

> I asked in my previous emails if someone of the oFono team could send me
> a simple C code because all the test code were written in Python (but
> for the telephony part our focus is speed and reliability so its
> mandatory to use a C/C++ framework/middleware) but received no answer,

Actually a reference UI for oFono is something we're still lacking.  We've all 
been too busy adding core features.  This is something we want to fix...

> I have just one question: I noticed the Calypso modem registers on the
> network quite slowly (about 1,5-2 mins after powering up) is this
> normal? Can we help you in testing/patching the code to achieve faster
> times (normal phones usually register in seconds).

This might have been related to automatic operator scanning.  Freerunner is 
especially slow on this operation.  The API was changed recently to disable 
this.  Can you test git HEAD to see if this still happens?  

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