Danke!
Hello all Motorolafans,
I wanted to install a compatible multisync for the A780. But i couldn't find a good tutorial for a new system.
A good source for all configuration and how should it work is Troodon's hompage. The Problem is to compile the
needed old software. Now i found a way to run multisync on Debian (Etch) and Ubuntu 7.10 (Gutsy Gibbon) and maybe someone is interested in.
First you need a working MACKconnectivityconnection over usb or bluetooth. You will find enough information in this forum.
I will show you only how to make a script for a usb-connection. To use the script you need to edit one file from the
MACKconnectivitypack. This tutorial is made for the usb-connection (192.168.1.1) if you want to use bluetooth (192.168.1.3) you
need to change the ip-adress in the configurations or follow Troodon's tutorial.
http://www.troodon.org/a780/a780-linux-howto.htm
MACK
====
open:
/diska/.system/QTDownLoad/mack/iptables/inet-bt
original:
/tmp/mack/iptables/sbin/iptables -t mangle -A POSTROUTING -o gprsv0 -j ROUTE --gw 192.168.1.3
change to:
/tmp/mack/iptables/sbin/iptables -t mangle -A POSTROUTING -o gprsv0 -j ROUTE --gw 192.168.1.1
make a script on a linux-box
vi routing.sh
chmod a+x routing.sh
Only a bit help for the MACKconnectivityconnection but otherwise it would be to long.#!/bin/sh
pppd /dev/ttyACM0 noauth 192.168.1.1:192.168.1.2 netmask 255.255.255.0 local
while ! ping -c 1 192.168.1.2 >/dev/null 2>&1 ; do echo -n "."; sleep 1; done
iptables -D FORWARD -i ppp0 -j ACCEPT >/dev/null 2>&1
iptables -I FORWARD -i ppp0 -j ACCEPT
iptables -D FORWARD -o ppp0 -j ACCEPT >/dev/null 2>&1
iptables -I FORWARD -o ppp0 -j ACCEPT
iptables -t nat -D POSTROUTING -s 10.1.1.1 -j MASQUERADE >/dev/null 2>&1
iptables -t nat -I POSTROUTING -s 10.1.1.1 -j MASQUERADE
route add 10.1.1.1 dev ppp0
cat /proc/sys/net/ipv4/ip_forward >/dev/null;
if [ $? -eq 0 ]
then echo 1 > /proc/sys/net/ipv4/ip_forward;
fi;
echo Ready.
Multisync
======
Now we come to our multisync problem.
I have installed these follow pakets:
Maybe not all are needed like (gawk g77 texinfo) but i dont know. They were helpfulgcc
gpp
g++
gawk
g77
texinfo
patch
autoconf
autotools-dev
libexpat1-dev
libglib2.0-dev
libgnomeui-dev
libssl-dev
automake (its special and explained later)
to remove some messages during the configuration procedure.
Download these files from Troodon and multisync0.82 from sourceforge.net in one download directory .
syncml_plugin_a780.patch
wbxml2-0.9.0-patched.tar.gz
multisync-0.82-1.tar.bz2
Now install automake-1.4 and no other.
I don't know if it's necessary but i have made a folder named "wbxml2" in "/usr/local/include" and copiedtar xvzf wbxml2-0.9.0-patched.tar.gz
cd wbxml2-0.9.0
./bootstrap
./configure
make
sudo make install
all wbxml* files from "/usr/local/include" to "/usr/local/include/wbxml2".
Because i have heard that multisync will find them there. Never checked it without but you can try.
Now remove automake-1.4 and install automake (Version 1.10).
Copy the content from automake-1.10 to automake-1.6cd /usr/share/
mkdir automake-1.6
Another way is to make a symlink to that folder - what you like.
Now we come to multisync and the syncml_plugin. Go back to your download directory.
For another Plugin to test the connection (multisync-0.82/plugin/backup_plugin).tar xvjf multisync multisync-0.82-1.tar.bz2
cd multisync-0.82
./configure
make
sudo make install
cd ..
patch -p0 < syncml_plugin_a780.patch
cd multisync-0.82/plugin/syncml_plugin
./configure
make
sudo make install
cd ..
Now we need to configure multisync.cd backup_plugin
./configure
make
sudo make install
Configurationexport MULTISYNC_DEBUG=1
multisync
==========
First plugin: SyncML
Options:
SyncML Role: SyncML server: Accept connections
Connection: http://< this computer >:5079/sync
Authentication: username and password is what you like
Second plugin: Backup
Choose a Backup directory (you can make for example in your profile "a780backup" folder)
The configuration for the A780 sync programm (USB).
Contacts: contacts
Calendar: events
Tasks: todo
Server name: http://192.168.1.1:5079/sync
User name: <username_syncml_plugin>
Password: <password_syncml_plugin>
Data connection: USB-PPP
The configuration for the A780 Connection Profile (USB).
Profilname: usb-ppp
GPRS APN: 192.168.1.1
Timeout: off
This is the point where all should be installed and configured.
- make a working usb-ppp (leoppp) connection check with ifconfig
- start the script ./routing.sh
- run MackInetBT.lin
- run multisync and enable the checkbox from your profile
- run sync program on A780
- press SyncML OTA
Ready and congratulations you have successful transferred your data!!!
Good luck and fun with this tutorial i hope it is helpfull.
For all the german speaking people i have made a tutorial here:
http://www.setius.net/a780_syncml.html
And sorry for my english.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
Danke!
Thanks for this help.
I have been successful syncing my e680i with multisync0.90 bundled with Ubuntu Gutsy without modification.
Basically I set up the MackConnectivity and setup multisync.
You make a pair, one of which is the syncml-http-server and I have used either filesync or evolution sync for the other.
There is no nice gui for multisync syncml-http-server configuration but the entries seem pretty self explanatory
Here are mine:
<config><username>syncml</username><password>syncml</password><url>/sync</url><port>5079</port><usestringtable>0</usestringtable><onlyreplace>0</onlyreplace><recvLimit>0</recvLimit><maxObjSize>0</maxObjSize><contact_db>contacts</contact_db><calendar_db>events</calendar_db><note_db>notes</note_db></config>
You hit refresh on the multisync group and then sync on your phone.
Last edited by sblackett; 03-03-2008 at 12:55 AM.
I had some time to discover what sblackett has done.
So i tried with Debian Etch multisync0.90 was not working only multisynctools. You need to do the configuration per console.
Under Debian Lenny multisync0.90 (0.92.0) is working like a text editor.
I installed following packages:
- libopensync0 *opensync
- multisync0.90 *multisync
- opensync-plugin-evolution *sync mit Evolution 2.x
- opensync-plugin-file *sync mit backup
- opensync-plugin-syncml *syncml http server
Start multisync0.90 add a group.
Add two members to the group:
(disable data + note)
SyncML over HTTP Server
Evolution 2.x
For the SyncML HTTP Server you can use sblackett configuration.
Routing the packets and the configuration on the phone is the same like first post.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
I followed this, trogdon's and the german tutorial, and I managed to get my A780 to connect and sync its data to files. Now I can't get it to sync again. Everything seems the same, but I stall at the Slow Syncing stage. There doesn't seem to be a working syncml server.
I didn't change any settings, just shutdown the laptop for the night and rebooted the phone when the fake connection didn't want to go away. Now I can't seem to get it to work again.
Is there a way to test the ppp connection from the phone?
What other tools can I use to find out where the sync is breaking down?
Thanks,
Statik
To test the ppp connection you can check with ifconfig and ping.
However you also need a working routing you can check with "route -n" and ping maybe Google from the phone.
To check multisync type in the console:
You need to refresh multisync before press syncml ota on phone.Code:export MULTISYNC_DEBUG=1 multisync0.90
With "netstat -tulnap" sshd should listen on port 5079.
You can see incoming traffic with "iftop -i ppp0".
If you have problems with routing there is also a nice application here called ishare. If you want to install it you need to remove the mack pack.
Btw which connection type you trying BT or USB?
Last edited by Halftux; 05-29-2009 at 04:20 PM.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
I was able to install ekonsole on the phone and with it ping 192.168.1.1 and see the traffic in the resources tab of Ubuntu's system monitor. I am currently installing iftop to see if I can see more. I could also see the syncml packets on the same monitor.
I could not ping google.ca as it was an unknown host
I could not ping 74.125.91.104 (google.ca's domain) although I could see the data on the network monitor.
Running iftop as instructed, ping 192.168.1.1 on the phone produces output on iftop. Sync on phone produces data incoming from 10.1.1.1 to 192.168.1.2, but nothing returning. 300b RX'd on laptop, nothing TX.
Did a reinstall of all associated programs and plugins on Ubuntu (Synaptic, right-click-reinstall). Made no difference.
also:Code:statik@statik-laptop:~$ multisync0.90 The previous synchronization was unclean. Slow-syncing
I'm convinced its Ubuntu's sync utils somewhere. Just have to find where.Code:statik@statik-laptop:~$ sudo iftop -i ppp0 interface: ppp0 IP address is: 192.168.1.1 MAC address is: 00:00:00:00:00:00 statik@statik-laptop:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.2.0 0.0.0.0 255.255.255.0 U 2 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1
Statik
I am sorry to say but the problem is your routing.
The hostroute shouldn't be the ppp0 interface from phone (192.168.1.2), it should be the fake gprs (10.1.1.1) over ppp0. So your sync application on your phone cant get any packets back they will stray some where on ppp0.
Thats also the reason why you cant get ping replay from any webpage.
Can you do a route -n on your phone with active ppp and mack init?
If you need the command i can post it here.
I will do it on my phone and pc that you can have a look how it should be.![]()
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
So your Hostroute is not wrong but also not necessary. You definitely need one to your fake gprs.
Here is a route picture I took long time ago [picture].
And now here is the configuration from current laptop.
And here from my phone:Code:Kernel-IP-Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 192.168.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.168.230 0.0.0.0 UG 0 0 0 eth0
So I used the ishare package its same like from Mack only preconfigured. If you want to install it you need to remove the Mack Pack (/diska/.system/QTDownLoad/mack). You will find a detailed discription if you follow the link.Code:Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 gprsv0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 gprsv0
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
I don't know why it worked previously, but I hadn't created and run the routing.sh script. I did that and voila' it works!
Must make sure to read ALL the instructions.
As a side-note, here is the route:
Looks kinda familiar.Code:statik@statik-laptop:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.2.0 0.0.0.0 255.255.255.0 U 2 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1 statik@statik-laptop:~$
I'll try it a few more times each way to make sure it works. Hopefully this survives several reboots.
Thanks,
Statik