Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folio: DELETE_OLDEST_FILE on already disconnected device #282

Open
dkrefft opened this issue Aug 1, 2021 · 0 comments
Open

Folio: DELETE_OLDEST_FILE on already disconnected device #282

dkrefft opened this issue Aug 1, 2021 · 0 comments

Comments

@dkrefft
Copy link

dkrefft commented Aug 1, 2021

Hi,

I'm using tuhi-dev (main branch) with my Wacom Folio to sync the drawings. Everything works so far until the point when the drawing should be deleted. The the following error occurs.

18:26:47 DEBUG: tuhi: Drawing received
18:26:47 DEBUG: tuhi.config: F1:5F:E2:D6:2A:91: adding new drawing, timestamp 1624471150
18:27:00 DEBUG: tuhi.fw: command: DELETE_OLDEST_FILE
18:27:00 DEBUG: tuhi.fw: F1:5F:E2:D6:2A:91: TX NORDIC --> ca / 01 / 00
18:27:00 DEBUG: tuhi.fw: sessionid: f9478c8ae379407685d47ad2a1809d5b-2
18:27:00 INFO: tuhi.ble.F1:5F:E2:D6:2A:91: Device is already disconnected
18:27:00 DEBUG: tuhi: F1:5F:E2:D6:2A:91: disconnected
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 978, in _run
    self._wacom_protocol.retrieve_data()
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 779, in retrieve_data
    if not self.read_offline_data():
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 659, in read_offline_data
    self.delete_oldest_file()
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 589, in delete_oldest_file
    self.p.execute(Interactions.DELETE_OLDEST_FILE)
  File "/home/dak/dev/tuhi/tuhi/protocol.py", line 285, in execute
    return self.get(key, *args, **kwargs).execute()
  File "/home/dak/dev/tuhi/tuhi/protocol.py", line 547, in execute
    self.reply = self._callback(request=self.request if self.requires_request else None,
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 316, in nordic_data_exchange
    self.send_nordic_command(request)
  File "/home/dak/dev/tuhi/tuhi/wacom.py", line 300, in send_nordic_command
    chrc.write_value(data)
  File "/home/dak/dev/tuhi/tuhi/ble.py", line 74, in write_value
    return self.interface.WriteValue('(aya{sv})', data, {})
  File "/usr/lib/python3.9/site-packages/gi/overrides/Gio.py", line 349, in __call__
    result = self.dbus_proxy.call_sync(self.method_name, arg_variant,
gi.repository.GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Method "WriteValue" with signature "aya{sv}" on interface "org.bluez.GattCharacteristic1" doesn't exist
 (41)

If that helps these are the current device information

17:26:11 DEBUG: tuhi: F1:5F:E2:D6:2A:91: connected for DeviceMode.REGISTER^M
17:26:11 DEBUG: tuhi.wacom: Bamboo Folio is using protocol SLATE^M 
17:26:11 DEBUG: tuhi.wacom: F1:5F:E2:D6:2A:91: starting for mode REGISTER^M
17:26:11 DEBUG: tuhi.wacom: F1:5F:E2:D6:2A:91: registering device, assigned e412f31dd004^M
17:26:11 DEBUG: tuhi.fw: command: REGISTER_PRESS_BUTTON^M
17:26:11 DEBUG: tuhi.fw: F1:5F:E2:D6:2A:91: TX NORDIC --> e7 / 06 / e4 12 f3 1d d0 04^M 
17:26:11 DEBUG: tuhi.fw: sessionid: 32735a5f71294a1ab08a02175001e0ed-1^M
17:26:11 DEBUG: tuhi.fw: F1:5F:E2:D6:2A:91: RX SYSEVENT <-- b'ef0100'^M
17:26:11 DEBUG: tuhi.fw: sessionid: 32735a5f71294a1ab08a02175001e0ed-2^M
17:26:11 INFO: tuhi.wacom: Press the button now to confirm^M
17:26:11 DEBUG: tuhi.dbus: Sending ButtonPressRequired signal^M
17:26:11 INFO: tuhi.dbusclient: F1:5F:E2:D6:2A:91 - Bamboo Folio: Press button on device now^M
17:26:14 DEBUG: tuhi.fw: F1:5F:E2:D6:2A:91: RX NORDIC <-- e4 01 00^M 

If you have any changes in code you think it is worth a try. Just drop me a message if I can support here. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant