Search found 64 matches

by fpp
Sat Sep 17, 2016 1:23 pm
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

Now how do I explain the meaning of Life to that crazy machine ?... :-) Well this one turned out to be simpler to fix than I expected : finding the impostor mouse in device manager, and manually updating the driver to HID keyboard, did the trick (and seems to survive plug/unplug cycles so far). So ...
by fpp
Sat Sep 17, 2016 12:42 pm
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

Curiouser and curiouser... what was supposed to a "quick experiment" is tuning into a saga, and spiralling down into Vodoo-land... USBlyzer is a nifty tool indeed, probably difficult to master but easy enough to see what's going in on. It just told me "how come" (but not "why" :-) ) the pyboard does...
by fpp
Sat Sep 17, 2016 11:08 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

@Dave :

Another thing that puzzles me is, where and how did you get the idea for bytearray(9) ?

The (admittedly few) examples I found, like the one I linked to earlier, all use 8...
And your code seems to work just as well with 8 too :-)
by fpp
Sat Sep 17, 2016 10:27 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

A tidbit of good news for a change :-) I brought the W10 laptop home to experiment on, as my home W7 PC still doesn't collaborate... It seems that the Windows-specific autorepeat can be solved easily after all : From the start I've been suspecting the two "tight" whille loops, and/or the rapid-fire ...
by fpp
Sat Sep 17, 2016 9:03 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

I don't really know in general, but in this specific case it's clear that the signals sent by the hardware are interpreted differently by the host OS : various Windows versions autorepeat, various Linux platforms don't...
by fpp
Fri Sep 16, 2016 5:20 pm
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

Thanks once more Dave for the useful hint, I'm downloading that, let's pray for a rainy weekend :-)
by fpp
Fri Sep 16, 2016 11:39 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

Sorry for the late report, but after entertaining high hopes all day long, yesterday evening I had some *very* mixed results... So I decided to bring the pyboard to the office this morning, and try it on other machines to compare on a larger sample. Here is how things stand right now : Last night I ...
by fpp
Thu Sep 15, 2016 8:45 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

...and quick but heartfelt thanks to Dave (again) for digging deeper !

Saw the post this morning but too late for even a quick test before leaving for work.

Will do this evening and report...
by fpp
Thu Sep 15, 2016 8:43 am
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

Dunno about OSX (but willing to bet), on Windows certainly yes : all the above testing was done on a Windows7 host, as that is the non-negociable target for what I'm tyring to do here...
by fpp
Wed Sep 14, 2016 6:55 pm
Forum: MicroPython pyboard
Topic: Basic USB HID test failing...
Replies: 46
Views: 34414

Re: Basic USB HID test failing...

As promised, here are two more data points for tonight on this subject : One : Running the same code as quoted above, but with only pyb.usb_mode('HID', hid=pyb.hid_keyboard)" in boot.py (instead of "VCP+HID"), and without the "prints" ... does not make it run any better (nothing sent to the PC activ...