Skip to contentSkip to conversation

obexd 0.29 and N900 PC Suite

DISCUSSION Marcel J.E. Mol 3 participants 4 messages Jul 29, 2010 – Jul 30, 2010 2 messages not in the archive Bluetooth drivers

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 25 lines · Harald Schmitt

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 :(

Quoted 8 lines

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

Signature · 6 lines
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        [email protected]                 2630 AC  Nootdorp
__==== 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  --  www.ruperthine.com
#3 lore raw

Am 29.07.2010 20:16, schrieb Marcel J.E. Mol:

Quoted 33 lines · Harald Schmitt
Quoted 25 lines

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 :(

Quoted 6 lines

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".

Quoted 8 lines

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

#4 lore raw

Hi,

Quoted 7 lines · Harald Schmitt

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.

Signature · 2 lines
Luiz Augusto von Dentz
Computer Engineer
#5 lore raw
Quoted 11 lines · Luiz Augusto von Dentz

Hi,

Quoted 7 lines · Harald Schmitt

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?

Quoted 5 lines

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

Signature · 6 lines
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        [email protected]                 2630 AC  Nootdorp
__==== 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  --  www.ruperthine.com