Skip to content

Provide a native driver for Hims displays #7459

@LeonarddeR

Description

@LeonarddeR

I've started investigating some more details for a native driver for Hims devices today. This should fix #6063 and #6086.

One major problem is that Hims devices use a custom USB driver, which presents itself as a generic USB serial. However, it is neither native serial nor HID. I've tried to sniff the data sent from and to the device using a free tool called Device Monitoring Studio or Free USB Analyzer, and I'm perfectly able to interpred the data, so that's at least one positive thing.

I started with creating a new class called Usb in the hwIo module, which is actually a copy of the Hid class excluding the Hid specific part (i.e. the Hid __init function in hwIo.py except for line 244--256. According to the USB sniffer, it seems output packages are at least 10 bytes in size for the current driver, incoming packages seem to be 4 bytes or more. So, I create a new Usb object with the proper path, onReceiveSize=4 and writeSize=10, but writing using this object doesn't seem to deliver anything to the device, that is, the USB sniffer doesn't detect any traffic.

@jcsteh: I'd like to have your advice on this. Is this the proper way to pump data into a device, or should I set up the file handle differently for example?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions