Blackberry -> WM sync fails

View: New views
14 Messages — Rating Filter:   Alert me  

Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

Hi, all.

I just had cause to try something slightly unusual. My partner got an
HTC Touch Diamond from his work as a demo model for a couple of months,
so he wanted to transfer all his contacts from his Blackberry Curve to
the HTC.

This should work great with opensync, so I tried it. I set up a sync
group with the Barry and synce plugins and synchronized. It went through
great. There's only one problem - the contacts arrive at the WM phone
without phone numbers :) they have email addresses, but no phone
numbers.

I suspect this is a problem somehow in the synce plugin's handling of
the data received from the Blackberry? To this end, I set up another
group which just syncs the Blackberry to the file sync plugin, and I'm
attaching an example contact file from this sync. You can see from this
the format the Blackberry spits out, I guess. Can someone then see why
the phone number info would not sync to the WM device? I changed the
name and number, BTW. Thanks!
--
adamw

[contacts-990881456]

BEGIN:VCARD
VERSION:2.1
PRODID:-//OpenSync//NONSGML Barry Contact Record//EN
FN:James Roberts
N:Osborne;Jeff;;;
TEL;work:6048359373
TEL;cell:6043129667
NOTE:Customer got bb 8830 and his gf have bb 8130 pink
END:VCARD


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Mon, 2008-09-08 at 22:57 -0700, Adam Williamson wrote:

> I suspect this is a problem somehow in the synce plugin's handling of
> the data received from the Blackberry? To this end, I set up another
> group which just syncs the Blackberry to the file sync plugin, and I'm
> attaching an example contact file from this sync. You can see from this
> the format the Blackberry spits out, I guess. Can someone then see why
> the phone number info would not sync to the WM device? I changed the
> name and number, BTW. Thanks!

I just did the same thing with a WM device, and I notice the following
difference. The BlackBerry uses this format for the numbers:

TEL;work:6048359373

WM device uses:

TEL;WORK;VOICE:(425) 1657643

I suspect the missing 'VOICE' is the key?
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Mon, 2008-09-08 at 23:03 -0700, Adam Williamson wrote:

> I just did the same thing with a WM device, and I notice the following
> difference. The BlackBerry uses this format for the numbers:
>
> TEL;work:6048359373
>
> WM device uses:
>
> TEL;WORK;VOICE:(425) 1657643
>
> I suspect the missing 'VOICE' is the key?

OK, solved it. It's not *just* the VOICE bit. It's either that bit
*plus* the case, or just the case.

I tried changing TEL;work;number to TEL;work;voice;number (via sed) in
the Blackberry file sync and then syncing those files back to the WM
device. No good. But then I changed to TEL;WORK;VOICE;number and did it
again - and boom, works fine, the numbers show up.

Hopefully someone can now fix this so you don't have to sync to file,
run a sed voodoo command on the files, and then sync them back to the WM
device. =) Thanks all.
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Mark Ellis :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2008-09-09 at 08:14 +0200, Adam Williamson wrote:

> On Mon, 2008-09-08 at 23:03 -0700, Adam Williamson wrote:
>
> > I just did the same thing with a WM device, and I notice the following
> > difference. The BlackBerry uses this format for the numbers:
> >
> > TEL;work:6048359373
> >
> > WM device uses:
> >
> > TEL;WORK;VOICE:(425) 1657643
> >
> > I suspect the missing 'VOICE' is the key?
>
> OK, solved it. It's not *just* the VOICE bit. It's either that bit
> *plus* the case, or just the case.
>
> I tried changing TEL;work;number to TEL;work;voice;number (via sed) in
> the Blackberry file sync and then syncing those files back to the WM
> device. No good. But then I changed to TEL;WORK;VOICE;number and did it
> again - and boom, works fine, the numbers show up.
>
> Hopefully someone can now fix this so you don't have to sync to file,
> run a sed voodoo command on the files, and then sync them back to the WM
> device. =) Thanks all.
> --
Adam, what opensync version are you on ? Apparently the phone number foo
in 0.3x is broken, and John decided there is no point fixing it until
they stabilise, just wondered if you're on 0.3x you might like to try
0.2x.

Mark



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

signature.asc (196 bytes) Download Attachment

Re: Blackberry -> WM sync fails

by John Carr-3 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, Sep 9, 2008 at 12:21 PM, Mark Ellis <mark@...> wrote:

> On Tue, 2008-09-09 at 08:14 +0200, Adam Williamson wrote:
>> On Mon, 2008-09-08 at 23:03 -0700, Adam Williamson wrote:
>>
>> > I just did the same thing with a WM device, and I notice the following
>> > difference. The BlackBerry uses this format for the numbers:
>> >
>> > TEL;work:6048359373
>> >
>> > WM device uses:
>> >
>> > TEL;WORK;VOICE:(425) 1657643
>> >
>> > I suspect the missing 'VOICE' is the key?
>>
>> OK, solved it. It's not *just* the VOICE bit. It's either that bit
>> *plus* the case, or just the case.
>>
>> I tried changing TEL;work;number to TEL;work;voice;number (via sed) in
>> the Blackberry file sync and then syncing those files back to the WM
>> device. No good. But then I changed to TEL;WORK;VOICE;number and did it
>> again - and boom, works fine, the numbers show up.
>>
>> Hopefully someone can now fix this so you don't have to sync to file,
>> run a sed voodoo command on the files, and then sync them back to the WM
>> device. =) Thanks all.
>> --
>
> Adam, what opensync version are you on ? Apparently the phone number foo
> in 0.3x is broken, and John decided there is no point fixing it until
> they stabilise, just wondered if you're on 0.3x you might like to try
> 0.2x.
>
> Mark

This is a known bug in 0.22 (and presumably 0.36, 0.37 doesnt work at
all). See the thread entitled "Certain phone types not syncing from
Nokia to WM6 device" from a few weeks ago. If someone else acks the
XSL attached to the last message in the thread, we should commit it.

John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2008-09-09 at 12:36 +0100, John Carr wrote:

> > Adam, what opensync version are you on ? Apparently the phone number foo
> > in 0.3x is broken, and John decided there is no point fixing it until
> > they stabilise, just wondered if you're on 0.3x you might like to try
> > 0.2x.
> >
> > Mark
>
> This is a known bug in 0.22 (and presumably 0.36, 0.37 doesnt work at
> all). See the thread entitled "Certain phone types not syncing from
> Nokia to WM6 device" from a few weeks ago. If someone else acks the
> XSL attached to the last message in the thread, we should commit it.

Right, I'm on 0.22 as I always am.

I forgot that thread. I'll test that XSL file.
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2008-09-09 at 07:52 -0700, Adam Williamson wrote:

> On Tue, 2008-09-09 at 12:36 +0100, John Carr wrote:
>
> > > Adam, what opensync version are you on ? Apparently the phone number foo
> > > in 0.3x is broken, and John decided there is no point fixing it until
> > > they stabilise, just wondered if you're on 0.3x you might like to try
> > > 0.2x.
> > >
> > > Mark
> >
> > This is a known bug in 0.22 (and presumably 0.36, 0.37 doesnt work at
> > all). See the thread entitled "Certain phone types not syncing from
> > Nokia to WM6 device" from a few weeks ago. If someone else acks the
> > XSL attached to the last message in the thread, we should commit it.
>
> Right, I'm on 0.22 as I always am.
>
> I forgot that thread. I'll test that XSL file.

Actually, eyeballing it, that XSL file fixes the VOICE keyword issue but
does not fix the case issue. How do I phrase "'HOME' or Type='home') and
Type!='FAX'" correctly in, er, .xsl-language? :)
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2008-09-09 at 07:58 -0700, Adam Williamson wrote:

> > > This is a known bug in 0.22 (and presumably 0.36, 0.37 doesnt work at
> > > all). See the thread entitled "Certain phone types not syncing from
> > > Nokia to WM6 device" from a few weeks ago. If someone else acks the
> > > XSL attached to the last message in the thread, we should commit it.
> >
> > Right, I'm on 0.22 as I always am.
> >
> > I forgot that thread. I'll test that XSL file.
>
> Actually, eyeballing it, that XSL file fixes the VOICE keyword issue but
> does not fix the case issue. How do I phrase "'HOME' or Type='home') and
> Type!='FAX'" correctly in, er, .xsl-language? :)

If someone could fix this I'd be really grateful. I just don't know how
to gracefully make the match case-insensitive. The issue is exactly as I
described it: we need to accept the number even without the voice/VOICE
keyword, and we need to make the matching of all keywords (voice, home,
cell, work etc) case-insensitive. I would do this if I could, but I just
don't have the knowledge.
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Dr J A Gow-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, 2008-09-10 at 14:25 -0700, Adam Williamson wrote:

> On Tue, 2008-09-09 at 07:58 -0700, Adam Williamson wrote:
>
> > > > This is a known bug in 0.22 (and presumably 0.36, 0.37 doesnt work at
> > > > all). See the thread entitled "Certain phone types not syncing from
> > > > Nokia to WM6 device" from a few weeks ago. If someone else acks the
> > > > XSL attached to the last message in the thread, we should commit it.
> > >
> > > Right, I'm on 0.22 as I always am.
> > >
> > > I forgot that thread. I'll test that XSL file.
> >
> > Actually, eyeballing it, that XSL file fixes the VOICE keyword issue but
> > does not fix the case issue. How do I phrase "'HOME' or Type='home') and
> > Type!='FAX'" correctly in, er, .xsl-language? :)
>
> If someone could fix this I'd be really grateful. I just don't know how
> to gracefully make the match case-insensitive. The issue is exactly as I
> described it: we need to accept the number even without the voice/VOICE
> keyword, and we need to make the matching of all keywords (voice, home,
> cell, work etc) case-insensitive. I would do this if I could, but I just
> don't have the knowledge.

I'll look at this in the next batch of fixes.

        John.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, 2008-09-14 at 01:08 +0100, Dr J A Gow wrote:

> > If someone could fix this I'd be really grateful. I just don't know how
> > to gracefully make the match case-insensitive. The issue is exactly as I
> > described it: we need to accept the number even without the voice/VOICE
> > keyword, and we need to make the matching of all keywords (voice, home,
> > cell, work etc) case-insensitive. I would do this if I could, but I just
> > don't have the knowledge.
>
> I'll look at this in the next batch of fixes.

That's great, thanks so much John.
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, 2008-09-13 at 18:15 -0700, Adam Williamson wrote:

> On Sun, 2008-09-14 at 01:08 +0100, Dr J A Gow wrote:
>
> > > If someone could fix this I'd be really grateful. I just don't know how
> > > to gracefully make the match case-insensitive. The issue is exactly as I
> > > described it: we need to accept the number even without the voice/VOICE
> > > keyword, and we need to make the matching of all keywords (voice, home,
> > > cell, work etc) case-insensitive. I would do this if I could, but I just
> > > don't have the knowledge.
> >
> > I'll look at this in the next batch of fixes.
>
> That's great, thanks so much John.

Just to note - as we're getting rather close to our release, I have
applied Pawel's .xsl fix (to handle phone numbers with no VOICE subtype)
and a hack to the barry opensync plugin (so it outputs its vcards with
the relevant types in UPPER CASE) to our packages. Together, this
*should* mean Blackberry -> WM sync (and probably Nokia -> WM sync...)
will work more or less right in MDV 2009, even if Dr. Gow doesn't get
around to fixing it properly in time for me to get it in.

If Dr. Gow's fix turns up in time, I'll revert the Barry hack and use
that instead.

Tomorrow I can get my hands on a Blackberry again (partner switched to
another WM phone, sigh, I have to harangue him to bring a spare
Blackberry home) and actually test it. Testing, that's a novel
concept! :D
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Adam Williamson-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, 2008-09-24 at 20:58 -0700, Adam Williamson wrote:

> Tomorrow I can get my hands on a Blackberry again (partner switched to
> another WM phone, sigh, I have to harangue him to bring a spare
> Blackberry home) and actually test it. Testing, that's a novel
> concept! :D

Just for interest - the FrankenFix works. :) I just sync'ed a couple
hundred contacts, complete with phone numbers, direct from a Blackberry
Curve to an HTC Apache.

So, er, yay. Take that, other operating systems! Muahaha.
--
adamw


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: synce-hal fails, synce-odccm ok on gentoo

by Vladimir Andreev-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, 2008-09-02 at 09:57 +0200, Lucian Muresan wrote:

> I found dhclient on gentoo, it's called "net-misc/dhcp-3.1.1" and
> synce-hal really works with it. What I find a bit strange, that it did
> not if I removed the dynamic configuration from the hal addon script and
> let it use the fixed addresses..
> As a side note, dhcpcd-4* which is "out" by now, has evolved also into
> support dhclient-alike syntax, and is much more lightweight (as the
> author says in the History at http://roy.marples.name/dhcpcd so it might
> be worth trying to make synce-hal work with both. Otherwise it would be
> really enforcing a specific dependency... So if you don't mind the idea,
> I'm ready to try and help in any way I can (also with my limited spare
> time, as everyone) with trying and such, I'm also a c/c++ programmer,
> only don't have python and dhcp knowledge...
> Anyway, I'd also like to assist Iain with gentoo packaging, as he seems
> to be very busy, but showed up on IRC yesterday...

There is a problem then i try use net-misc/dhcp-3.1.1 in Gentoo to obtain ip
address :
# dhcpcd eth1
err, eth1: cannot request a link local address
err, eth1: cannot request a link local address
err, eth1: cannot request a link local address
...

The 169.254.0.0/16 set as local sublet in /etc/networks:
# /etc/networks
#
# This file describes a number of netname-to-adress
# mappings for the TCP/IP subsytem. It is mostly
# used at boot time, when no name servers are running.
#

loopback        127.0.0.0
link-local      169.254.0

So i think, the best way to use dhcp in synce-hal is add
DEPEND="net-misc/dhcp" in ebuild.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Blackberry -> WM sync fails

by Dr J A Gow-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, 2008-09-24 at 20:58 -0700, Adam Williamson wrote:

> On Sat, 2008-09-13 at 18:15 -0700, Adam Williamson wrote:
> > On Sun, 2008-09-14 at 01:08 +0100, Dr J A Gow wrote:
> >
> > > > If someone could fix this I'd be really grateful. I just don't know how
> > > > to gracefully make the match case-insensitive. The issue is exactly as I
> > > > described it: we need to accept the number even without the voice/VOICE
> > > > keyword, and we need to make the matching of all keywords (voice, home,
> > > > cell, work etc) case-insensitive. I would do this if I could, but I just
> > > > don't have the knowledge.
> > >
> > > I'll look at this in the next batch of fixes.
> >
> > That's great, thanks so much John.
>
> Just to note - as we're getting rather close to our release, I have
> applied Pawel's .xsl fix (to handle phone numbers with no VOICE subtype)
> and a hack to the barry opensync plugin (so it outputs its vcards with
> the relevant types in UPPER CASE) to our packages. Together, this
> *should* mean Blackberry -> WM sync (and probably Nokia -> WM sync...)
> will work more or less right in MDV 2009, even if Dr. Gow doesn't get
> around to fixing it properly in time for me to get it in.
>
> If Dr. Gow's fix turns up in time, I'll revert the Barry hack and use
> that instead.

That's fine, I may not get the fix in in time for the release due to
other commitments at the moment. I will check it thoroughly after the
release (I am also waiting on Opensync to fix the known bug in the
OS0.3x schemas to avoid duplicating work. This has been scheduled for a
future point release of OS).

        John.




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel