For the new feature of SynCE-KPM I am working on at the moment, I want to emulate the look and feel of the windows standard program regedit.exe. This means showing the user a QTreeView showing the hierarchy of the keys and a QListView on the right showing all values within the selected key.
While the other day I have been working (and finished) on the librapi2 stuff, in particular the python bindings, to facilitate a registry editor, for some days I have been looking at this whole QTreeView stuff. I have to say that I really do appreciate the idea behind MVC, but I have to say that to use this in a nice way in PyQt is really difficult. After some days I am now at least able to create a nice QTreeView based on a model that represents the registry. Currently, everything is still hardcoded, but at least I can see a structure now (the QListView with values will come much later
).
Next step is to see if I can connect the model to the actual contents of the registry on the device in a dynamic way. The problem is that I need to fetch new data from the registry only when it is needed. One simple approach is to first read the complete registry into the model and then show this to the user. However, I don’t think users will like it if there is a 5 minute delay showing “Fetching data” when going to the registry editor before they can actually use the registry editor. This means I will have to fetch data in some asynchronous way. Fortunately, I already have some ideas about this. For some reason I think this fetching part is again the easy component….. Don’t want to think about all the mess that is involved to show this in a nice way to the end-user.
For the moment just happy that at least the very basics of the left-hand side of the future screen (i.e. the hierarchy of the keys) needed to display actual data are there. Onwards to new challenges with PyQt and its MVC

Hello Guido
I followed your guide about SynCE with Windows Mobile 5/6/6.1 on Ubuntu
All went well until the command synce-pls
hai@hai-laptop:~$ synce-pls
** Message: Hal reports no devices connected
** Message: Odccm is not running, ignoring
synce-pls: Could not find configuration at path ‘(Default)’
What went wrong? Could you, please, help me?
Thanks
Hai
Iǘe forgotten what I try to do.
I would like to sync my IPAQ HX4700 with evolution using Ubuntu Jaunty
Hello Hai,
depends a little on which guide you have followed (what is the website of the guide you are following?).
Furthermore, can you please confirm that your device is running windows mobile 5, 6, or 6.1?
Finally, what is the output of the last couple of lines of dmesg (please, only relevant lines) after you connect your device to your computer?
Kind regards,
Guido Diepen
dmesg gives the following lines:
5029.140034] usb 3-1: new full speed USB device using uhci_hcd and address 7
[ 5029.337886] usb 3-1: configuration #1 chosen from 1 choice
[ 5029.592196] rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0×00010202) failed, -47
[ 5029.599598] eth1: register ‘rndis_host’ at usb-0000:00:1d.1-1, RNDIS device, 00:00:00:00:00:00
[ 5029.833161] type=1503 audit(1251118910.083:12): operation=”inode_permission” requested_mask=”r::” denied_mask=”r::” fsuid=0 name=”/usr/share/synce-hal/dhclient.conf” pid=8964 profile=”/sbin/dhclient3″
[ 5029.833234] type=1503 audit(1251118910.083:13): operation=”inode_create” requested_mask=”a::” denied_mask=”a::” fsuid=0 name=”/var/run/dhclient-synce-eth1.lease” pid=8964 profile=”/sbin/dhclient3″
[ 5046.757430] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 328
[ 5166.765297] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 328
My PDA uses Windows Mobile 6 Classic
CE OS 5.2.1908 (Build 18508.0.7.0
and I used the instructions at address http://www.synce.org/moin/SynceInstallation/Ubuntu/ModernDevice
I hope you can help me.
Hai
If I search google for the messages you are getting I see some results about problems with AppArmor and dhclient3. I am not sure if this is exactly the same problem as you are seeing, but is it possible for you to at least disable AppArmor for the time being and test everything without it?
Kind regards,
Guido Diepen
I removed Apparmor and have resetted my computer.
The result was
synce-pls
** Message: Device /org/freedesktop/Hal/devices/net_usb_device_3f0_1c1d_noserial_if0 not fully set in Hal, skipping
** Message: Odccm is not running, ignoring
synce-pls: Could not find configuration at path ‘(Default)’
it still didnt work.
Regards
dmesg has given
3739.264171] usb 3-1: USB disconnect, address 3
[ 3739.266455] eth1: unregister ‘rndis_host’ usb-0000:00:1d.1-1, RNDIS device
[ 3740.768050] usb 3-1: new full speed USB device using uhci_hcd and address 4
[ 3740.984481] usb 3-1: configuration #1 chosen from 1 choice
[ 3741.076627] rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0×00010202) failed, -47
[ 3741.084026] eth1: register ‘rndis_host’ at usb-0000:00:1d.1-1, RNDIS device, 00:00:00:00:00:00
I don’t know what the problem is with the RNDIS_MSG_QUERY failing with -47. However, I am not sure if this actually should cause a problem.
One thing I did not know yet, what is the kernel version you are running? (You can find this with uname -a)
Another thing, is there actually a device setup after you have connected the device. What is the output of ifconfig -a after you have connected the device?
Also important is that you have the device setup to use USB for the activesync. You can do so by going to Start > ActiveSync > Menu > Connections and ensure that the checkbox “sync all pcs via this connection” is checked and that the combobox below shows the USB connection.
Kind Regards,
Guido Diepen
These are the results you asked for:
hai@hai-laptop:~$ uname -a
Linux hai-laptop 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0d:56:35:55:cf
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2576 (2.5 KB) TX bytes:2576 (2.5 KB)
pan0 Link encap:Ethernet HWaddr 32:d0:da:05:02:43
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra0 Link encap:Ethernet HWaddr 00:14:5c:84:86:fa
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:5cff:fe84:86fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92024 errors:0 dropped:0 overruns:0 frame:0
TX packets:5556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20521428 (20.5 MB) TX bytes:948458 (948.4 KB)
I cannot see a device setup after connection: nothing changes on the screen.
Furthermore the device is setup as you reminded.
regards
hai
The eth1 does appear to be the device generated, also because the address used (169.254.2.2) is the default that is used by windows mobile. It appears that at least the initial connection is working and DHCP is used to provide the new interface with an address, which is good.
If you are getting this far already, the two most common things that could interfere are:
* NetworkManager
* Firewall
If you have a firewall running, please disable it for the time being. The problem is that the actual connection to the device is setup by your computer sending an UDP packed to the device, after which the device initiates the connection to your computer. Firewalls tend to not like this and disallow it.
If you have networkmanager running, it sees the new ethernet device and will start configuring it, this interferes with our synce-hal, which is trying to do at the configuring at the same time. If you have networkmanager, could you please disable it for the time being also?
Can you verify that you have a firewall running and/or networkmanager running? If you have one or both, please disable them and try connecting the device again.
Kind regards,
Guido Diepen
There was no firewall.
There is a networkmanager running. I disabled it, but did not see any changes.
In the manager i saw eth1 as cabled connection and I removed this one. But it didn’t help
hai@hai-laptop:~$ synce-pls
** Message: Device /org/freedesktop/Hal/devices/net_usb_device_3f0_1c1d_noserial_if0 not fully set in Hal, skipping
** Message: Odccm is not running, ignoring
synce-pls: Could not find configuration at path ‘(Default)’
the same problem as before
greetings
Hai
I don’t understand the part about deleting the eth1 from the network manager.
You have tried completely disconnecting the device, shutting down any running network manager (and verified no processes are running anymore for it) and connect the device again?
Furthermore, just to be sure, can you provide the output of iptables -L ?
Regards,
Guido Diepen
Indeed, I disconnected all. After taht I installed synce again (according http://www.synce.org/moin/SynceInstallation/Ubuntu/ModernDevice.
and then synce-pls gave the above results. I don’t see anymore eth1 in the manager.
hai@hai-laptop:~$ iptables -L
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
iptables v1.4.1.1: can’t initialize iptables table `filter’: Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
greets
hai
Sorry, I neede to use SUDO
hai@hai-laptop:~$ sudo iptables -L
[sudo] password for hai:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
OK. After you connect the device, there still is the eth1 device in the list of ifconfig -a though?
Furhtermore, can you verify that you checked the settings on your device with regards to setting the option in the ActiveSync menu on the device?
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0d:56:35:55:cf
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Indeed, I checked the settings on my device
Ok…. don’t understand why it is not working for you at the moment then. To get everything working with RNDIS, you might want to try sending emails to the synce users mailinglist.
For now, there is one more thing you can try, and that is setting the device to use the legacy way of connecting (PPP) instead of using the new way (RNDIS).
The old way was a PPP connection over serial over USB via the IPAQ driver. The new way, introduced with WM5, is using rndis_host to do ethernet over USB.
To test this, could you please disconnect the device and go on the device to Start > Settings > Connections > USB to PC
The actual contents of this screen appear to be different on different devices. Some cases have a checkbox that states: enable advanced network functionality. If you have this, please uncheck it. For safety, you might want to reboot the device. Other options are things like “use slower connection type” or “use legacy connection type”. If you don’t have any of the options above, please tell me exactly what you have in that screen.
After you have changed settings, please reboot the device. This might not be needed, but just in case
After that, try connecting the device again.
If it is still not working, please provide the contents of dmesg after you connected the device and again the output of synce-pls.
Regards,
Guido Diepen
I unchecked enable advanced network functionality and resetted my device.
I do see now in the left upper corner 8x an icon with WM_Hai1 Battery life: 100% (Charging), Free store: 41 % (75 Megabytes).
Thanks to you, we succeeded to make the connection. I will go on now with trying to sync evolution and my PDA.
Thank you very much.
Greetings
Hai
Today I tried again to sync my pda with evolution. The PDA tried to make a connection, but didn’t succed.
dmesg gave the following results (several times)
[ 536.350669] ipaq 3-1:1.0: device disconnected
[ 537.824058] usb 3-1: new full speed USB device using uhci_hcd and address 106
[ 538.042875] usb 3-1: configuration #1 chosen from 1 choice
[ 538.046047] ipaq 3-1:1.0: PocketPC PDA converter detected
[ 538.049091] usb 3-1: PocketPC PDA converter now attached to ttyUSB0
[ 539.957340] synce-trayicon[3472]: segfault at 2d ip b7c3d80a sp bff9f4d8 error 6 in librapi.so.2.0.0[b7c35000+13000]
[ 540.808081] usb 3-1: USB disconnect, address 106
[ 540.811180] ipaq ttyUSB0: PocketPC PDA converter now disconnected from ttyUSB0
ifconfig -a gave:
eth0 Link encap:Ethernet HWaddr 00:0d:56:35:55:cf
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pan0 Link encap:Ethernet HWaddr de:c5:b7:e1:7f:20
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra0 Link encap:Ethernet HWaddr 00:14:5c:84:86:fa
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:5cff:fe84:86fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9180 errors:0 dropped:0 overruns:0 frame:0
TX packets:731 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1773661 (1.7 MB) TX bytes:71969 (71.9 KB)
synce-pls gave:
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_9 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_8 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_7 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_6 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_5 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_4 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_3 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_2 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_1 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0_0 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1_if0_0_serial_usb_0 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_9 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_8 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_7 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_6 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_5 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_4 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_3 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_2 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_1 not fully set in Hal, skipping
** Message: Device /org/freedesktop/Hal/devices/usb_device_3f0_1016_noserial_if0_serial_usb_0_0 not fully set in Hal, skipping
Unable to get the “My Documents” path.
I thought that all would work well after our work yesterday.
Would you be so kind to help me once more?
Hai
Seeing the segfault in the log is not such a good thing.
Could you try disconnecting the device, connect it again and run the command synce-pls with additional argument:
synce-pls /
If this does not work, I think it is better to continue support via the SynCE users mailing list, because I am not familiar with the segfaults you are receiving when using PPP at the moment.
the same results.
thank you for your kindness.
I continu support via the SYNCE users mailing list
Hai