2010-07-29 18:16:49

by Marcel Mol

[permalink] [raw]
Subject: Re: obexd 0.29 and N900 PC Suite

On Thu, Jul 29, 2010 at 05:36:48PM +0200, Harald Schmitt wrote:
> Hi,
>
> Am 27.07.2010 15:03, schrieb Luiz Augusto von Dentz:
>
> Hi,
>
> On Tue, Jul 27, 2010 at 2:27 PM, Harald Schmitt<linux@xxxxxxxxxxx> wrote:
>
> Hi,
>
> there are several users who test obexd 0.29 on the Nokia N900 running Maemo
> in order to have PBAP support. There are success reports with PBAP, but at
> the same time they cannot usb sync via Nokia PC Suite anymore. Is there any
> chance to get PC Suite working again in a future obexd version or does this
> depend on a non free Nokia code?
> Can you give any hints where to look at?
> In a forum a user posted success (with 0.19) and failure (with 0.29) logs:
> http://talk.maemo.org/showthread.php?p=763550#post763550
>
> First thanks a lot for this feedback, I wasn't aware that there were
> somebody trying to use newer version of obexd in N900, I will take a
> look how I can make usb compatible with N900, actually it should be
> just as bluetooth and work no matter which platform you are using but
> we are not there yet :(
>
> In the meantime you can try reverting the patch bellow and see if it helps:
>
> http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=6f56a4355585eb29535782f977ba545cc41dd382
>
> Thanks for the hint. I built a package from 0.29, the patches from meego.gitorious.org and the reverted patch. Some from the community tested it and PC Suite via USB did work. Of course obexd had to be started with the added option "--capability !/usr/bin/gen-obex-capability.sh".
>
> --
> Harald Schmitt

It seems the patch revert a conversion from unix signaling to dbus signaling.
The pcsuite-enable.sh script uses a unix signal to tell obexd a pcsuite
connection is requested.
Apperantly in meego this will be done using dbus..

Can't we convert pcsuite-enable.sh to also use dbus instead of reverting
the patch? Can you help us out her Luiz?

-Marcel
--
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- [email protected] 2630 AC Nootdorp
__==== http://www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- http://www.ruperthine.com


2010-07-30 20:49:43

by Marcel Mol

[permalink] [raw]
Subject: Re: obexd 0.29 and N900 PC Suite

On Fri, Jul 30, 2010 at 06:08:23PM +0300, Luiz Augusto von Dentz wrote:
> Hi,
>
> On Fri, Jul 30, 2010 at 1:29 PM, Harald Schmitt <[email protected]> wrote:
> > I have testes following command and it seems to work:
> > dbus-send --system --type=signal / com.meego.usb_moded.sig_usb_state_ind
> > string:'ovi_suite'
> > If one would just add this line to pcsuite-enable.sh under the SIGUSR1 then
> > both types of obexd would work?
> > Luiz could you confirm this? Do we also need a dbus-command for disconnect
> > with string:'USB disconnected' in pcsuite-disable.sh?
>
> Hmm it may work with that but I would first just revert the patch I
> suggest other day since without that part there could be some other
> components still sending SIGUSR1 to obexd which might kill it, maybe I
> can just reintroduce SIGUSR1 and then have a config option saying
> which method to use for usb cable detection. What do you guys think?

Well, I just tested the dbus method on the n900 with an obexd 0.29
(including the updates I already posted here plus a few other updates
including a basic IRMC server implementation) and pcsuite seems to
work fine. But I did not test extensively (contact/calendar download
work file and file browsing too).

I don't know if there are other tools using signalling to obexd, maybe
people from the nokia n900/maemo group can tell...

-Marcel
--
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- [email protected] 2630 AC Nootdorp
__==== http://www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- http://www.ruperthine.com

2010-07-30 15:08:23

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: obexd 0.29 and N900 PC Suite

Hi,

On Fri, Jul 30, 2010 at 1:29 PM, Harald Schmitt <[email protected]> wrote:
> I have testes following command and it seems to work:
> dbus-send --system --type=signal / com.meego.usb_moded.sig_usb_state_ind
> string:'ovi_suite'
> If one would just add this line to pcsuite-enable.sh under the SIGUSR1 then
> both types of obexd would work?
> Luiz could you confirm this? Do we also need a dbus-command for disconnect
> with string:'USB disconnected' in pcsuite-disable.sh?

Hmm it may work with that but I would first just revert the patch I
suggest other day since without that part there could be some other
components still sending SIGUSR1 to obexd which might kill it, maybe I
can just reintroduce SIGUSR1 and then have a config option saying
which method to use for usb cable detection. What do you guys think?

In future I really want a standard way to do the cable detection, I
guess udev + libusb could be a better alternative.

--
Luiz Augusto von Dentz
Computer Engineer

2010-07-30 10:29:41

by Harald Schmitt

[permalink] [raw]
Subject: Re: obexd 0.29 and N900 PC Suite

Am 29.07.2010 20:16, schrieb Marcel J.E. Mol:
> On Thu, Jul 29, 2010 at 05:36:48PM +0200, Harald Schmitt wrote:
>> Hi,
>>
>> Am 27.07.2010 15:03, schrieb Luiz Augusto von Dentz:
>>
>> Hi,
>>
>> On Tue, Jul 27, 2010 at 2:27 PM, Harald Schmitt<linux@xxxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> there are several users who test obexd 0.29 on the Nokia N900 running Maemo
>> in order to have PBAP support. There are success reports with PBAP, but at
>> the same time they cannot usb sync via Nokia PC Suite anymore. Is there any
>> chance to get PC Suite working again in a future obexd version or does this
>> depend on a non free Nokia code?
>> Can you give any hints where to look at?
>> In a forum a user posted success (with 0.19) and failure (with 0.29) logs:
>> http://talk.maemo.org/showthread.php?p=763550#post763550
>>
>> First thanks a lot for this feedback, I wasn't aware that there were
>> somebody trying to use newer version of obexd in N900, I will take a
>> look how I can make usb compatible with N900, actually it should be
>> just as bluetooth and work no matter which platform you are using but
>> we are not there yet :(
>>
>> In the meantime you can try reverting the patch bellow and see if it helps:
>>
>> http://git.kernel.org/?p=bluetooth/obexd.git;a=commitdiff;h=6f56a4355585eb29535782f977ba545cc41dd382
>>
>> Thanks for the hint. I built a package from 0.29, the patches from meego.gitorious.org and the reverted patch. Some from the community tested it and PC Suite via USB did work. Of course obexd had to be started with the added option "--capability !/usr/bin/gen-obex-capability.sh".
>>
>
> It seems the patch revert a conversion from unix signaling to dbus signaling.
> The pcsuite-enable.sh script uses a unix signal to tell obexd a pcsuite
> connection is requested.
> Apperantly in meego this will be done using dbus..
>
> Can't we convert pcsuite-enable.sh to also use dbus instead of reverting
> the patch? Can you help us out her Luiz?
>
I have testes following command and it seems to work:
dbus-send --system --type=signal / com.meego.usb_moded.sig_usb_state_ind
string:'ovi_suite'
If one would just add this line to pcsuite-enable.sh under the SIGUSR1
then both types of obexd would work?
Luiz could you confirm this? Do we also need a dbus-command for
disconnect with string:'USB disconnected' in pcsuite-disable.sh?

--
Harald