OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: qkidda on January 05, 2005, 05:40:32 pm

Title: Sync Problems With C860
Post by: qkidda on January 05, 2005, 05:40:32 pm
Hi,

Forgive me if I sound like a numpty, but I just can't get this going. I'm not a newbie to Linux ... been using it for a few years, but can't figure this bit out.

I have SL-C860 with Cacko ROM 1.22
Running on a Mandrake Linux 10.0 PC (2.6.3 custom kernel) with QT Desktop 1.7 installed
Also got Windows 98 with QT Desktop 1.7

I understand that since sharp "modified" the Qtopia storage for the PIM that it will no longer sync to those apps, but I've been reading on these forums and else where that with the Opie apps installed, QT Desktop can be used with this, since they use XML.

However, even without this fact I still have a problem:

What I can do ...
I can connect Z via USB and get IP over USB working happily
  (using 192.168.129.201 as Z IP and 192.168.129.1 as PC IP)
I can ping both Z from PC and PC from Z.
I can ssh both from Z to PC and PC to Z.
I can mount //zaurus/home on the PC
I can mount //zaurus/system on the PC
I can do all these things when the Z is connected to my WiFi network too

I've managed to import my Palm calendar / contacts etc. (by the way ... discovered that the new Palm Desktop software, 4.14 crashes QT Desktop because it's got a different file format for the enhanced PIM applications - had to revert to an older one).

I've setup the QT Desktop Settings to point to the correct connection (i.e. either USB or LAN depending on how the Z is set up).

What I can't do for the life of me ...
Get the sync buttons on QT Desktop (running in Linux) to illuminate.
They illuminate in Windows, but I can't appear do anything with them.
In both, the connection status in the bottom right of the QT Desktop window is always red!

I've been hunting through Google and Forums for days now and am drawing a blank.

Could you please (no ... really, _please_) tell me how the 2 actually communicate. I only have the Z manual in Japanese, which is no use to me. I've tried all sorts of things, but QT Desktop just never illuminates these buttons.

How does QT Desktop contact the Z?
Is it all done via port 137 (samba / windows port)?
Does QT Desktop do an smbmount in the background when the sync button is pressed?
Is it done via ssh?
Do I also have to hit the "Start Sync" button on the "PC Link" app on the Z?
If so, when?
Do I have to stand on one leg and rub my head when launching any sync apps?

Ok, getting silly now because it's doing my head in :-(

So can anyone help me out please?

Thanks
Gav.
Title: Sync Problems With C860
Post by: cyphactor on January 05, 2005, 11:06:37 pm
Well, here is one solution. You could always use the stock PIM applications (the ones that use DTM). I have been working on a tool for Linux users that synchronizes with PIM applications using Sharps synchronization protocol. Hence, you have to install nothing on your Zaurus for the synchronization to work. Check it out at http://zsrep.sourceforge.net (http://zsrep.sourceforge.net). Please e-mail me at cyphactor@socal.rr.com if you have any problems with it, questions or suggestions.
Title: Sync Problems With C860
Post by: Stubear on January 05, 2005, 11:17:01 pm
QT desktop for linux does NOT sync with the Sharp based ROMS - including Cacko. They use the wrong format for PIM apps (dtm vs xml).

Sharp in it's infinite wisdom decided that a Linux desktop wouldn't want to sync with a linux PDA.

Stu
Title: Sync Problems With C860
Post by: cyphactor on January 06, 2005, 02:29:44 am
In that you are correct Stubear. However, thats why opens source supporters as myself exist and produce projects that eliminate the need for Sharps help (Zaurus Synchronization Repository: http://zsrep.sourceforge.net) (http://zsrep.sourceforge.net)). I need all the testers I can get for the project. I am very commited to this project so if I get feed back I will react very fast.
Title: Sync Problems With C860
Post by: qkidda on January 06, 2005, 02:55:59 am
Quote
Well, here is one solution. You could always use the stock PIM applications (the ones that use DTM). I have been working on a tool for Linux users that synchronizes with PIM applications using Sharps synchronization protocol. Hence, you have to install nothing on your Zaurus for the synchronization to work. Check it out at http://zsrep.sourceforge.net (http://zsrep.sourceforge.net). Please e-mail me at cyphactor@socal.rr.com if you have any problems with it, questions or suggestions.
I did stumble upon your project last night.

Firstly trying the RPM but finding, when trying to run zync-gui, that a shared library couldn't be found (sorry, but can't recall which one off hand). I then tried the source tar balls and compiled them, only to find the same thing.

I don't understand why ... the library is there and if I did an ldconfig -vn /usr/local/lib I can see the entry for that particular library in there.

I'll e-mail you when I get home tonight with the details.

But good work on reverse engineering the protocol!

Cheers,
Gav.
Title: Sync Problems With C860
Post by: qkidda on January 06, 2005, 03:08:06 am
Quote
QT desktop for linux does NOT sync with the Sharp based ROMS - including Cacko. They use the wrong format for PIM apps (dtm vs xml).

Sharp in it's infinite wisdom decided that a Linux desktop wouldn't want to sync with a linux PDA.
Yes, I stated that in my original post. However, I'm not even getting that far, in that I don't appear to be able to establish a connection from QT Desktop to the Z.

Even running under Windows 98 (or Windows 2k as I am at the moment) with QT Desktop 1.7. In fact, I've just noticed that the sync buttons are masked out when running in win2k too. They are active on my win98 machine, but don't appear to do anything, even read the list of installed packages.

Does the new sharp ROM use a completely different method of even connecting to the Z - not just different PIM file formats? That's what I'd like to know, then at least I can figure out what's going on.

My plan was to use the opie applications to sync with QT Desktop as I read elsewhere on one of these forums will work. They're installed at the moment.

Cheers,
Gav.
Title: Sync Problems With C860
Post by: tumnus on January 06, 2005, 05:24:57 am
Yes. Sharp completely changed the sync and PIM framework. The old Sharp ROMs and the current OPIE way of syncing is via a builtin FTP server. This is what the Trolltech Qtopia Desktop uses, but the latest Sharp ROMs do not, so it cannot even connect to the latest Sharp ROMs (or variants of).

The latest Sharp ROMs now use Samba for file transfer, but I don't think that is used for syncing. cyphactor will obviously know more about what is used for syncing than me though.
Title: Sync Problems With C860
Post by: qkidda on January 06, 2005, 06:01:37 am
Thanks for that answer ... it's _exactly_ what I wanted to know.  

The fact ftp was used by sharp but not any more. I knew it was more involved than just a change of PIM file format.

However ... what I'm now thinking : could I use the Cacko ROM (first impression of OZ Opie when I installed it was that it locked up as soon as I installed a bit of software, so ditched it) with the Opie apps (as downloaded from the Cacko feed) and install an ftp server.

Any thoughts on this? I'll be trying it shortly once I finish typing and find one.

Cheers,
Gav.

--- Update

QT Desktop sits for a second or 2 connecting to the Z, but there are obviously files somewhere that it's looking for straight away. Possibly time to reconsider what to do - OZ or zync. But I need to be able to sync PIM data as a priority.
Title: Sync Problems With C860
Post by: cyphactor on January 06, 2005, 02:01:06 pm
Quote
Quote
Well, here is one solution. You could always use the stock PIM applications (the ones that use DTM). I have been working on a tool for Linux users that synchronizes with PIM applications using Sharps synchronization protocol. Hence, you have to install nothing on your Zaurus for the synchronization to work. Check it out at http://zsrep.sourceforge.net (http://zsrep.sourceforge.net). Please e-mail me at cyphactor@socal.rr.com if you have any problems with it, questions or suggestions.
I did stumble upon your project last night.

Firstly trying the RPM but finding, when trying to run zync-gui, that a shared library couldn't be found (sorry, but can't recall which one off hand). I then tried the source tar balls and compiled them, only to find the same thing.

I don't understand why ... the library is there and if I did an ldconfig -vn /usr/local/lib I can see the entry for that particular library in there.

I'll e-mail you when I get home tonight with the details.

But good work on reverse engineering the protocol!

Cheers,
Gav.
Yes, I have heard that this is a problem. I have found that /sbin/ldconfig -n does not really work. You need to add /usr/local/lib to your /etc/ld.so.conf file and the run /sbin/ldconfig (don't pass it any options, do a full update). Then it should find the libraries it needs. Let me know if this does not work.

The third release RPM (zync-0.2.1-3.i386.rpm), performs a /sbin/ldconfig post installation and post unistall. Hence, if /usr/local/lib is in your /etc/ld.so.conf before you install the RPM you should not have a problem. I the current source release I think uses  /sbin/ldconfig -n /usr/local/lib, which does NOT work. I have modified the latest code in the CVS so that this problem is fixed. Hence, the next source release should work.
Title: Sync Problems With C860
Post by: qkidda on January 06, 2005, 02:17:38 pm
Thanks for that tip ... was just getting around to playing with zync tonight when I got notification of reply.

Did as you suggest and it now fires up  

Now all I need to do to think about keeping Cacko is get my Calendar info into the Z somehow. Sure I read somewhere that someone had utils to convert between DTM and XML.
Title: Sync Problems With C860
Post by: cyphactor on January 06, 2005, 02:19:19 pm
Quote
Yes. Sharp completely changed the sync and PIM framework. The old Sharp ROMs and the current OPIE way of syncing is via a builtin FTP server. This is what the Trolltech Qtopia Desktop uses, but the latest Sharp ROMs do not, so it cannot even connect to the latest Sharp ROMs (or variants of).

The latest Sharp ROMs now use Samba for file transfer, but I don't think that is used for syncing. cyphactor will obviously know more about what is used for syncing than me though.
Yep, the entire frame work has changed. Sharp decided to write their own protocol for synchronization rather than use a standard like SyncML. Beyond that they did not create seperation between protocol and the DTM (the file format for the PIM database). Hence, the protocol uses byte for byte transfer of DTM files in some places and obfuscates it in others. The synchronization process is very much based on the SyncML standard. However, the protocol itself is far from. More info on the protocol can be obtained in the Download section of http://zsrep.sourceforge.net (http://zsrep.sourceforge.net).
Title: Sync Problems With C860
Post by: petya on January 08, 2005, 02:22:08 pm
Hi all!

I have installed cacko rom on sl-c760 and opie pim apps, touched the empty xml files, and still not able to sync. I have installed troll­-ftpd ftp server, it works well with telnet. I have set up multisync pairs, the ftpd listens on port 21. What am i doing wrong?

petya
Title: Sync Problems With C860
Post by: tumnus on January 08, 2005, 02:57:45 pm
It doesn't use port 21. It uses port 4242. I think there may also be another port that was used as the control port to trigger the sync etc.

Even if this appears to work, you'll get problems if you run the Opie PIM apps with Fast Load because Qtopia will not know there is a sync process going on so it will not send out the QCOP message that tells the PIM apps to flush their data into the XML files. Although you could send this QCOP message manually.
Title: Sync Problems With C860
Post by: cyphactor on January 08, 2005, 04:56:50 pm
This all sounds like way too much effort. You should just be able to install an RPM for the sync software on your Desktop and have it synchronize. But tumnus you are correct it does use another port as a trigger mechanism so that a sync can be initiated from the Desktop software rather than just from the Zaurus. I think you need to not use the OpiePIM apps and rather use the Sharp PIM apps, the ones that use DTM, and just test/use my sync software, zync and zync-gui .
Title: Sync Problems With C860
Post by: petya on January 09, 2005, 03:50:24 am
Can it sync with evolution, or just qtopia desktop?
Title: Sync Problems With C860
Post by: cyphactor on January 09, 2005, 05:25:58 pm
Currently it only synchronizes with Kontact (KOrganizer, etc). However, I am working on a Evolution plugin right now as well. So it will have Evolution support very soon.
Title: Sync Problems With C860
Post by: qkidda on January 11, 2005, 05:43:00 am
I've ended up with a slight change in plan:

Installed Pi-Sync (http://www.pi-sync.net), sources on SourceForge (http://sourceforge.net/projects/kdepimpi/) which uses modified KOrginizer etc.

It allows me to sync with Ko-Pi and Ka-Pi both on my Windows & Linux desktops and even with the Sharp PIM apps in the Z itself.

That's all I wanted ... if only Sharp would get their act together and sort out Qtopia Desktop for syncing with the new ROM under Linux, that would save me having 2 sets of PIM apps in my Z!

Thanks for all suggestions,
Gav.
Title: Sync Problems With C860
Post by: cyphactor on January 11, 2005, 12:27:25 pm
It wont be a problem anymore after I get some plugins written. Would you all give me your opinion on first of all which syncing is most important to you Calendar or Address Book. Secondly which PIM suite would you rather be able to sync with Kontact (KDE progs), Evolution, or what?

Once, I get an idea I will start working on either the Address Book plugin or the Calendar plugin for my software hence you will be able to have one set of PIM apps installed on your Zaurus and be able to sync with both Windows and Linux.

I do need to know what you all out there want and view as the priority so I can plan and work on that first.
Title: Sync Problems With C860
Post by: bethanyb on February 19, 2005, 04:29:42 pm
Hi,

I skimmed through your thread here.  I have almost no experience with Linux, and cannot get my Z to sync or connect to my PC which runs Windows ME.
What's the difference between USB I/O and USB TCP/IP. I only have the USB SLvers3 WDM driver.  Where can I get the USB TCP/IP Network Adapter if I want to try that?

I really don't want to use Outlook, as I've been able to avoid it so far. I'd like to use QTopia, but right now it looks impossible.  I tried the Zaurus Synchronization Repository, but as I have no idea what you guys are talking about I'm not sure what I ought to download --- a source tallbar (???) or an rpm (????).

Any feedback would be helpful.

--bethany
Title: Sync Problems With C860
Post by: bethanyb on February 19, 2005, 04:31:50 pm
Hi,

I skimmed through your thread here.  I have almost no experience with Linux, and cannot get my Z to sync or connect to my PC which runs Windows ME.
What's the difference between USB I/O and USB TCP/IP. I only have the USB SLvers3 WDM driver.  Where can I get the USB TCP/IP Network Adapter if I want to try that?

I really don't want to use Outlook, as I've been able to avoid it so far. I'd like to use QTopia, but right now it looks impossible.

cyphactor--I tried the Zaurus Synchronization Repository, but as I have no idea what you guys are talking about I'm not sure what I ought to download --- a source tallbar (???) or an rpm (????).

Any feedback would be helpful.

--bethany
Title: Sync Problems With C860
Post by: cyphactor on February 19, 2005, 09:13:34 pm
Quote
What's the difference between USB I/O and USB TCP/IP. I only have the USB SLvers3 WDM driver.  Where can I get the USB TCP/IP Network Adapter if I want to try that?

The USB TCP/IP Network Adapter does not exist. It is a virtual adapter. It is basically stating to use a driver that will make your USB connection act as a TCP/IP connection. This is what is used in Linux synchronizations. The USB I/O just uses a normal windows USB driver to perform synchronizations.

Quote
I really don't want to use Outlook, as I've been able to avoid it so far. I'd like to use QTopia, but right now it looks impossible.

cyphactor--I tried the Zaurus Synchronization Repository, but as I have no idea what you guys are talking about I'm not sure what I ought to download --- a source tallbar (???) or an rpm (????).

Any feedback would be helpful.

--bethany

Well, Zaurus Synchronization Repository produces zync, a command line tool which allows synchronization of ones Zaurus with the Linux desktop. Zaurus Synchronization Repository also produces zync-gui, a graphical front end for the command line tool. Zync supports a broad number of Desktop PIM applications via a plug-in system. Hence, you must download the plug-ins which you would like to use. Personally I suggest you use the RPMs and do the intsall from the RPMs. After downloading the RPMs one can install them by doing the following:

# rpm -ivh filename.rpm

Note: The above must be performed as super user.