Hello (sorry for previously bad subject line)
Just tested hidraw on my linux laptop (latest deken version)
Strangely, when I click [listdevice( message in help file, i get in console the same device listed 14 times :
Pd device enum: 1
device VID PID (shown in decimal notation): 1267 548
type: 04f3 0224
path: /dev/hidraw0
serial_number:
Manufacturer: ELAN
Product: Touchscreen
Release: 12
Interface: 0
Usage (page): 0x4 (0xd)
-----------
Pd device enum: 2
device VID PID (shown in decimal notation): 1267 548
(...)
-----------
Pd device enum: 14
device VID PID (shown in decimal notation): 1267 548
type: 04f3 0224
path: /dev/hidraw0
serial_number:
Manufacturer: ELAN
Product: Touchscreen
Release: 12
Interface: 0
Usage (page): 0x1 (0xff01)
On 04/11/2022 12:00, pd-list-request@lists.iem.at wrote:
Send Pd-list mailing list submissions to pd-list@lists.iem.at
To subscribe or unsubscribe via the World Wide Web, visit https://lists.puredata.info/listinfo/pd-list or, via email, send a message with subject or body 'help' to pd-list-request@lists.iem.at
You can reach the person managing the list at pd-list-owner@lists.iem.at
When replying, please edit your Subject line so it is more specific than "Re: Contents of Pd-list digest..."
Today's Topics:
1. Re: [PD-announce] hidraw v0.1.0 released. (Lucas Cordiviola)
Pd-list mailing list Pd-list@lists.iem.at to manage your subscription (including un-subscription) see https://lists.puredata.info/listinfo/pd-list
I've seen some same devices appear 2, 3 or 4 times. Not sure why is this happening but is related to https://github.com/libusb/hidapi. I just use their function to list devices.
eventually you can check that "Usage (page):" is different in each dup. not sure what this means or how to use it.
--
Mensaje telepatico asistido por maquinas.
On 08/11/2022 07:46, Jean-Yves Gratius wrote:
Hello (sorry for previously bad subject line)
Just tested hidraw on my linux laptop (latest deken version)
Strangely, when I click [listdevice( message in help file, i get in console the same device listed 14 times :
Pd device enum: 1 device VID PID (shown in decimal notation): 1267 548 type: 04f3 0224 path: /dev/hidraw0 serial_number: Manufacturer: ELAN Product: Touchscreen Release: 12 Interface: 0 Usage (page): 0x4 (0xd) ----------- Pd device enum: 2 device VID PID (shown in decimal notation): 1267 548 (...) ----------- Pd device enum: 14 device VID PID (shown in decimal notation): 1267 548 type: 04f3 0224 path: /dev/hidraw0 serial_number: Manufacturer: ELAN Product: Touchscreen Release: 12 Interface: 0 Usage (page): 0x1 (0xff01)
On 04/11/2022 12:00, pd-list-request@lists.iem.at wrote:
Send Pd-list mailing list submissions to pd-list@lists.iem.at
To subscribe or unsubscribe via the World Wide Web, visit https://lists.puredata.info/listinfo/pd-list or, via email, send a message with subject or body 'help' to pd-list-request@lists.iem.at
You can reach the person managing the list at pd-list-owner@lists.iem.at
When replying, please edit your Subject line so it is more specific than "Re: Contents of Pd-list digest..."
Today's Topics:
1. Re: [PD-announce] hidraw v0.1.0 released. (Lucas Cordiviola)
Pd-list mailing list Pd-list@lists.iem.at to manage your subscription (including un-subscription) see https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Just tested hidraw on my linux laptop (latest deken version)
Strangely, when I click [listdevice( message in help file, i get in console the same device listed 14 times :
(...)
I've seen some same devices appear 2, 3 or 4 times. Not sure why is this happening but is related to https://github.com/libusb/hidapi. I just use their function to list devices.
This should be fine. Indeed, ...
eventually you can check that "Usage (page):" is different in each dup. not sure what this means or how to use it.
Some explanatory snippets:
"""Usages are part of the HID Report descriptor and supply an application developer with information about what a control is actually measuring or reporting.""" (from https://www.usb.org/sites/default/files/hut1_3_0.pdf )
"""HID devices exchange data with the host computer using data bundles called “reports”. Each report is divided into “fields”, each of which can have one or more “usages”. In the hid-core, each one of these usages has a single signed 32 bit value.""" (from https://www.kernel.org/doc/html/v5.6/hid/hiddev.html#the-hiddev-api )
E.g., [hidraw] shows two entries for my USB mouse, with:
Page".
(My laptop's touchpad produces a dozen or so list entries as well. It's a Mouse, a Pointer, a Digitzer for Fingers, and Vendor-Defined ... :-)
By the way, Linux's lsusb -v
shows similar information to
[listdevices(--[hidraw]
Best regards, Albert.