Re: [PD] [PD-announce] hidraw v0.1.0 released.
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: * Usage (page): 0x2 (0x1), making it a "Mouse" from the "Generic Desktop Page". * Usage (page): 0x1 (0x1), making it also a "Pointer" from the same 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] hidraw v0.1.0 released.
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-requ...@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-requ...@lists.iem.at You can reach the person managing the list at pd-list-ow...@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 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] hidraw v0.1.0 released.
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-requ...@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-requ...@lists.iem.at You can reach the person managing the list at pd-list-ow...@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
Re: [PD] [PD-announce] hidraw v0.1.0 released.
@Albert thanks for the explanation. You might be interested in looking at the sources of https://deken.puredata.info/results.html?name=hidio the .dek file is just a .zip. It looks that Martin have done all the update to [hid]. I had only checked on Windows and not building myself but the object works and it's supposed to compile on Linux and Mac. -- Mensaje telepatico asistido por maquinas. On 03/11/2022 06:11, Albert Rafetseder wrote: Thanks Lucas! What is the use case compared to existing [hid] externals? +1 thank you, a really cool project! My comparison AFAICT (from working on [hid] a little [1]): [hidraw] * is more cross-platform, including Windows * has a way more modern code base and build system * offers less "semantic" output -- in the sense that [hidraw] gives you event codes that you process in your patch yourself, whereas [hid] decodes many of the possible button presses and other events * uses an external library, libusb/hidabi, for its functions -- [hid] only uses OS functions and headers iirc Maybe we should prepare a wiki page or other documentation item at some point listing the different possibilities of working with USB HID devices in Pd. Best, Albert. [1] https://gitlab.com/albert/pd-hid (I'm currently working on using pd-lib-builder instead of the old bespoke makefile) best, P * Lucas Cordiviola [2022-11-03 02:04]: Hi all, The hidraw external reads raw bytes from hids. You can find it on Deken for most OSs. You have to build yourself for very old rasperry-pi's or new M1 or M2 macs. Sources are at https://github.com/Lucarda/pd-hidraw/releases/tag/v0.1.0 -- Deken Web: https://deken.puredata.info/results.html?name=hidraw -- Lucarda. -- Mensaje telepatico asistido por maquinas. ___ Pd-announce mailing list pd-annou...@lists.iem.at https://lists.puredata.info/listinfo/pd-announce ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> 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 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> 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
Re: [PD] [PD-announce] hidraw v0.1.0 released.
Great info Albert, Danke! http://puredata.info/docs might be the place to put the mentioned documentation perhaps. best, P * Albert Rafetseder [2022-11-03 10:22]: > > Thanks Lucas! What is the use case compared to existing [hid] externals? > > +1 thank you, a really cool project! > > My comparison AFAICT (from working on [hid] a little [1]): > > [hidraw] > * is more cross-platform, including Windows > * has a way more modern code base and build system > * offers less "semantic" output -- in the sense that [hidraw] gives you > event codes that you process in your patch yourself, whereas [hid] decodes > many of the possible button presses and other events > * uses an external library, libusb/hidabi, for its functions -- [hid] only > uses OS functions and headers iirc > > Maybe we should prepare a wiki page or other documentation item at some > point listing the different possibilities of working with USB HID devices in > Pd. > > Best, > Albert. > > [1] https://gitlab.com/albert/pd-hid (I'm currently working on using > pd-lib-builder instead of the old bespoke makefile) > > > > best, P > > > > * Lucas Cordiviola [2022-11-03 02:04]: > > > Hi all, > > > > > > The hidraw external reads raw bytes from hids. > > > > > > You can find it on Deken for most OSs. > > > > > > You have to build yourself for very old rasperry-pi's or new M1 or > > > M2 macs. > > > > > > Sources are at > > > https://github.com/Lucarda/pd-hidraw/releases/tag/v0.1.0 > > > > > > -- > > > Deken Web: https://deken.puredata.info/results.html?name=hidraw > > > > > > -- > > > > > > > > > Lucarda. > > > > > > -- > > > Mensaje telepatico asistido por maquinas. > > > > > > > > > > > > > > > ___ > > > Pd-announce mailing list > > > pd-annou...@lists.iem.at > > > https://lists.puredata.info/listinfo/pd-announce > > > > > > ___ > > > Pd-list@lists.iem.at mailing list > > > UNSUBSCRIBE and account-management -> > > > 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 > > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > 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
Re: [PD] [PD-announce] hidraw v0.1.0 released.
Thanks Lucas! What is the use case compared to existing [hid] externals? +1 thank you, a really cool project! My comparison AFAICT (from working on [hid] a little [1]): [hidraw] * is more cross-platform, including Windows * has a way more modern code base and build system * offers less "semantic" output -- in the sense that [hidraw] gives you event codes that you process in your patch yourself, whereas [hid] decodes many of the possible button presses and other events * uses an external library, libusb/hidabi, for its functions -- [hid] only uses OS functions and headers iirc Maybe we should prepare a wiki page or other documentation item at some point listing the different possibilities of working with USB HID devices in Pd. Best, Albert. [1] https://gitlab.com/albert/pd-hid (I'm currently working on using pd-lib-builder instead of the old bespoke makefile) best, P * Lucas Cordiviola [2022-11-03 02:04]: Hi all, The hidraw external reads raw bytes from hids. You can find it on Deken for most OSs. You have to build yourself for very old rasperry-pi's or new M1 or M2 macs. Sources are at https://github.com/Lucarda/pd-hidraw/releases/tag/v0.1.0 -- Deken Web: https://deken.puredata.info/results.html?name=hidraw -- Lucarda. -- Mensaje telepatico asistido por maquinas. ___ Pd-announce mailing list pd-annou...@lists.iem.at https://lists.puredata.info/listinfo/pd-announce ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> 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 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] hidraw v0.1.0 released.
Thanks Lucas! What is the use case compared to existing [hid] externals? best, P * Lucas Cordiviola [2022-11-03 02:04]: > Hi all, > > The hidraw external reads raw bytes from hids. > > You can find it on Deken for most OSs. > > You have to build yourself for very old rasperry-pi's or new M1 or M2 macs. > > Sources are at https://github.com/Lucarda/pd-hidraw/releases/tag/v0.1.0 > > -- > Deken Web: https://deken.puredata.info/results.html?name=hidraw > > -- > > > Lucarda. > > -- > Mensaje telepatico asistido por maquinas. > > > > > ___ > Pd-announce mailing list > pd-annou...@lists.iem.at > https://lists.puredata.info/listinfo/pd-announce > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > 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
[PD] [PD-announce] hidraw v0.1.0 released.
Hi all, The hidraw external reads raw bytes from hids. You can find it on Deken for most OSs. You have to build yourself for very old rasperry-pi's or new M1 or M2 macs. Sources are at https://github.com/Lucarda/pd-hidraw/releases/tag/v0.1.0 -- Deken Web: https://deken.puredata.info/results.html?name=hidraw -- Lucarda. -- Mensaje telepatico asistido por maquinas. ___ Pd-announce mailing list pd-annou...@lists.iem.at https://lists.puredata.info/listinfo/pd-announce ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list