VM167 K8055 and Python

Is there any drivers I can use for the VM167 and K8055 with Python on a Raspberry Pi?

Is the libusb-0.1 available on the Raspberry-PI?

Looking around a bit it seems like libusb is available on the PI.

While I don’t have a ready solution for you, I am sure it can be done with a little bit of effort. I have a github clone of pylibusb and it is rather simple to access a K8055(N) with that from FreeBSD or Linux. The same should be possible from a PI.

Since this (accessing a K8055N via ctypes->libusb) is something I had on my TODO list anyway, I’m in the process of building a python-k8055n module. It should be up on github shortly.

Regards,
Jan

Content withdrawn!

The py8055n module/repository will be removed. Instead I will add these capabilities to the Open8055 Python access module.

The reason is that I finally figured out how to support backward compatibility with K8055. I am in the process of teaching the Open8055 firmware to appear as a K8055, with the access library being able to switch it to the 32-byte packet size Open8055-mode. Like the K8055D.DLL can switch the K8055N to the new mode (only that it will do this via multiple USB device configurations).

Stay tuned,
Jan

Hi,

What is the progress for the K8055?

And what about the VM167?

There is progress. I’ve started a new python module that can talk all 3 protocols. The original K8055, “new” K8055N and also the Open8055. It took a little longer because this required changes to the Open8055 firmware. That firmware now supports multiple “configurations”. It would appear by default as a K8055, so existing software can still work with it. An Open8055 client can switch it to the second configuration where it communicates with larger HID packets.

The module is pylibusb based, which in turn uses ctypes, so there are no binaries to install, just pure Python scripts. It currently only works for Linux/FreeBSD, but I understand that you aren’t interested in Windows anyway.

I need a few finishing touches. A download should be ready early next week.

I don’t have a VM167 and from other threads on this forum I know that it needs a driver and is not compatible with the K8055/K8055N. So you’re on your own for that one.

Regards,
Jan

Hi again,

you can find Python software and installation instructions here: jannicash.info/open8055/tutorial1.html

The instructions work for Linux, so you may want to get this working there first. There may need to be something added to the Python modules to work on the Raspberry PI depending on what sys.platform returns on that thing (I don’t know that). Since the PI is running some Linux itself, it may be something like “linux2”. If the string starts with “linux”, then everything should work out of the box.

Regards,
Jan

Tankyou :slight_smile:

You are welcome.

Please let me know if this actually works on the PI.

Regards,
Jan