Menu

#162 Yakumo delta 300 GPS 2L not connecting

closed-fixed
synce-hal (2)
5
2009-12-13
2008-12-29
No

Hello,

I am using debian lenny and tried to sync with my WinCE Yakumo delta 300 GPS 2L device. The device is still using Windows Mobile 2003 2nd Edition. Everything is fine, until the device is lugged in, Popup on PPC starts, that connection will start and stops after a few seconds. I have treid synce-serial, synce-hal in versions 0.11.1 and 0.12 following your setup script from your web page for win2003 devices.

It seems that this has something to do with hal devices and 4 endpoints usb devices. It seems that some values needed from HAL are stored in different UID HAL devices, so that requesting information from HAL sometimes gives NOVALUE to hal-odccm and others.

I'm using kernel 2.6.26 coming out from debian-lenny on a P4 i386 machine.

If you need more information, please ask me.

-----------------------------------------
/proc/bus/usb excerpt:

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 25 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=ff(vend.) Sub=ff Prot=ff MxPS=16 #Cfgs= 1
P: Vendor=3340 ProdID=0e3a Rev= 0.00
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=ipaq
E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

--------------------------------------
Here the output of synce-matchmaker:

** (process:6884): CRITICAL **: synce_info_from_hal: Failed to obtain property pda.pocketpc.name for device /org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0: org.freedesktop.Hal.NoSuchProperty: No property pda.pocketpc.name on device with id /org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0

** (process:6884): WARNING **: synce_info_from_odccm: Failed to get devices: The name org.synce.odccm was not provided by any .service files
[synce_info_from_file:69] unable to open file: /home/silvia/.synce/active_connection
[rapi_context_connect:173] Failed to get connection info
[main:66] Failed to initialize RAPI

------------------------------

therefore i had a look at lshal:

udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial'
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_0' (string)
info.product = 'Pocket PC 300 GPS SL / Typhoon MyGuide 3500' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial' (string)
info.vendor = 'Yakumo' (string)
linux.device_file = '/dev/bus/usb/001/025' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2' (string)
usb_device.bus_number = 1 (0x1) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 255 (0xff) (int)
usb_device.device_protocol = 255 (0xff) (int)
usb_device.device_revision_bcd = 0 (0x0) (int)
usb_device.device_subclass = 255 (0xff) (int)
usb_device.is_self_powered = true (bool)
usb_device.linux.device_number = 25 (0x19) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2' (string)
usb_device.max_power = 2 (0x2) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'Pocket PC 300 GPS SL / Typhoon MyGuide 3500' (string)
usb_device.product_id = 3642 (0xe3a) (int)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Yakumo' (string)
usb_device.vendor_id = 13120 (0x3340) (int)
usb_device.version = 1.0 (1.01) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_usbraw'
info.capabilities = {'usbraw'} (string list)
info.category = 'usbraw' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial' (string)
info.product = 'USB Raw Device Access' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_usbraw' (string)
linux.device_file = '/dev/bus/usb/001/025' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb_device' (string)
linux.sysfs_path = '/sys/class/usb_device/usbdev1.25' (string)
usbraw.device = '/dev/bus/usb/001/025' (string)

udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0'
info.linux.driver = 'ipaq' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 255 (0xff) (int)
usb.device_protocol = 255 (0xff) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 255 (0xff) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = true (bool)
usb.linux.device_number = 25 (0x19) (int)
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0' (string)
usb.max_power = 2 (0x2) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 3642 (0xe3a) (int)
usb.speed = 12.0 (12) (double)
usb.vendor = 'Yakumo' (string)
usb.vendor_id = 13120 (0x3340) (int)
usb.version = 1.0 (1.01) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0'
info.addons = {'hal-synce-serial'} (string list)
info.capabilities = {'serial', 'pda', 'sync'} (string list)
info.category = 'pda' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0' (string)
info.product = 'Pocket PC PDA' (string)
info.subsystem = 'tty' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0' (string)
linux.device_file = '/dev/ttyUSB0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'tty' (string)
linux.sysfs_path = '/sys/class/tty/ttyUSB0' (string)
pda.platform = 'pocketpc' (string)
pda.pocketpc.hotsync_interface = '/dev/ttyUSB0' (string)
serial.device = '/dev/ttyUSB0' (string)
serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0' (string)
serial.port = 0 (0x0) (int)
serial.type = 'usb' (string)
sync.engine = 'opensync' (string)
sync.plugin = 'synce' (string)
usb.interface.description = 'Windows Mobile Data Provider' (string)
usb.product = 'Windows Mobile Device' (string)

Discussion

1 2 > >> (Page 1 of 2)
  • Mark Ellis

    Mark Ellis - 2008-12-29

    Is there any particular reason you think this because the device has 4 endpoints ? I'm not saying that's wrong, just checking.

    Can you make sure synce-serial, odccm, vdccm are not installed. What version is synce-hal ? Make sure librapi2-tools is installed.

    Edit /usr/lib/hal/hal-synce-serial, find the line that says LOG_LEVEL=3, change it to LOG_LEVEL=6

    Make sure you don't have a firewall. Run iptables -L to make sure.

    Plug in again, test with synce-pls.

     
  • Wolfgang Schnitker

    After a bit of getting information, the 4 Point USB comes here:
    I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=ipaq

    #EPs = 4 means that the number of endpoints is 4

    firewall is off. Checked with iptables -L

    synce-hal is version 11.1 now.

    output of daemon.log is:

    Dec 29 17:54:30 winni hal-dccm[29911]: DEBUG: main: exiting normally
    Dec 29 17:54:30 winni NetworkManager: <debug> [1230569670.556183] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0').
    Dec 29 17:54:30 winni NetworkManager: <debug> [1230569670.564739] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_usbraw').
    Dec 29 17:54:30 winni NetworkManager: <debug> [1230569670.566877] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial').
    Dec 29 17:54:30 winni NetworkManager: <debug> [1230569670.845853] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial').
    Dec 29 17:54:31 winni NetworkManager: <debug> [1230569671.035297] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0').
    Dec 29 17:54:31 winni NetworkManager: <debug> [1230569671.080713] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_usbraw').
    Dec 29 17:54:31 winni hal-synce-serial[29994]: hal-synce-serial: running as addon for synce-device0.
    Dec 29 17:54:31 winni hal-synce-serial[29994]: Bringing up serial link: /usr/sbin/pppd /dev/ttyUSB0 115200 connect /usr/lib/synce-serial-chat 192.168.131.1:192.168.131.129 ms-dns 192.168.131.1 linkname synce-device0 nodefaultroute noauth local crtscts
    Dec 29 17:54:31 winni hal-dccm[29994]: DEBUG: main: called with device-ip=192.168.131.129, local-ip=192.168.131.1
    Dec 29 17:54:31 winni hal-dccm[29994]: DEBUG: main: connected to hal, waiting for interface...

    librapi2-tools 0.11.1 installed

    synce-pls gives me the same output:

    wolfgang@winni:~$ synce-pls

    ** (process:32128): CRITICAL **: synce_info_from_hal: Failed to obtain property pda.pocketpc.name for device /org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0: org.freedesktop.Hal.NoSuchProperty: No property pda.pocketpc.name on device with id /org/freedesktop/Hal/devices/usb_device_3340_e3a_noserial_if0_serial_usb_0

    ** (process:32128): WARNING **: synce_info_from_odccm: Failed to get devices: The name org.synce.odccm was not provided by any .service files
    synce-pls: Could not find configuration at path '(Default)'

     
  • Wolfgang Schnitker

    Additional Comments:

    #EPs = 4 means in my opinion, that we will have 4 entries in HAL.
    Thsi 4 entries will be:
    a.) usb_device_3340_e3a_noserial
    b.) usb_device_3340_e3a_noserial_usbraw
    c.) usb_device_3340_e3a_noserial_if0
    d.) usb_device_3340_e3a_noserial_if0_serial_usb_4

    It seems, that only the 4th entry is relevant for synCE, because we are connecting to a serial device.

    Because of this I walked a little bit through the sources. I first tried to change the 0.11.1 version to keep debian versions on my PC. Point of interest was synce-device.c. I could not find any help so I just tried to recompile and install the package. Then reconnect the PDA.

    Result:

    Dec 30 15:29:45 winni hal-dccm[7752]: CRITICAL: main: failed to initialise hal context: (null): (null)

    Walk into source main.c from synce-hal.

    Seems to me, that setting of properties for the HAL was not succesfull, because i couldn't see in lshal output any settings from synce which should have been made in none of the 4 HAL Endpoints. Or are this settings only visible internally in synce-hal?

    Hope, this will help you.

    I'm not very familar to debugging in gdb, so if you need something, you should take me by the hand.

    Thanx.

     
  • Mark Ellis

    Mark Ellis - 2008-12-30

    What we can see from the log you posted, is that pppd is invoked to bring up the connection, and control passes to hal-dccm. hal-dccm is then stuck waiting for the network interface, either because it wasn't brought up properly or has already gone down. It is hal-dccm that populates the hal device descriptions with synce specific stuff, which comes in the connection handshake with the device. You never get to that stage.

    I think this is a driver issue, though i'm really not sure. This is a bit fiddly since the kernel sources keep changing, so I'll go through it exactly.

    Make sure you have your kernel source installed. Get the ipaq module from svn at

    https://synce.svn.sourceforge.net/svnroot/synce/trunk/ipaq

    In that ipaq module, remove ipaq.c, and replace it with the one from your kernel source, then apply the patch I've attached to this, and run make.

    Copy the ipaq.ko in your /lib/modules/<kernel-version> directory somewhere safe, and replace it with the ipaq.ko we just built.

    In /etc/modprobe.d, create a file called synce with the contents

    options ipaq ttyUSB=1

    then run rmmod ipaq

    Try the device again. This isn't really my area, so I have no idea if my patch will work.

    File Added: ipaq-new.diff

     
  • Mark Ellis

    Mark Ellis - 2008-12-30
     
  • Mark Ellis

    Mark Ellis - 2008-12-30

    Can you also attach a verbose output of lsusb for the device.

     
  • Wolfgang Schnitker

    Hi Mark,

    as U requested lsusb -v output:

    Bus 001 Device 013: ID 3340:0e3a Yakumo Pocket PC 300 GPS SL / Typhoon MyGuide 3500
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.01
    bDeviceClass 255 Vendor Specific Class
    bDeviceSubClass 255 Vendor Specific Subclass
    bDeviceProtocol 255 Vendor Specific Protocol
    bMaxPacketSize0 16
    idVendor 0x3340 Yakumo
    idProduct 0x0e3a Pocket PC 300 GPS SL / Typhoon MyGuide 3500
    bcdDevice 0.00
    iManufacturer 0
    iProduct 0
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 46
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
    Self Powered
    MaxPower 2mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 4
    bInterfaceClass 255 Vendor Specific Class
    bInterfaceSubClass 255 Vendor Specific Subclass
    bInterfaceProtocol 255 Vendor Specific Protocol
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x86 EP 6 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x07 EP 7 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Device Status: 0x0001
    Self Powered

     
  • Wolfgang Schnitker

    Aaaaaaaaaaaaaaaaaaaaaaaaaaaannnnnnnnnnnnnnnnnnnnddddddd:

    The output after applying the patch:

    [16892.237855] ipaq 1-2:1.0: device disconnected
    [16896.674044] usb 1-2: new full speed USB device using uhci_hcd and address 13
    [16896.825597] usb 1-2: configuration #1 chosen from 1 choice
    [16896.834391] ipaq 1-2:1.0: PocketPC PDA converter detected
    [16896.841183] usb 1-2: PocketPC PDA converter now attached to ttyUSB10
    [16896.841271] usb 1-2: PocketPC PDA converter now attached to ttyUSB11
    [16896.841399] usb 1-2: New USB device found, idVendor=3340, idProduct=0e3a
    [16896.841411] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

    High USB dev # came from often reconnecting.

    It works!!!!!!!!!!!!111

     
  • Wolfgang Schnitker

    Meanwhile I build 0.12 versions of debian packages, where can I upload this? (gforge.punktart.de??)

     
  • Mark Ellis

    Mark Ellis - 2008-12-31

    Thats excellent news. I think I might have an idea what is causing the increasing device number, but I need to think for a bit. Can I continue using you as a test case for a little while, and we'll try and get the kernel module fixed ?

     
  • Wolfgang Schnitker

    Hi Mark,

    of course you can. I'm on holiday til 11 jan. Then only work on weekends possible.

     
  • Wolfgang Schnitker

    Hi,

    I have made more exercises. Because i build 0.12 synce packages I had also to recompile msynctool and other stuff from opensync to get the plugins work. After a while of frustration the device is now syncing, but the sync process does not stop on the pda. Filecomparison works, the rest of it run into following repetative error (Very long list...)

    [rapi_buffer_send:562] writev failed, returned -1 and not 12
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 76
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 16
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 12
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 76
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 16
    [rapi_buffer_send:588] synce_socket_write failed
    [rapi_context_call:277] rapi_buffer_send failed
    [rapi_buffer_send:562] writev failed, returned -1 and not 12
    [rapi_buffer_send:588] synce_socket_write failed

    Newly build packages for debian i386 can be uploaded.

     
  • Mark Ellis

    Mark Ellis - 2009-01-03

    Can we back up a step. Before you built 0.12, did everything work ok with the new driver ? Could you do synce-pls and synce-pstatus successfully ? Do these still work now you are using 0.12 ?

     
  • Wolfgang Schnitker

    Hi Mark,

    totally yes. Patch works with both versions. 0.11.1 from lenny originally packaged and updated packages for 0.12.

     
  • danielinteract

    danielinteract - 2009-03-11

    Hi,

    I also have a very similar Pocket PC as Wolfgang (Medion MD95000) and problems with SynCE version 0.13 in openSUSE 11.1 running the kernel 2.6.27.19. On the PPC after plugging it in, for a few seconds a window "Connecting..." appears, but no connection can be established. Moreover, if I plug out the PPC, the process synce-serial-ch started from root blocks my system and uses all the CPU, so I have to kill this process manually.

    Do I also have to patch my kernel like Mark described it on 2008-12-30?

    Thank you very much for your help,
    Daniel

    My /var/log/messages contains: -----------------------------------------------------------------

    Mar 11 11:05:16 linux-q6vk kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3
    Mar 11 11:05:16 linux-q6vk kernel: usb 2-1: configuration #1 chosen from 1 choice
    Mar 11 11:05:16 linux-q6vk kernel: ipaq 2-1:1.0: PocketPC PDA converter detected
    Mar 11 11:05:16 linux-q6vk kernel: usb 2-1: PocketPC PDA converter now attached to ttyUSB0
    Mar 11 11:05:16 linux-q6vk kernel: usb 2-1: New USB device found, idVendor=3340, idProduct=3326
    Mar 11 11:05:16 linux-q6vk kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Mar 11 11:05:16 linux-q6vk pppd[24934]: pppd 2.4.5 started by root, uid 0

    synce-matchmaker create gives me: --------------------------------------------------------------

    ** Message: Device /org/freedesktop/Hal/devices/usb_device_3340_3326_noserial_if0_serial_usb_0_0 not fully set in Hal, skipping
    ** Message: Device /org/freedesktop/Hal/devices/usb_device_3340_3326_noserial_if0_serial_usb_0 not fully set in Hal, skipping
    ** Message: Odccm is not running, ignoring
    [synce_info_from_file:73] unable to open file: /home/daniel/.synce/active_connection
    [rapi_context_connect:173] Failed to get connection info
    [main:66] Failed to initialize RAPI

     
  • Mark Ellis

    Mark Ellis - 2009-03-11

    Daniel, do a lsusb -v for the device and attach it

     
  • danielinteract

    danielinteract - 2009-03-11

    Mark,

    the part for the PPC from lsusb is a bit different from Wolfgang's:

    Bus 002 Device 002: ID 3340:3326 Yakumo
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.01
    bDeviceClass 255 Vendor Specific Class
    bDeviceSubClass 255 Vendor Specific Subclass
    bDeviceProtocol 255 Vendor Specific Protocol
    bMaxPacketSize0 16
    idVendor 0x3340 Yakumo
    idProduct 0x3326
    bcdDevice 0.00
    iManufacturer 0
    iProduct 0
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 46
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
    Self Powered
    MaxPower 2mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 4
    bInterfaceClass 255 Vendor Specific Class
    bInterfaceSubClass 255 Vendor Specific Subclass
    bInterfaceProtocol 255 Vendor Specific Protocol
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x86 EP 6 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x07 EP 7 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 0
    Device Status: 0x0001
    Self Powered

     
  • Mark Ellis

    Mark Ellis - 2009-03-11

    Yes you need to patch, you have a 4 endpoint device. We've completely resolved this at last so I'll document it here with some notes.

    1) Make sure you have your kernel source installed.

    2) Get the ipaq module from svn at

    https://synce.svn.sourceforge.net/svnroot/synce/trunk/ipaq/ipaq-build

    and the patch from

    https://synce.svn.sourceforge.net/svnroot/synce/trunk/ipaq/patches/ipaq-2.6.27.diff

    3) In that ipaq module, remove ipaq.c, and replace it with the one from your
    kernel source, then apply the patch from svn, and run make.

    4) Copy the ipaq.ko in your /lib/modules/<kernel-version> directory somewhere
    safe, and replace it with the ipaq.ko we just built

    The new driver will then give you two USB serial ports. Plug in and it should work.

    Synce 0.13 will start a dccm for both of these, which is unnecessary, and the command line tools will give a message about an unset device. These will not affect the operation, they just look messy, and have been fixed in svn, so will be in the next release.

     
  • danielinteract

    danielinteract - 2009-03-12

    Thank you very much Mark! Now my PPC connects with the Laptop, and I have made a first sync with kontact.

    One issue remains: After plugging out the PPC, the process synce-serial-chat does not stop and must be killed manually. The log of one such event is attached below. This will not have much to do with the topic of this bug, but I would be very grateful to you (who is obviously a great synce expert) if you could tell me if you know this issue, or if I should file it as a new bug.

    And one issue with the timezone is also pending, but this will probably be an opensync issue.
    [Laptop BIOS time is GMT, Desktop time is Europe/Berlin (+1), PPC time is also GMT + 1, but appointments are (this) one hour late when synced from PPC to Laptop]

    Thank you very much again Mark, without you I wouldn't have been able to sync anything.

    ***
    Log of successfull connect, but after disconnect killing of synce-serial-chat is necessary:

    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: new full speed USB device using uhci_hcd and address 8
    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: configuration #1 chosen from 1 choice
    Mar 12 10:42:03 linux-q6vk kernel: ipaq 2-1:1.0: PocketPC PDA (SynCE patched 20090206) converter detected
    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB0
    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB1
    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: New USB device found, idVendor=3340, idProduct=3326
    Mar 12 10:42:03 linux-q6vk kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Mar 12 10:42:03 linux-q6vk pppd[11642]: pppd 2.4.5 started by root, uid 0
    Mar 12 10:42:03 linux-q6vk pppd[11643]: pppd 2.4.5 started by root, uid 0
    Mar 12 10:42:05 linux-q6vk pppd[11643]: Script /usr/lib/synce-hal/synce-serial-chat finished (pid 11645), status = 0x0
    Mar 12 10:42:05 linux-q6vk pppd[11643]: Serial connection established.
    Mar 12 10:42:05 linux-q6vk pppd[11643]: Using interface ppp0
    Mar 12 10:42:05 linux-q6vk pppd[11643]: Connect: ppp0 <--> /dev/ttyUSB1
    Mar 12 10:42:05 linux-q6vk pppd[11643]: local IP address 192.168.131.2
    Mar 12 10:42:05 linux-q6vk pppd[11643]: remote IP address 192.168.131.130
    Mar 12 10:42:05 linux-q6vk hal-dccm[11637]: DEBUG: main: called with device-ip=192.168.131.130, local-ip=192.168.131.2
    Mar 12 10:42:05 linux-q6vk hal-dccm[11637]: DEBUG: main: connected to hal, waiting for interface...
    Mar 12 10:42:05 linux-q6vk hal-dccm[11637]: DEBUG: check_interface_cb: found device interface
    Mar 12 10:42:05 linux-q6vk hal-dccm[11637]: DEBUG: check_interface_cb: listening for device
    Mar 12 10:42:06 linux-q6vk SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
    Mar 12 10:42:06 linux-q6vk SuSEfirewall2: Warning: no default firewall zone defined, assuming 'ext'
    Mar 12 10:42:06 linux-q6vk ip-up: SuSEfirewall2: Warning: no default firewall zone defined, assuming 'ext'
    Mar 12 10:42:06 linux-q6vk SuSEfirewall2: batch committing...
    Mar 12 10:42:06 linux-q6vk SuSEfirewall2: Firewall rules successfully set
    Mar 12 10:42:06 linux-q6vk pppd[11648]: Script /etc/ppp/ip-up finished (pid 11649), status = 0x0
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: client_connected_cb: have a connection to port 5679
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: synce_device_init: running for udi /org/freedesktop/Hal/devices/usb_device_3340_3326_noserial_if0_serial_usb_1_5
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: synce_device_legacy_info_received
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: 28 00 00 00 04 14 00 00 11 0a 00 00 04 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 3c 00 00 00 5a 00 00 00 7c 00 00 00 50 00 6f 00 63 00 6b 00 65 00 74 00 5f 00 50 00 43 00 00 00 50 00 6f 00 63 00 6b 00 65 00 74 00 50 00 43 00 00 00 53 00 53 00 44 00 4b 00 00 00 00 00 4d 00 45 00 44 00 49 00 4f 00 4e 00 2c 00 20 00 4d 00 44 00 50 00 50 00 43 00 31 00 35 00 30 00 00 00 03 00 00 00 00 00 00 00 04 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: synce_device_change_password_flags: setting password flags unset
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: synce_device_legacy_info_received: setting CTRL_STATE_CONNECTED
    Mar 12 10:42:06 linux-q6vk hal-dccm[11637]: DEBUG: synce_device_legacy_info_received: notify hal that device is ready to be advertised
    Mar 12 10:43:10 linux-q6vk su: (to root) daniel on /dev/pts/1
    Mar 12 10:50:52 linux-q6vk smartd[2856]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 171 to 166
    Mar 12 11:04:20 linux-q6vk pppd[11648]: Modem hangup
    Mar 12 11:04:20 linux-q6vk pppd[11648]: Connect time 22.3 minutes.
    Mar 12 11:04:20 linux-q6vk pppd[11648]: Sent 923968 bytes, received 17100110 bytes.
    Mar 12 11:04:20 linux-q6vk pppd[11648]: Connection terminated.
    Mar 12 11:04:20 linux-q6vk kernel: usb 2-1: USB disconnect, address 8
    Mar 12 11:04:20 linux-q6vk kernel: ipaq 2-1:1.0: device disconnected
    Mar 12 11:04:22 linux-q6vk SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
    Mar 12 11:04:22 linux-q6vk ip-down: SuSEfirewall2: Warning: no default firewall zone defined, assuming 'ext'
    Mar 12 11:04:22 linux-q6vk SuSEfirewall2: Warning: no default firewall zone defined, assuming 'ext'
    Mar 12 11:04:23 linux-q6vk SuSEfirewall2: batch committing...
    Mar 12 11:04:24 linux-q6vk SuSEfirewall2: Firewall rules successfully set
    Mar 12 11:04:24 linux-q6vk pppd[11648]: Script /etc/ppp/ip-down finished (pid 12822), status = 0x0
    Mar 12 11:04:24 linux-q6vk pppd[11648]: Exit.
    Mar 12 11:04:30 linux-q6vk sudo: daniel : TTY=pts/1 ; PWD=/home/daniel ; USER=root ; COMMAND=/usr/bin/top
    Mar 12 11:04:32 linux-q6vk hal-dccm[11637]: WARNING: synce_device_legacy_send_ping: Device Pocket_PC not responded to 3 pings, assume disconnected
    Mar 12 11:04:32 linux-q6vk hal-dccm[11637]: DEBUG: device_disconnected_cb: receieved disconnect from device
    Mar 12 11:04:32 linux-q6vk hal-dccm[11637]: DEBUG: main: exiting normally
    Mar 12 11:04:44 linux-q6vk pppd[11642]: Child process /usr/lib/synce-hal/synce-serial-chat (pid 11644) terminated with signal 15
    Mar 12 11:04:44 linux-q6vk pppd[11642]: Connect script failed
    Mar 12 11:04:44 linux-q6vk kernel: ipaq ttyUSB0: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB0
    Mar 12 11:04:44 linux-q6vk kernel: ipaq ttyUSB1: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB1
    Mar 12 11:04:44 linux-q6vk pppd[11642]: Exit.
    Mar 12 11:04:45 linux-q6vk hal-synce-serial[11633] ERROR : failed to initialize ppp connection, return code 8
    Mar 12 11:04:45 linux-q6vk hal-synce-serial[11633] CRITICAL : failed to establish serial connection, aborting...
    Mar 12 11:04:58 linux-q6vk sudo: daniel : TTY=pts/1 ; PWD=/home/daniel ; USER=root ; COMMAND=/bin/cat /var/log/messages
    ***

     
  • Mark Ellis

    Mark Ellis - 2009-03-12

    The synce-serial-chat process will be the one for the unused USB serial port on the device. It should drop off by itself when you unplug, I'd be surprised if it had to be manually killed. The updated synce-hal and libsynce will solve this anyway, by not starting a ppp link on the unused port.

    Timezones seem to be a problem that crops up sometimes. I've only just started fixing the PIM sync side. File up a bug to remind me.

     
  • danielinteract

    danielinteract - 2009-03-12

    OK, then I will come back to synce when version 0.14 arrives. Unfortunately synce-serial-chat really has to be killed on my machine.

    Thanks again!

     
  • Mark Ellis

    Mark Ellis - 2009-03-12

    You can make it usable by applying the changes to libsynce from svn commit 3699, and to synce-hal form commit 3700

     
  • danielinteract

    danielinteract - 2009-03-12

    Mark, I had a try (downloaded the source packages, copied the two changed c files, and installed the updated packages), but it still shows the same behaviour as before. And it still starts to "pppd"s, if I'm interpreting the log correctly. The log goes always like this:

    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: new full speed USB device using uhci_hcd and address 17
    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: configuration #1 chosen from 1 choice
    Mar 12 21:09:20 linux-q6vk kernel: ipaq 2-1:1.0: PocketPC PDA (SynCE patched 20090206) converter detected
    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB0
    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB1
    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: New USB device found, idVendor=3340, idProduct=3326
    Mar 12 21:09:20 linux-q6vk kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Mar 12 21:09:21 linux-q6vk pppd[3546]: pppd 2.4.5 started by root, uid 0
    Mar 12 21:09:21 linux-q6vk pppd[3547]: pppd 2.4.5 started by root, uid 0
    Mar 12 21:09:21 linux-q6vk pppd[3547]: Script /usr/lib/synce-hal/synce-serial-chat finished (pid 3549), status = 0x0
    Mar 12 21:09:21 linux-q6vk pppd[3547]: Serial connection established.
    Mar 12 21:09:21 linux-q6vk pppd[3547]: Using interface ppp0
    Mar 12 21:09:21 linux-q6vk pppd[3547]: Connect: ppp0 <--> /dev/ttyUSB1
    Mar 12 21:09:22 linux-q6vk kernel: martian source 255.255.255.255 from 192.168.131.130, on dev ppp0
    Mar 12 21:09:22 linux-q6vk kernel: ll header: 45:00:01:13
    Mar 12 21:09:22 linux-q6vk pppd[3547]: local IP address 192.168.131.2
    Mar 12 21:09:22 linux-q6vk pppd[3547]: remote IP address 192.168.131.130
    Mar 12 21:09:22 linux-q6vk pppd[3552]: Script /etc/ppp/ip-up finished (pid 3553), status = 0x0
    Mar 12 21:12:22 linux-q6vk pppd[3552]: Modem hangup
    Mar 12 21:12:22 linux-q6vk pppd[3552]: Connect time 3.0 minutes.
    Mar 12 21:12:22 linux-q6vk pppd[3552]: Sent 3748 bytes, received 3200 bytes.
    Mar 12 21:12:22 linux-q6vk pppd[3552]: Connection terminated.
    Mar 12 21:12:22 linux-q6vk kernel: usb 2-1: USB disconnect, address 17
    Mar 12 21:12:22 linux-q6vk kernel: ipaq 2-1:1.0: device disconnected
    Mar 12 21:12:23 linux-q6vk pppd[3552]: Script /etc/ppp/ip-down finished (pid 3731), status = 0x0
    Mar 12 21:12:23 linux-q6vk pppd[3552]: Exit.
    Mar 12 21:12:33 linux-q6vk hal-dccm[3541]: WARNING: synce_device_legacy_send_ping: Device Pocket_PC not responded to 3 pings, assume disconnected
    Mar 12 21:13:20 linux-q6vk pppd[3546]: Child process /usr/lib/synce-hal/synce-serial-chat (pid 3548) terminated with signal 15
    Mar 12 21:13:20 linux-q6vk pppd[3546]: Connect script failed
    Mar 12 21:13:20 linux-q6vk kernel: ipaq ttyUSB0: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB0
    Mar 12 21:13:20 linux-q6vk kernel: ipaq ttyUSB1: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB1
    Mar 12 21:13:20 linux-q6vk pppd[3546]: Exit.
    Mar 12 21:13:20 linux-q6vk hal-synce-serial[3537] ERROR : failed to initialize ppp connection, return code 8
    Mar 12 21:13:20 linux-q6vk hal-synce-serial[3537] CRITICAL : failed to establish serial connection, aborting...

    So the synce-serial-chat of the first pppd (pid 3546) makes problems here. The synce-serial-chat of the second pppd finishes shortly after the plug-in.
    Can I do anything to help debugging this? (more log info, gdb, ...?) Because it seems that it is highly specific for my PPC.

     
  • danielinteract

    danielinteract - 2009-03-12

    Sorry for the noise, I forgot to bzip the changed source directories :-) I'm not much experienced in packaging...

    Now the hang-up from before is gone, but I can't connect any longer! Crazy. The log is attached.
    "synce-matchmaker create" gives me

    ** Message: Device /org/freedesktop/Hal/devices/usb_device_3340_3326_noserial_if0_serial_usb_1 not fully set in Hal, skipping
    ** Message: Device /org/freedesktop/Hal/devices/usb_device_3340_3326_noserial_if0_serial_usb_0 not fully set in Hal, skipping
    ** Message: Odccm is not running, ignoring
    [synce_info_from_file:73] unable to open file: /home/daniel/.synce/active_connection
    [rapi_context_connect:173] Failed to get connection info
    [main:66] Failed to initialize RAPI

    The Log:

    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: new full speed USB device using uhci_hcd and address 2
    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: configuration #1 chosen from 1 choice
    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: New USB device found, idVendor=3340, idProduct=3326
    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Mar 12 22:10:49 linux-q6vk kernel: usbcore: registered new interface driver usbserial
    Mar 12 22:10:49 linux-q6vk kernel: usbserial: USB Serial support registered for generic
    Mar 12 22:10:49 linux-q6vk kernel: usbcore: registered new interface driver usbserial_generic
    Mar 12 22:10:49 linux-q6vk kernel: usbserial: USB Serial Driver core
    Mar 12 22:10:49 linux-q6vk kernel: usbserial: USB Serial support registered for PocketPC PDA (SynCE patched 20090206)
    Mar 12 22:10:49 linux-q6vk kernel: ipaq: USB PocketPC PDA driver v0.5.1
    Mar 12 22:10:49 linux-q6vk kernel: ipaq 2-1:1.0: PocketPC PDA (SynCE patched 20090206) converter detected
    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB0
    Mar 12 22:10:49 linux-q6vk kernel: usb 2-1: PocketPC PDA (SynCE patched 20090206) converter now attached to ttyUSB1
    Mar 12 22:10:49 linux-q6vk kernel: usbcore: registered new interface driver ipaq
    Mar 12 22:17:44 linux-q6vk kernel: usb 2-1: USB disconnect, address 2
    Mar 12 22:17:44 linux-q6vk kernel: ipaq ttyUSB0: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB0
    Mar 12 22:17:44 linux-q6vk kernel: ipaq ttyUSB1: PocketPC PDA (SynCE patched 20090206) converter now disconnected from ttyUSB1
    Mar 12 22:17:44 linux-q6vk kernel: ipaq 2-1:1.0: device disconnected

     
  • Mark Ellis

    Mark Ellis - 2009-03-13

    The file hal-synce-serial is failing before it has a chance to log anything. Did you get any errors when you patched ? Send the file and I'll have a look.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB