maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   iSync and Mac support with maemo 5 (https://talk.maemo.org/showthread.php?t=31345)

scudderfish 2010-01-19 19:11

Re: iSync and Mac support with maemo 5
 
Probably somewhere in here http://maemo.gitorious.org/maemo-bluetooth

scudderfish 2010-01-19 21:13

Re: iSync and Mac support with maemo 5
 
I ran dbus-monitor on the N900 and then initialised a sync when I had one new entry on the N900 with no alarm. Can we find anything in this which would give us a way in?

Code:

method call sender=:1.57 -> dest=com.nokia.maesync_controller serial=336 path=/com/nokia/maesync_controller; interface=com.nokia.maesync_controller; member=sync_req
  string "syncd"
  int32 1
  string "contacts, calendar"
method return sender=:1.50 -> dest=:1.57 reply_serial=336
  int32 2
error sender=:1.50 -> dest=:1.57 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=336
  string "Method "sync_req" with signature "sis" on interface "com.nokia.maesync_controller" doesn't exist
"
method call sender=:1.57 -> dest=:1.30 serial=338 path=/org/gnome/evolution/dataserver/addressbook/BookFactory; interface=org.gnome.evolution.dataserver.addressbook.BookFactory; member=getBook
  string "file:///home/user/.osso-abook/db"
method call sender=:1.30 -> dest=org.freedesktop.DBus serial=5140 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
  string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',path='/org/freedesktop/DBus',member='NameOwnerChanged',arg0=':1.57'"
method call sender=:1.30 -> dest=org.freedesktop.DBus serial=5141 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
  string ":1.57"
method return sender=:1.30 -> dest=:1.57 reply_serial=338
  object path "/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=339 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
  string "org.gnome.evolution.dataserver.AddressBook"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=340 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='writable'"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=341 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='connection'"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=342 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='auth_required'"
method call sender=:1.57 -> dest=:1.30 serial=343 path=/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db; interface=org.gnome.evolution.dataserver.addressbook.Book; member=open
  boolean false
method return sender=:1.30 -> dest=:1.57 reply_serial=343
  boolean true
method call sender=:1.57 -> dest=com.nokia.hildon_sb_sync serial=347 path=/com/nokia/hildon_sb_sync; interface=com.nokia.hildon_sb_sync; member=sync_started
  string "iSync"
method return sender=:1.27 -> dest=:1.57 reply_serial=347
error sender=:1.27 -> dest=:1.57 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=347
  string "Method "sync_started" with signature "s" on interface "com.nokia.hildon_sb_sync" doesn't exist
"
method call sender=:1.57 -> dest=com.nokia.hildon_sb_sync serial=350 path=/com/nokia/hildon_sb_sync; interface=com.nokia.hildon_sb_sync; member=sync_started
  string "iSync"
method return sender=:1.27 -> dest=:1.57 reply_serial=350
error sender=:1.27 -> dest=:1.57 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=350
  string "Method "sync_started" with signature "s" on interface "com.nokia.hildon_sb_sync" doesn't exist
"
method call sender=:1.57 -> dest=:1.30 serial=352 path=/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db; interface=org.gnome.evolution.dataserver.addressbook.Book; member=getChanges
  string "iSync"
method return sender=:1.30 -> dest=:1.57 reply_serial=352
  array [
  ]
signal sender=:1.57 -> dest=(null destination) serial=353 path=/com/nokia/calendar; interface=com.nokia.calendar; member=dbChange
  string ":1:EVENT:MODIFIED:1"
  string ""
method call sender=:1.57 -> dest=:1.30 serial=356 path=/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db; interface=org.gnome.evolution.dataserver.addressbook.Book; member=getChanges
  string "iSync"
method return sender=:1.30 -> dest=:1.57 reply_serial=356
  array [
  ]
signal sender=:1.57 -> dest=(null destination) serial=357 path=/com/nokia/calendar; interface=com.nokia.calendar; member=dbChange
  string ":1:CALENDAR:MODIFIED:1"
  string ""
method call sender=:1.57 -> dest=com.nokia.hildon_sb_sync serial=359 path=/com/nokia/hildon_sb_sync; interface=com.nokia.hildon_sb_sync; member=sync_ended
method return sender=:1.27 -> dest=:1.57 reply_serial=359
error sender=:1.27 -> dest=:1.57 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=359
  string "Method "sync_ended" with signature "" on interface "com.nokia.hildon_sb_sync" doesn't exist
"
method call sender=:1.57 -> dest=:1.30 serial=361 path=/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db; interface=org.gnome.evolution.dataserver.addressbook.Book; member=close
method return sender=:1.30 -> dest=:1.57 reply_serial=361
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=362 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='writable'"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=363 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='auth_required'"
method call sender=:1.57 -> dest=org.freedesktop.DBus serial=364 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
  string "type='signal',sender=':1.30',path='/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_user_2f__2e_osso_2d_abook_2f_db',interface='org.gnome.evolution.dataserver.addressbook.Book',member='connection'"
method call sender=:1.57 -> dest=com.nokia.maesync_controller serial=365 path=/com/nokia/maesync_controller; interface=com.nokia.maesync_controller; member=sync_req
  string "syncd"
  int32 6
error sender=:1.50 -> dest=:1.57 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=365
  string "Method "sync_req" with signature "si" on interface "com.nokia.maesync_controller" doesn't exist
"


3quid 2010-01-19 22:05

Re: iSync and Mac support with maemo 5
 
hmmm not sure. Will have to look through it in detail a bit later. You getting any hints?

scudderfish 2010-01-19 22:14

Re: iSync and Mac support with maemo 5
 
Right now I'm running strings(!) on a number of the binaries involved, notably /usr/bin/syncd and the libraries under /usr/lib/syncd. I have found reference to "Funambol/SyncclientPIM", so I've just downloaded the source for that and having a bit of a root around. Funambol appear to be the SyncML generators

3quid 2010-01-19 22:34

Re: iSync and Mac support with maemo 5
 
yeh i was looking through some of funambol but didnt really get anywhere with it. hopefully you'll have more luck.

i was thinking about the fact that there are lots of other value types for the aalarm property for adding things like paths to alarm tones etc... its not a case of because they arent being useed its adding " " or something daft like that? (clutching at straws now!)

3quid 2010-01-20 12:36

Re: iSync and Mac support with maemo 5
 
Quote:

Originally Posted by phgerin (Post 481523)
Thanks !
It works great for me.
But... the birthday field is erased when transfered to the N900 (and then erased in the contacts on my Mac).

@Phgerin

I have contacts on my mac's Address Book that have birthday entries. I have sync'd my mac with my phone and the N900 reproduces the birthdays in the contact's information faithfully. These in turn show up on the Birthdays calendar on the N900.

I can also edit the birthday (or add it in the first place) on the N900 contact edit screen. Save the contact and sync it and the entry in Address Book reflects the change correctly.

Are you still experiencing that issue?

joergen 2010-01-20 19:40

Re: iSync and Mac support with maemo 5
 
Quote:

Originally Posted by 3quid (Post 484086)
@Phgerin

... Save the contact and sync it and the entry in Address Book reflects the change correctly.

Are you still experiencing that issue?

Same here, works fine for me.

jsbigs 2010-01-21 04:45

Re: iSync and Mac support with maemo 5
 
Possible bug with 3quid's plug-in: Every time I make a change to a contact on the N900 (delete or add a field), any address the contact has gets duplicated in the Mac Address Book upon syncing, only the new (duplicate) address is now entirely on the "street" line. Anybody else experiencing this?

jsbigs 2010-01-21 07:59

Re: iSync and Mac support with maemo 5
 
Bug #2: Only the first two lines in the Notes field will sync to the N900.

joergen 2010-01-21 08:41

Re: iSync and Mac support with maemo 5
 
Quote:

Originally Posted by jsbigs (Post 485945)
Possible bug with 3quid's plug-in: Every time I make a change to a contact on the N900 (delete or add a field), any address the contact has gets duplicated in the Mac Address Book upon syncing, only the new (duplicate) address is now entirely on the "street" line. Anybody else experiencing this?

Not 3quid's fault, it's a difference in the address-handling between osx and N900 [1]. Check out my plugin in this thread, it should have a workaround.

[1] OSX/ISync doesn't seem to like it if vcards have both LABEL (unstructured address) and ADR (structured address) fields, but the N900 puts them both, which afaict is what the vcard standard recommends (mandates?).
Anyhow I should have fixed/worked around this in my plugin, by creating a field mapping from LABEL to some unexisting field.


All times are GMT. The time now is 14:29.

vBulletin® Version 3.8.8