View previous topic :: View next topic |
Author |
Message |
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Tue Oct 16, 2007 2:41 pm Post subject: [HOW-TO] Sincronizzare Nokia5700 con Evolution via bluetooth |
|
|
Buongiorno,
dopo lungo letargo, come vedete, in questi giorni mi sto risvegliando con gli HOWTO. Ecco quello "di oggi"
Causa cambio di operatore ho da poco acquistato un nuovo cellulare: Nokia 5700 Xpress Music.
Il primo impatto con questa produttrice di telefoni è stato dei migliori: ottimo software, frozen-bubble ci gira perfettamente e, a parte il bluetooth, anche l'agenda è entrata a far parte di ciò che considero "fondamentale" in un telefono.
Ma a parte la pubblicità, ecco una cosa moooolto comoda che sono riuscito a fare con il telefono: sincronizzare la rubrica con Evolution.
Per prima cosa installiamo un pò di software e, nel caso, aggiungiamo un pò di entry al nostro amato file /etc/portage/package.keywords
Code: | # echo "app-pda/libopensync-plugin-evolution2 ~x86" >> /etc/portage/package.keywords
# echo "app-pda/libopensync-plugin-syncml ~x86" >> /etc/portage/package.keywords
# echo "app-pda/libsyncml ~x86" >> /etc/portage/package.keywords
# echo "app-pda/multisync-gui ~x86" >> /etc/portage/package.keywords
# echo "app-pda/msynctool ~x86" >> /etc/portage/package.keywords |
fatto questo emergiamo il software in questione
Code: | # emerge -av libopensync-plugin-evolution2 libopensync-plugin-syncml libsyncml multisync msynctool multisync-gui |
e, da questa parte siamo a posto. Controlliamo solo di avere attivate le use evo e obex
Terminata l'installazione andiamo a creare il gruppo di sync ed ad aggiungerci i due plugin che a noi servono: quello per ricevere la rubrica dal telefono e quello per scrivere la rubrica in question in evolution. Quindi, apriamo un terminale con il nostro utente e digitiamo:
Code: | $ msynctool --addgroup nokia-evo
$ msynctool --addmember nokia-evo evo2-sync
$ msynctool --addmember nokia-evo syncml-obex-client |
Abbiamo creato il gruppo con i plugin. Ora dobbiamo andare a configurare i vari plugin. Per prima cosa andiamo a leggere le informazioni che ci servono dal nostro telefono, quindi attiviamo il bluetooth e digitiamo:
Code: | # hcitool scanning
Scanning ...
XX:XX:XX:XX:XX:XX mouserNokia |
Ovviamente, sia quì che negli esempi successivi, con la sequenza di XX intendo il BT-Address del vostro telefono!!!
Una volta rilevato il dispositivo bluetooth andiamo a leggere i canali ai quali sono associati i servizi. Quello che serve a noi è il "SyncMLClient":
Code: | # sdptool browse XX:XX:XX:XX:XX:XX
...
Service Name: SyncMLClient
Service RecHandle: 0x10007
Service Class ID List:
UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 10
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"" (0x00000002-0000-1000-8000-0002ee000002)
Version: 0x0100
...
|
Per quanto riguarda questo telefono il canale è il 10.
Occhei, ora configuriamo i plugin:
Code: | $ msynctool --configure nokia-evo 2 |
Questo comando avvia il vostro editor di testo di default aprendo il file contenente la configurazione. E' un semplice XML, di seguito vi riporto il mio:
Code: | <?xml version="1.0"?>
<config>
<bluetooth_address>XX:XX:XX:XX:XX:XX</bluetooth_address>
<bluetooth_channel>10</bluetooth_channel>
<interface>0</interface>
<identifier>PC Suite</identifier>
<version>1</version>
<wbxml>1</wbxml>
<username></username>
<password></password>
<type>2</type>
<usestringtable>1</usestringtable>
<onlyreplace>0</onlyreplace>
<onlyLocaltime>0</onlyLocaltime>
<recvLimit>0</recvLimit>
<maxObjSize>0</maxObjSize>
<contact_db>Contacts</contact_db>
<calendar_db></calendar_db>
<note_db></note_db>
</config> |
Da notare che ho lasciato vuote le voci "calendar_db" e "note_db". Sia l'uno che l'altro riescono a sincronizzarsi, il problema è che cambiano di tipologie. Per esempio se voi syncate e sul telefono avete dei Memo, vi vengono segnati in Evolution come Memo. Quando, invece, riavviene la sincronizzazione, questi Memo diventano misteriosamente degli Eventi, cambiandovi la visualizzazione da parte del telefono.
Salvate, uscite, dopodichè andiamo a configurare l'altro plugin:
Code: | $ msynctool --configure nokia-evo 1 |
Anche qui di seguito il mio:
Code: | <?xml version="1.0"?>
<config>
<address_path>file:///home/$USER/.evolution/addressbook/local/system</address_path>
</config> |
Ed, anche in questo file, noterete che ho modificato rimuovendo le voci "calendar_path" e "task_path". Ovviamente, modificate la voce $USER con il vostro nome utente.
Ed ora via al sync!!!!
Quindi o scegliete la via "comoda":
- Dal menù di gnome Applicazioni->Accessori->Multisync-qad e cliccate su "Refresh"
o la via "nerd":
- Da terminale utente lanciate:
Code: | $ msynctool --sync nokia-evo |
Probabilmente questo howto funziona anche con altri modelli di telefono, basta che abbiano il Symbian60 e con le dovute modifiche al canale del SyncMLClient.
Ciriciao
mouser |
|
Back to top |
|
|
topper_harley Guru
Joined: 05 Apr 2006 Posts: 363 Location: Treviso / Udine (Italy)
|
Posted: Tue Oct 23, 2007 1:44 pm Post subject: |
|
|
mmmh.... questo HOWTO mi sembra piuttosto familiare...
Probabilmente abbiamo scopiazzato dalla stessa fonte _________________ http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM |
|
Back to top |
|
|
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Tue Nov 20, 2007 8:53 am Post subject: |
|
|
hehehehehe.... probabilmente il punto iniziale è lo stesso.
Ottima cosa verificarlo ed apportare all'howto le modifiche necessario per assicurarne il funzionamento sotto gentoo
Ciriciao
mouser |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Sun Dec 02, 2007 11:17 pm Post subject: |
|
|
Alcune note aggiuntive:
Per il Nokia N73 la condifurazione di SyncML è praticamente identica (al momento ho messo anche Calendario e Note tra le cose da syncare... vediamo che succede con l'uso)
Per chi non usa evolution c'è app-pda/libopensync-plugin-file: si configura senza problemi, basta indicare nei tag path la directory dove mettere i files:
Code: |
<?xml version="1.0"?>
<config>
<!-- directory path for file-sync -->
<path>/path/to/your/directory</path>
<!-- should care of subdirectories (TRUE or FALSE) -->
<recursive>FALSE</recursive>
</config>
|
Per chi ha un Sony Ericsson T630 il plugin da usare è app-pda/libopensync-plugin-irmc:
Code: |
<config>
<connectmedium>bluetooth</connectmedium>
<btunit>XX:XX:XX:XX:XX:XX</btunit>
<btchannel>11</btchannel>
</config>
|
le XX:XX:..:XX vanno sostituite con l'indirizzo bluetooth del dispositivo e il canale va cercato con sdptool browse come indicato da mouser (attenzione, non bisogna cercare SyncMLClient client ma IrMC Synchronization).
Per syncare il comando sará qualcosa tipo:
Code: | mysnctool -sync tuogruppo --filter-objtype note --filter-objtype event |
Notare il filtro su due objtype. Senza quello i tentativi di sync non andavano a buon fine e il bluetooth nel telefono si impallava (ho spento e riacceso il telefono un paio di volte). La soluzione la ho trovata in questa pagina!
Per sincronizzare il Nokia con il Sony-Ericcson ho creato due gruppi distinti <telefono, file> con le stesse indicazioni per il file. Prima ho sincronizzato il vecchio telefono (il T630) e poi il nuovo (N73)... forse funzionava direttamente ma ho preferito non rischiare! _________________ Ciao da me! |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Sat Jan 26, 2008 11:48 am Post subject: |
|
|
Ho da poco per le mani un nokia 5500, e sto provando a far il sync dei contatti.
Sarebbe interessante per me che qualcuno aggiornarni l'howto, purtroppo non ho tanto tempo per "sbattermi" e cercare in rete, magari specificando anche le versioni dei pacchetti utilizzati e le varie useflag.
@randomaze
ti spiacerebbe indicare più precisamente le modalità di utilizzo del plugin file-sync con il tuo nokia?
Saluti e grazie, Luca. _________________ LP |
|
Back to top |
|
|
topper_harley Guru
Joined: 05 Apr 2006 Posts: 363 Location: Treviso / Udine (Italy)
|
Posted: Thu Feb 07, 2008 1:34 pm Post subject: |
|
|
Per chi utilizza versioni recenti di opensync ad esempio la 0.36 l'howto ci sono un paio di operazioni da fare.
Code: | ┌─(ROOT@fandango:pts/3)───────────────────────────────────────────────────(~)─┐
└─(14:17:#)── eix -cI opensync ──(gio,feb07)─┘
zsh: correct 'opensync' to '.opensync' [nyae]? n
[I] app-pda/libopensync (0.36@07/02/2008): OpenSync synchronisation framework library
[I] app-pda/libopensync-plugin-evolution2 (0.36@07/02/2008): OpenSync Evolution 2 Plugin
[I] app-pda/libopensync-plugin-syncml (0.36@07/02/2008): OpenSync SyncML Plugin
[I] app-pda/libopensync-plugin-vformat (0.36@07/02/2008): OpenSync VFormat Plugin
Found 4 matches.
|
Per prima cosa e' necessario installare il plugin per vformat:
Code: | ┌─(ROOT@fandango:pts/3)───────────────────────────────────────────────────(~)─┐
└─(14:24:#)── eix -cI vformat ──(gio,feb07)─┘
[I] app-pda/libopensync-plugin-vformat (0.36@07/02/2008): OpenSync VFormat Plugin
|
Rispetto all'howto di mouser, al comando "msynctool --configure nokia-evo 2" vanno eliminate queste righe:
Code: | <contact_db>Contacts</contact_db>
<calendar_db></calendar_db>
<note_db></note_db> |
ed aggiunte queste:
Code: | <database>
<name>Contacts</name>
<objtype>contact</objtype>
<objformat>vcard21</objformat>
</database> |
Ora facciamo scoprire ad opensync i servizi che abbiamo a disposizione:
Code: | ┌─(andrea@fandango:pts/4)──────────────────────────────────────────────────────────(~)─┐
└─(14:28:%)── msynctool --discover nokia-evo 1 ──(gio,feb07)─┘ |
Code: | ┌─(andrea@fandango:pts/4)──────────────────────────────────────────────────────────(~)─┐
└─(14:28:%)── msynctool --discover nokia-evo 2 ──(gio,feb07)─┘ |
Adesso e' possibile sincronizzare il telefono _________________ http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM |
|
Back to top |
|
|
MeMyselfAndI l33t
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Thu Feb 28, 2008 3:14 pm Post subject: |
|
|
OT: Che PS1 Sborona che hai...
ok scusate l'inutilita' di questo commento ma non ho resistito |
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Thu Feb 28, 2008 5:05 pm Post subject: |
|
|
MeMyselfAndI wrote: | OT: Che PS1 Sborona che hai...
ok scusate l'inutilita' di questo commento ma non ho resistito | C'è un HOWTO anche per quello e su www.sideralis.org c'è anche un tool _________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
|
topper_harley Guru
Joined: 05 Apr 2006 Posts: 363 Location: Treviso / Udine (Italy)
|
Posted: Fri Feb 29, 2008 5:03 pm Post subject: |
|
|
MeMyselfAndI wrote: | OT: Che PS1 Sborona che hai...
ok scusate l'inutilita' di questo commento ma non ho resistito |
ehhhh...
C'e' chi puo' e chi non puo'... Io puo'!
Tornando in topic questo howto sembra non funzionare con il nokia N70.
L'errore che riporta e' questo:
Code: |
contact sink of member 2 of type syncml-obex-client had an error: Forbidden (0x43)
The sync failed: At least one object engine failed while getting changes. Aborting
|
Comunque c'e' gia' un bug aperto: http://www.opensync.org/ticket/679 _________________ http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Thu Apr 10, 2008 4:18 pm Post subject: |
|
|
Ho seguito questo: http://gentoo-wiki.com/HOWTO_sync_mobile_phone_with_Gentoo#Install_package.28s.29_for_Syncing
Ed anche io ricevo questo errore:
Code: | ~> msynctool --sync mobile
Synchronizing group "mobile"
The previous synchronization was unclean. Slow-syncing
data sink of member 1 of type file-sync just connected
data sink of member 2 of type syncml-obex-client had an error: Unable to find sink for data
contact sink of member 2 of type syncml-obex-client just connected
contact sink of member 1 of type file-sync just connected
Main sink of member 1 of type file-sync just connected
Main sink of member 2 of type syncml-obex-client had an error: Forbidden (0x43)
The sync failed: At least one objenit hat problems while connecting. Aborting
Main sink of member 2 of type syncml-obex-client just disconnected
data sink of member 1 of type file-sync just disconnected
contact sink of member 1 of type file-sync just disconnected
Main sink of member 1 of type file-sync just disconnected
contact sink of member 2 of type syncml-obex-client just disconnected
ERROR: At least one objenit hat problems while connecting. Aborting |
Qualche novità a riguardo? _________________ LP |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Thu Jun 19, 2008 2:17 pm Post subject: |
|
|
Io ho un nokia 6680 ed avevo lo stesso errore di output...
Anche se mi sembrava una cavolata, ho ricompilato app-pda/multisync con la flag irmc come dice in fondo a questa guida. Mi sembrava strano, visto che il pacchetto ha anche una flag bluetooth...
E invece, dopo aver fatto questo, il comando Code: | msynctool --sync nokia-evo | ha funzionato e la sincronizzazione con evolution è andata a buon fine. _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
lucapost Veteran
Joined: 24 Nov 2005 Posts: 1419 Location: <ud|me|ts> - Italy
|
Posted: Fri Jun 20, 2008 8:59 am Post subject: |
|
|
grazie dell'avviso, questo weekend faro' qualche prova per vedere se funzione... _________________ LP |
|
Back to top |
|
|
|