dbus-Error while connecting

Asked by Peter Schuster

Hi Tuomas,

it was nice to find your project but on my systems it does not start well. I tried two systems, both ubuntu 10.04. On the first one I tried your repository, on the second one I used the source. The result was the same: Starting m210c-qt works well but the entire interface was disabled. A doubleclick on the displayed managed device results to

ERROR:dbus.proxies:Introspect error on :1.128:/org/codegrove/m210/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.133" (uid=1000 pid=5993 comm="/usr/bin/python2.6) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.128" (uid=0 pid=5436 comm="/usr/bin/python2.6))

If I start m210c-qt as root I get this error:

(process:6049): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed

and if I doubleclick on the device I get this error:

Traceback (most recent call last):
  File "/usr/bin/m210c-qt", line 109, in list_item_double_clicked
    self.daemon.connect(devpath)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist

Do you have an idea what's wrong?

Thanks

Peter

Question information

Language:
English Edit question
Status:
Answered
For:
m210 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
blackest_knight (blackest-knight) said :
#1

same problem can't connect

if this helps

DRIVER=generic-usb
HID_ID=0003:00000E20:00000101
HID_NAME=Pegasus Technologies Ltd. EN202 Ver 3.02
HID_PHYS=usb-0000:00:1d.0-1/input0
HID_UNIQ=0003-0003
MODALIAS=hid:b0003v00000E20p00000101

Revision history for this message
a (tuomasjjrasanen) said :
#2

Hi!

Nice to hear that you have found this project. I hope we can work out these problems for you.

Let me try to answer couple of your other questions first and then address the main connection problem.

There *shouldn't* be need to run m210c-qt as a root, because m210c-qt does not actually do anything serious work. It just acts as a graphical frontend for the work horse process, m210d. Just like m210c acts as a command line frontend. However, I can see the reason why you tried root privileges after the first error, I would have tried also :-).

The Gtk-error is out of my hands. It originates from Gtk or Qt library (or both) and It's probably due to the fact that m210c-qt is a Qt application and you are running it in the Kingdom of Gtk :P. However, as far as I know, it does not have any (visible) impact on anything. It can be ignored.

And then the main problem: device cannot be connected/managed:

The traceback indicates that the work horse process, m210d, is not running. It can be started with:

  sudo start m210d

However, it *should* have been started after a succesful installation (when installing from my repository or .deb file). And it's also started everytime the system is started. So in normal conditions, it should be running in the background waiting for commands from frontends without any need to think about it. You can check if it's running with:

  status m210d

If everything is ok, that command should print something like:

  m210d start/running, process 1005

Is m210d running? Are you still experiencing these same problems?

Revision history for this message
blackest_knight (blackest-knight) said :
#3

good morning

m210d start/running, process 931
the daemon was running already
with m210c-qt I see the device listed in managed devices but i seem unable to click the checkbox next to the device.

The pen seems to be working as a mouse even before finding this project I was able to draw something in gimp (once I selected a brush it seems to give absolute positioning.

I'm available all day so i will try anything you suggest.

Revision history for this message
blackest_knight (blackest-knight) said :
#4

Traceback (most recent call last):
  File "/usr/bin/m210c-qt", line 109, in list_item_double_clicked
    self.daemon.connect(devpath)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist

hmm i think that is slightly different

john@aspire-one:~$ m210c enable --size=1 --orient=N
m210c: error: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1 is not connected

moving the pen around brings up the mouse symbol and moves the onscreen mouse

Revision history for this message
blackest_knight (blackest-knight) said :
#5

just checked device and vendor on my silvercrest "DGP1000"

Bus 002 Device 002: ID 0e20:0101
So it is the same device (lidl €69.99) on offer yesterday in Ireland Aldi are doing a Medion version which might be a similar device but comes with a Pad.

Thanks for setting up the project, looking forward to getting this working :)

Revision history for this message
a (tuomasjjrasanen) said :
#6

Morning!

Did you try to double-click the checkbox? (Yes, I know, double-click is a minor usability glitch which will be addressed probably in the next release. Sorry for that.)

Please install m210c (command line tools) if you haven't already:

  sudo apt-get install m210c

What does the following commands print?

  m210c connect

  m210c info

  groups

p.s.
The pen works as a mouse, because it's handled by a generic driver in kernel.

Revision history for this message
Peter Schuster (pschuster-politikerclub) said :
#7

Hi,

thanks for your answers. FYI: I own the silvercrest device too, sold by LIDL in Germany.

The m210d was started automatically.

status m210d ->
m210d start/running, process 2953

m210c connect ->
Traceback (most recent call last):
  File "/usr/local/bin/m210c", line 333, in <module>
    main()
  File "/usr/local/bin/m210c", line 330, in main
    raise e
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist

m210c info ->
- /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.2

Peter

Revision history for this message
blackest_knight (blackest-knight) said :
#8

Traceback (most recent call last):
  File "/usr/bin/m210c-qt", line 109, in list_item_double_clicked
    self.daemon.connect(devpath)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist

is the result of the double click it appears clickable but no change when I click it

>m210c connect

Traceback (most recent call last):
  File "/usr/bin/m210c", line 333, in <module>
    main()
  File "/usr/bin/m210c", line 330, in main
    raise e
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist

john@aspire-one:~$ m210c info
- /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1

> groups
john adm dialout cdrom plugdev lpadmin admin sambashare vboxusers

hope this helps

Revision history for this message
blackest_knight (blackest-knight) said :
#9

did a bit of a dodgy move upgraded to 0.87-5 usbutils
https://launchpad.net/ubuntu/natty/i386/usbutils/0.87-5

lsusb now reports
Bus 003 Device 002: ID 0e20:0101 Pegasus Technologies Ltd. NoteTaker

Revision history for this message
blackest_knight (blackest-knight) said :
#10

lsusb -vvv for the device is

Bus 003 Device 002: ID 0e20:0101 Pegasus Technologies Ltd. NoteTaker
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x0e20 Pegasus Technologies Ltd.
  idProduct 0x0101 NoteTaker
  bcdDevice 3.03
  iManufacturer 1 Pegasus Technologies Ltd.
  iProduct 2 EN202 Ver 3.02
  iSerial 3 0003-0003
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 59
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 0 No Subclass
      bInterfaceProtocol 0 None
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 1
        ** UNRECOGNIZED: 09 21 10 01 00 01 22 24 00
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 0 No Subclass
      bInterfaceProtocol 0 None
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 1
        ** UNRECOGNIZED: 09 21 10 01 00 01 22 9d 00
Device Status: 0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Revision history for this message
blackest_knight (blackest-knight) said :
#11

Hi I've been fiddling round some more and Googling
and I found a couple of things which may help users although it will not help m210c or m210c-qt connect.

http://pegatech.blogspot.com/2009/01/communicating-with-tablet-mobile.html has a couple of useful links for developers

I found another project pegtool
http://groups.google.com/group/pegasus-digital-pen/browse_thread/thread/1eaab5e105f33a7a?hl=en#

http://code.google.com/p/pegtool/

there are a few dependencies with pegtool which need to be installed with synaptic detailed at the above link

/pegtool.py test
./pegtool.py info
./pegtool.py fetch flash.bin
./flashinfo.py flash.bin
./flash2svg.py flash.bin 0 > Page0.svg

I tried these commands out with success
test connected and disconnected
info gave some device info
fetch got the stored mobile pages 8 in total in my case
flashinfo gave me the details strokes and points of each page
flash2svg allowed me to tediously create svg files so some of the pages were readable by image viewer.

i retried m210c and m210c-qt and still not connecting.
at least its possible to work as a mouse and work in mobile mode.
I have also tried running the supplied software in Virtualbox with XP guest and although the device is recognised it has a problem and can't start under device manager. So the notetaker app doesn't connect there is a thread or 2 in virtualbox forums. I think the data can be imported so perhaps the handwriting software might decode my handwriting.

Revision history for this message
Thawn (webmaster-korten-privat) said :
#12

I am seeing the exact same problem (Method "connect" with signature "s" on interface "org.codegrove.m210.daemon" doesn't exist) when trying to run 'm210c connect' on the command line. I am also on ubuntu 10.4. lsusb -v gives (excerpt):
  idVendor 0x0e20 Pegasus Technologies Ltd.
  idProduct 0x0101 NoteTaker
  bcdDevice 3.03
The device is a SilverCrest DGP1000-P sold by Lidl in germany. It is connected to a usb 1.1 port.
If I can help with any more information, please let me know.

Revision history for this message
blackest_knight (blackest-knight) said :
#13

Is this just a problem with the Silvercrest devices? that have recently been on sale in Lidl or do other labelled versions have the same problem?

Granted there are 3 of us with the same model with issues but it's not surprising being as they are sold as part of a limited stock special offer and pretty cheap to be fair.

Revision history for this message
blackest_knight (blackest-knight) said :
#14

Just found that myscript notes 2.2 will run under wine which brings us handwriting recognition without windows :)

I just bought the medion notepad from aldi for €69.99 too. Considering that the mynotes software costs €60 that is amazing value. It saves notes in top format and access to the drives is as a mass storage device.

Revision history for this message
blackest_knight (blackest-knight) said :
#15

Thanks for the irc session tuos, we have a solution.

https://docs.google.com/Doc?id=dqswcdk_7f7h4n2db The 3rd byte representing the product id has changed from 28 to 42. in the protocol listed.

sudo gedit /usr/share/pyshared/m210/pegatech.py

line 208 should read
if (response[:3] != '\\x80\\xa9\\x42' for the silvercrest devices rather than if (response[:3] != '\\x80\\xa9\\x28'

sudo gedit /usr/share/pyshared/m210/pegatech.py

I found after deleting pegatech.pyc and rebooting the device was connecting and i could browse the mobile notes I had made.

I think the silvercrest device hardware has a single mouse button while the m210 has 2 but its close enough.

I have tested with both m210c and m210c-qt and so far it is looking good.

Revision history for this message
a (tuomasjjrasanen) said :
#16

Yes and thank you blackest_knight! It would not have been possible to solve this problem without you. I'm sure other Silvercrest owners will greatly appreciate your contribution.

I'm going to add product_id = 0x28 (Silvercrest) to the list of acceptable devices in the next release (0.5). Until then, please inform me if problems arise.

And as always, patches and new ideas are very welcome.

Revision history for this message
blackest_knight (blackest-knight) said :
#17

erm product_id = 0x42 isn't it the new code ?
any way glad to help although it wasn't that much of a contribution just trying what you told me to do and reporting back.

I do have a suggestion to add conversion to waltop or.top it is a pretty simple format which would work with myscript notes under wine. unfortunately svg isn't supported its a constant header no file length or check sums to calculate then 6 bytes of x y and something else which is usually 13 14 15 or 16 followed by 87 or maybe 0

Revision history for this message
blackest_knight (blackest-knight) said :
#18

erm product_id = 0x42 isn't it the new code ?
any way glad to help although it wasn't that much of a contribution just trying what you told me to do and reporting back.

I do have a suggestion to add conversion to waltop or.top it is a pretty simple format which would work with myscript notes under wine. unfortunately svg isn't supported its a constant header no file length or check sums to calculate then 6 bytes of x y and something else which is usually 13 14 15 or 16 followed by 87 or maybe 0

Can you help with this problem?

Provide an answer of your own, or ask Peter Schuster for more information if necessary.

To post a message you must log in.