[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [coldsync-hackers] approaching three point zero



>> i have some patches for coldsync, but it need some edit to publish
>> (formating, minor improvements, etc).
>> 
>> patched areas:
>>  - libusb support (i need review current cvs code)
>>  - read serial number support for various devices

AZ>  Ok, just keep me informed. If you want some help,
AZ>  feel free to ask!

yes, i need help ;)

but my english is very bad ;(

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

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?

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.

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?

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?


some requests for coldsync:
 - protocol (full, net, simple) MUST BE autodetected (it's not very
 complex)
 - databases with over-64kb records must be supported