Git Product home page Git Product logo

boogiesync-tablet's People

Contributors

fphillips avatar jbedo avatar jirkamarsik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boogiesync-tablet's Issues

can't get into digitizer via blueeeeeeeeeeeeeeeeeeeeeeeeeee tooth! Can not use!!!

what's wrong with my pad i can get mouse moved with usb insert with using usbdriver.py

python2 can get good resoponse but python3 not , but python2 with sudo command still failed ,but the python3 with sudo command can get mouse moved

cc@CC:~/boogiesync-tablet-master$ python blue.py
No device specified.  Searching all nearby bluetooth devices for
the boogie board sync input
connecting to "HID over SPP" on 00:17:E9:88:AA:D2
connected
good response
Traceback (most recent call last):
  File "blue.py", line 69, in <module>
    ui = UInput(cap, name='boogie-board-sync')
  File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in __init__
    _uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument
cc@CC:~/boogiesync-tablet-master$ python3 blue.py
No device specified.  Searching all nearby bluetooth devices for
the boogie board sync input
couldn't find the boogie board sync
cc@CC:~/boogiesync-tablet-master$ python3 blue.py
No device specified.  Searching all nearby bluetooth devices for
the boogie board sync input
connecting to "HID over SPP" on 00:17:E9:88:AA:D2
connected


cc@CC:~/boogiesync-tablet-master$ python usb-driver.py
Traceback (most recent call last):
  File "usb-driver.py", line 10, in <module>
    if dev.is_kernel_driver_active(1):
  File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 1061, in is_kernel_driver_active
    self._ctx.managed_open()
  File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 102, in wrapper
    return f(self, *args, **kwargs)
  File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 120, in managed_open
    self.handle = self.backend.open_device(self.dev)
  File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 786, in open_device
    return _DeviceHandle(dev)
  File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 643, in __init__
    _check(_lib.libusb_open(self.devid, byref(self.handle)))
  File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
cc@CC:~/boogiesync-tablet-master$ python3 usb-driver.py
Traceback (most recent call last):
  File "usb-driver.py", line 10, in <module>
    if dev.is_kernel_driver_active(1):
  File "/usr/local/lib/python3.5/dist-packages/usb/core.py", line 1061, in is_kernel_driver_active
    self._ctx.managed_open()
  File "/usr/local/lib/python3.5/dist-packages/usb/core.py", line 102, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/usb/core.py", line 120, in managed_open
    self.handle = self.backend.open_device(self.dev)
  File "/usr/local/lib/python3.5/dist-packages/usb/backend/libusb1.py", line 786, in open_device
    return _DeviceHandle(dev)
  File "/usr/local/lib/python3.5/dist-packages/usb/backend/libusb1.py", line 643, in __init__
    _check(_lib.libusb_open(self.devid, byref(self.handle)))
  File "/usr/local/lib/python3.5/dist-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
cc@CC:~/boogiesync-tablet-master$ sudo python usb-driver.py
[sudo] password for cc: 
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
Payload sent
Traceback (most recent call last):
  File "usb-driver.py", line 57, in <module>
    ui = UInput(cap, name='boogie-board-sync-pen')
  File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in __init__
    _uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument
cc@CC:~/boogiesync-tablet-master$ sudo python3 usb-driver.py
Payload sent
^Ccc@CC:~/boogiesync-tablet-master$ 

Would you be willing to put in a license for the source code ?

Hi,
I just saw your repo and would be interested in playing around with the code and seeing if I could use it as well, but I was curious about its license. I don't want to assume anything. Would you be willing to put the license for this code ?

Thanks for your work !

Knocking the Sync 9.7 into digitizer mode

Hey,

Like the other guy, I'm having trouble sending they payload that apparently knocks the device into digitizer mode. Connected by USB on Arch linux. Here's what I can do:

  • Successfully find the device
  • Successfully detach the kernel driver on both interfaces
  • Successfully claim both interfaces

However the ctrl_transfer command to send the payload always returns "usb.core.USBError: [Errno 110] Operation timed out", even if I set the timeout to ridiculously long.

I've a few questions that might help find a fix:

  • I've capped my bt traffic when going to live mode on the android phone app, as you suggested in another reply. When I hexdump and grep it, I can't find the hex sequence in your "usb.py" script "05 05 00 03" anywhere, in either my log or that of the other dude who posted an issue. I can find "05 05 00 03", which is the payload sequence that appears in your "blue.py" file. Is this a bug?
  • How did you arrive at the 4 parameters that precede your payload in the ctrl_transfer request? As I understand it, the norm is for bmRequestType to be 0x40 and bmRequest to be 0x04 for multibyte messages sent to devices over usb. That doesn't work either, so just hoping to get some insight here.

Thanks for your help and for open sourcing this handy script,

MC

IOError: [Errno 22] Invalid argument

Dear Jbedo,
thanks a lot for your work. I am not the Python crack so maybe I am doing something wrong, but I get the message:

connected
good response
Traceback (most recent call last):
File "blue.py", line 68, in
ui = UInput(cap, name='boogie-board-sync')
File "/usr/lib/python2.7/dist-packages/evdev/uinput.py", line 83, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

When I look at the script it only has { UInput(cap, name='boogie-board-sync') } two parameters and not seven as it mentions. So I guess it is something with that? I am running it with Python2, because my pybluez only works with that version and I cannot get one for Python3 running.

Cheers
Shagu

can not knock into digitizer mode with bluetooth

#8

jbedo :
ok that's pretty interesting, because with python 2 it seems to send the payload and get a good response, but die trying to create a uinput device. Are you using python 2 or 3 with usb?

cc@CC:~/boogiesync-tablet-master$ sudo python usb-driver.py

[sudo] password for cc:
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
Payload sent
Traceback (most recent call last):
File "usb-driver.py", line 57, in
ui = UInput(cap, name='boogie-board-sync-pen')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

cc@CC:~/boogiesync-tablet-master$ sudo python3 usb-driver.py
Payload sent

with python3 i curser moved while pen moved , btw Q: Do the sudo is a must while trying to connect by using usb Q2: what about bluetooth(why bluetooth doesn't need sudo command???)

IOError: [Errno 22] Invalid argument



cc@CC:~$ pip install --pre pyusb
Collecting pyusb
Downloading PyUSB-1.0.0.tar.gz (52kB)
100% |████████████████████████████████| 61kB 228kB/s
Building wheels for collected packages: pyusb
Running setup.py bdist_wheel for pyusb ... done
Stored in directory: /home/cc/.cache/pip/wheels/18/b0/b8/83d67cc7a3b50866f908ca1104b553f7807e1e767ddf373427
Successfully built pyusb
Installing collected packages: pyusb
Successfully installed pyusb
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cc@CC:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 684kB/s
Installing collected packages: pip
Successfully installed pip-9.0.1
cc@CC:~$ pip install --pre pyusb
Requirement already satisfied: pyusb in ./.local/lib/python2.7/site-packages
cc@CC:~$ pip install --pre evdev
Collecting evdev
Downloading evdev-0.6.4.tar.gz
Building wheels for collected packages: evdev
Running setup.py bdist_wheel for evdev ... done
Stored in directory: /home/cc/.cache/pip/wheels/64/4e/61/20afc41b2f932f4e520fff9f8d70c063eab38c21dc0e5d9d62
Successfully built evdev
Installing collected packages: evdev
Exception:
Traceback (most recent call last):
File "/home/cc/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/cc/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/cc/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/cc/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/cc/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/cc/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/cc/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/home/cc/.local/lib/python2.7/site-packages/pip/utils/init.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/evdev-0.6.4.dist-info'
cc@CC:~$ sudo pip install --pre evdev
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting evdev
Installing collected packages: evdev
Successfully installed evdev-0.6.4
cc@CC:~$ sudo pip install --pre evdev
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: evdev in /usr/local/lib/python2.7/dist-packages
cc@CC:~$ sudo pip install pybluez
[sudo] password for cc: 
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pybluez
  Downloading PyBluez-0.22.zip (109kB)
    100% |████████████████████████████████| 112kB 34kB/s 
Installing collected packages: pybluez
  Running setup.py install for pybluez ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b5_THW/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-eW5_bR-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/ble.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/btcommon.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/msbt.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/widcomm.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/bluez.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/__init__.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/osx.py -> build/lib.linux-x86_64-2.7/bluetooth
    running build_ext
    building 'bluetooth._bluetooth' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/bluez
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-x86_64-2.7/bluez/btmodule.o
    In file included from bluez/btmodule.c:20:0:
    bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b5_THW/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-eW5_bR-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b5_THW/pybluez/
cc@CC:~$ sudo pip install --pre pybluez
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pybluez
  Downloading PyBluez-0.22.zip (109kB)
    100% |████████████████████████████████| 112kB 174kB/s 
Installing collected packages: pybluez
  Running setup.py install for pybluez ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HA3wRf/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-IpLX6l-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/ble.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/btcommon.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/msbt.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/widcomm.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/bluez.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/__init__.py -> build/lib.linux-x86_64-2.7/bluetooth
    copying bluetooth/osx.py -> build/lib.linux-x86_64-2.7/bluetooth
    running build_ext
    building 'bluetooth._bluetooth' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/bluez
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-x86_64-2.7/bluez/btmodule.o
    In file included from bluez/btmodule.c:20:0:
    bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HA3wRf/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-IpLX6l-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-HA3wRf/pybluez/
cc@CC:~$ sudo apt-get install libbluetooth-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
  linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libbluetooth-dev
0 upgraded, 1 newly installed, 0 to remove and 75 not upgraded.
Need to get 145 kB of archives.
After this operation, 570 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libbluetooth-dev amd64 5.37-0ubuntu5 [145 kB]
Fetched 145 kB in 2s (50.9 kB/s)                          
Selecting previously unselected package libbluetooth-dev.
(Reading database ... 315080 files and directories currently installed.)
Preparing to unpack .../libbluetooth-dev_5.37-0ubuntu5_amd64.deb ...
Unpacking libbluetooth-dev (5.37-0ubuntu5) ...
Setting up libbluetooth-dev (5.37-0ubuntu5) ...
cc@CC:~$ sudo pip install pybluez
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pybluez
  Downloading PyBluez-0.22.zip (109kB)
    100% |████████████████████████████████| 112kB 353kB/s 
Installing collected packages: pybluez
  Running setup.py install for pybluez ... done
Successfully installed pybluez-0.22
cc@CC:~$ sudo pip install --pre pybluez
The directory '/home/cc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pybluez in /usr/local/lib/python2.7/dist-packages

cc@CC:~/boogiesync-tablet-master$ ./usb-driver.py
Traceback (most recent call last):
File "./usb-driver.py", line 10, in
if dev.is_kernel_driver_active(1):
File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 1061, in is_kernel_driver_active
self._ctx.managed_open()
File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 102, in wrapper
return f(self, *args, **kwargs)
File "/home/cc/.local/lib/python2.7/site-packages/usb/core.py", line 120, in managed_open
self.handle = self.backend.open_device(self.dev)
File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 786, in open_device
return _DeviceHandle(dev)
File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 643, in init
_check(_lib.libusb_open(self.devid, byref(self.handle)))
File "/home/cc/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)

cc@CC:~/boogiesync-tablet-master$ sudo ./usb-driver.py
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
Payload sent
Traceback (most recent call last):
File "./usb-driver.py", line 57, in
ui = UInput(cap, name='boogie-board-sync-pen')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

cc@CC:~/boogiesync-tablet-master$ ./blue.py 00:17:E9:88:AA:D2
Searching for boogie board sync on 00:17:E9:88:AA:D2
connecting to "HID over SPP" on 00:17:E9:88:AA:D2
connected
good response
Traceback (most recent call last):
File "./blue.py", line 69, in
ui = UInput(cap, name='boogie-board-sync')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

cc@CC:/boogiesync-tablet-master$ sudo ./blue.py 00:17:E9:88:AA:D2
[sudo] password for cc:
Searching for boogie board sync on 00:17:E9:88:AA:D2
connecting to "HID over SPP" on 00:17:E9:88:AA:D2
connected
good response
Traceback (most recent call last):
File "./blue.py", line 69, in
ui = UInput(cap, name='boogie-board-sync')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument
cc@CC:/boogiesync-tablet-master$

ImportError: No module named evdev

cc@CC:~/boogiesync-tablet-master$ ./blue.py 00:17:E9:88:AA:D2
Traceback (most recent call last):
File "./blue.py", line 3, in
from evdev import UInput, AbsInfo, ecodes as e
ImportError: No module named evdev

Turn this into a more regular driver

Preferably with some configurability, and redirecting what events regarding the device means.

I don't really demand this, i mean i know you probably did this in your free time. But maybe leave this issue open? Maybe someone will come across.. volunteering some information about how to write a driver, which C library functions to use might be helpful..

Can you give some more information?

I am using boogieboard sync on linux arch.
I connected to the device and now what?? their is a program that use this option?
cause the mouse does not move..

I think that the blue.py cant go over line data = sock.recv(1024) .
thanks,

Issue both with bluetooth and usb...

---with usb
payload transfer failed, retrying
payload transfer failed, retrying
payload transfer failed, retrying
...
payload transfer failed, retrying

File "usb-driver.py", line 57, in
ui = UInput(cap, name='boogie-board-sync-pen')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

--- with bluetooth
Searching for boogie board sync on A0:E6:F8:A0:9B:CA
connecting to "HID over SPP" on A0:E6:F8:A0:9B:CA
connected
good response
Traceback (most recent call last):
File "blue.py", line 69, in
ui = UInput(cap, name='boogie-board-sync')
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 136, in init
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument

hope it will help

`usb-driver.py` either left mouse button down or up?

Presumably blue.py does the same, because this aspect of the code is the same.(but i haven't gotten bluetooth to pair)

When you start it the left mouse button is down, clicking it once with something else, the boogieboard does not affect the button down/up anymore.

Ideally you would be able to move the mouse by hovering and click pushing down. Perhaps with some config allowing a pressure threshhold. (Maybe stdout could be an option too)

So tried xev,(after trying gimp) it doesn't seem to produce any events, not even motionevents! But the mouse does move. (and generates events exitting/entering the window)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.