HID sample

For general discussion related FlowStone
Post Reply
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

HID sample

Post by fixstuff555 »

Anyone else having trouble getting the HID sample to work?
Sean
Posts: 22
Joined: Sat Jun 29, 2013 7:47 pm

Re: HID sample

Post by Sean »

It works for me in so far as it identifies what is plugged in, but I can't work out what you actually do with it!
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: HID sample

Post by support »

fixstuff555 - the sample has an automatic connection facility which requires you to match both the name of the device and the manufacturer to get it to connect. Have you put these values in? (they must be exactly the same as they are shown in the string arrays that get output)

If this fails you could just strip the auto connect out and just use the primitive. The device is identified by its index.

Sean - the primitive sends and receives hex. It's quite low level and what you send and receive will depend on the device. For example, I have an XBox controller here and in the received hex string, byte 11 (index 10) tells me which of the X,Y,A,B buttons are pressed by setting the first four bits.
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: HID sample

Post by fixstuff555 »

Well, it doesn't show a list of anything plugged in, at the lowest level primitive. I also tried simply placing a new low level primitive on a new sheet, and didn't see any devices there as well. I haven't tried it yet on my other computer, but I'll see what I can find out then.
Asbjørn
Posts: 45
Joined: Thu Sep 16, 2010 11:51 am

Re: HID sample

Post by Asbjørn »

Works fine here, but I don't know what to do with the data. Too bad the forum doesn't allow higher resolution images.
Attachments
HID.jpg
HID.jpg (52.49 KiB) Viewed 16578 times
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: HID sample

Post by nix »

That's cool you got it working Asbjorn.
I've tried with a PS3 controller, it connects but sends no hex.
I know Jay has the same problem-
any chance of a fix Support?
I would love to have the PS3 controller up.
Cheers
I guess you can parse the data any way you want Asbjorn.
There is a hex converter in the toolbox, maybe it helps?
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: HID sample

Post by fixstuff555 »

Well, it works fine on the home computer. I couldn't figure out why it wouldn't work on the laptop though.
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: HID sample

Post by nix »

I'd like to bump this with the request for the PS3 controller fix.
Love to get this controller working.
Post Reply