Search found 97 matches

by arpruss
Thu Dec 14, 2017 1:12 am
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

One certainly could add it. I don't want to do it myself, as I don't have a use case myself.
by arpruss
Wed Dec 13, 2017 9:28 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

Output reports now work. I didn't really have to do anything special once I fixed the descriptors: under the hood, they work just like feature reports. I am learning a bit about USB as I go along.
by arpruss
Wed Dec 13, 2017 7:32 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

Now it works under Android and in the Ubuntu VM. The problem was in a descriptor I grabbed from the libarra111 fork. Yes!! Keyboard now works under linux. But my changes broke feature reports on Windows. I made some more changes and it now seems to work under both Windows and Android. Can you check...
by arpruss
Wed Dec 13, 2017 4:38 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

What I do need help with is figuring out how to make HID output (host-to-device) reports work. HID feature reports work fine in both directions. Of course, it's not really needed, except maybe for speed and efficiency. Everything you can do with an output report you can do with a feature report, I t...
by arpruss
Wed Dec 13, 2017 1:04 am
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

Now it works under Android and in the Ubuntu VM. The problem was in a descriptor I grabbed from the libarra111 fork.
by arpruss
Wed Dec 13, 2017 1:02 am
Forum: Working / ported libraries
Topic: USB HID
Replies: 159
Views: 19191

Re: USB HID

Here's a bug I found in the fork: some iinterfaces entries are out of range of the N_STRING_DESCRIPTORS. Changing them to 0 should fix this. This is in usb_device.c. I didn't actually try your fork, but when I had the same bug in my USBHID library, the device wouldn't work either with my Android pho...
by arpruss
Tue Dec 12, 2017 10:57 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

I've been trying this with an Ubuntu VM on Windows. It works when I turn off the serial in the code (#undef SERIAL_COMPOSITE in composite_usb.h in the current code version), but with serial AND keyboard, it fails.
by arpruss
Tue Dec 12, 2017 8:44 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

You might also try the solution here:
https://aweirdimagination.net/2015/04/0 ... id-errors/

Also, you can send or post the lsusb output, like in this post: https://bbs.archlinux.org/viewtopic.php ... 2#p1578802
by arpruss
Tue Dec 12, 2017 8:27 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

Just downloaded master branch. The example for twojoysticks does not compile. Sorry: I changed the API without changing the example. It's fixed now. Tried usb keyboard. USB HID is detected but can't be configured. That's not good. I've only tested on Windows. 1. Do you know if the libarra111 USB co...
by arpruss
Tue Dec 12, 2017 5:54 pm
Forum: Working / ported libraries
Topic: USB HID / USB MIDI as libraries
Replies: 51
Views: 597

Re: USB HID / USB MIDI as libraries

I took a lot of code from libarra111's branch and now the library implements a composite serial / HID device, with reset functionality using the standard upload tools. There is rather more flash/SRAM used because of the serial support, but the serial support should be worth it. The only thing I coul...