[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] approaching three point zero
On Sat, 23 Oct 2004 14:22:40 +0400
spied@yandex.ru wrote:
>
> 1. i try allow to do two or more syncs concurrently via libusb code,
> but how?
> - in device detection cycle (pconn_libusb_open() function in
> PConnection_libusb.c file) do fork after new palm is found (parent
> process wait for other palm, chlid do sync);
> - use hotplug linux subsystem similar description in README.usb
> (hotplug run one coldsync instance for every sync and pass bus number
> and device number to it)
>
> first solution is more portable, but i like second
I would do concurrency using hotplug, it's easier. Maybe we can add
it to the libusb code in the future.
> 2. serial code can freeze on disconnect if delay before palm connect
> is long (we start coldsync, wait several minutes and press hotsync
> button).
> this error appear ony with serial-connected palm (via serial cable on
> cradle).
> i don't know it's linux specific or not.
>
> empiric solution is
> comment next lines:
> if (PConn_get_palmerrno(pconn) == PALMERR_TIMEOUT)
> continue;
> in cmp_accept() function cmp.c file (we don't wait palm device)
> and restart coldsync like this:
> while (true); do
> /usr/local/bin/coldsync -md -n S0
> sleep 1
> done
>
> are you agree with this solution?
uhm... I don't like it so much... Andrew?
> 3. i don't know how add new option into coldsync.conf file (my free
> time is very limited). for example may be you add support for this:
> /* XXX This should be made configurable */
> sleep(5);
> in PConnection_serial.c file.
> i think something like "periodicity" must be added to "listen" block.
I'll give it a look.
> 4. i need auto-install some databases to new palm (for example support
> for russian fonts and graffiti). i find next lines:
> /* Install any file in the system wide "install" directory */
> /* InstallNewFiles(palm, GLOBAL_INSTALL_DIR, False, False); */
> /* Removed... it wasn't the right implementation. Maybe
> * it should be an user option...
> */
> why it is removed? what is right solution?
I must admit I can't remember ;) I'll give it a look...
> 5. i think "pda" blocks in coldsync.conf file must be deprecated, we
> can move all parameters to palms file (today in daemon mode i must add
> both new line in palms file and new "pda" block in coldsync.conf
> file). i need only one new parameter in palms file - "directory".
> you agree?
not everyone uses daemon mode. why do you need a pda block in daemon
mode?
Anyway, I use this system to handle my users:
I create a real user with this directory tree:
realuser/palm01
realuser/palm02
...
Then, in the .coldsyncrc, I put:
options {
CS_DOTPALM: "$(HOME)/$(CS_PALMUSERNAME)";
}
so each palm gets his own directory.
> some requests for coldsync:
> - protocol (full, net, simple) MUST BE autodetected (it's not very
> complex)
In the libusb code this almost works... :D
> - databases with over-64kb records must be supported
I agree. Someone can please send me such a database and
tell me which version of the Palm OS I'll need to
properly use them?
Anyway, I'd like to release 3.0 as is and then made some
more corrections in 3.1. I'll see if I can test
the libusb code with a T3...
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it