[PD] HID Crashing

Kyle Klipowicz kyleklip at gmail.com
Sun Apr 8 17:21:34 CEST 2007


Here is what the Pd window gives me for the print method in hid. It
appears to detect the sidewinder (my gamepad) in all its glory, but
the buttons do not register when pressed. I tried using the test
option in the help patch to no avail as well. The gamepad should be
fine, since I was using it with hid last year, and it works with other
applications.

On my system with the below configuration, devices listed 5 and above crash Pd.

Hope that helps!

~Kyle

[hid] 0.7, written by Hans-Christoph Steiner <hans at eds.org>
	compiled on Jan  5 2007 at 04:56:30
first_argument == &s_
[hid] setting device# to 0
first_argument == &s_
info: open 1
info: device 1
first_argument == &s_
info: open 1
info: device 2
first_argument == &s_
info: open 1
info: device 0
first_argument == &s_
info: open 1
info: device 1
first_argument == &s_
info: open 1
info: device 2
first_argument == &s_
info: open 1
info: device 3

__________________________________________________
Device 0: 'Apple' 'Keyboard' version 0 @ location 0x02c30000
	device type: keyboard	usage page: 0x0001	usage: 0x0006
	vendorID: 0x05ac	productID: 0x0000
__________________________________________________
Device 1: 'Apple' 'Trackpad' version 0 @ location 0x03010000
	device type: mouse	usage page: 0x0001	usage: 0x0002
	vendorID: 0x05ac	productID: 0x0000
__________________________________________________
Device 2: 'Logitech' 'USB Mouse' version 1552 @ location 0x1b100000
	device type: mouse	usage page: 0x0001	usage: 0x0002
	vendorID: 0x046d	productID: 0xc00c
__________________________________________________
Device 3: 'Microsoft' 'SideWinder Game Pad Pro USB version 1.0'
version 258 @ location 0x3b100000
	device type: gamepad	usage page: 0x0001	usage: 0x0005
	vendorID: 0x045e	productID: 0x0026

[hid] found 12 elements:

  TYPE	CODE	#	EVENT NAME
-----------------------------------------------------------
  abs	abs_x	0	Miscellaneous Input, X-Axis
  abs	abs_y	0	Miscellaneous Input, Y-Axis
  key	btn_0	0	Button Input, Button #1
  key	btn_1	0	Button Input, Button #2
  key	btn_2	0	Button Input, Button #3
  key	btn_3	0	Button Input, Button #4
  key	btn_4	0	Button Input, Button #5
  key	btn_5	0	Button Input, Button #6
  key	btn_6	0	Button Input, Button #7
  key	btn_7	0	Button Input, Button #8
  key	btn_8	0	Button Input, Button #9
  0xff01	0x0030	0	Button Input, Vendor Defined Usage 0x30

On 4/7/07, Hans-Christoph Steiner <hans at eds.org> wrote:
>
> On Apr 6, 2007, at 10:21 PM, Kyle Klipowicz wrote:
>
> > I have also been having HID problems lately on OSX Tiger w/ the latest
> > test build of extended. It crashes when trying to open higher device
> > numbers.
>
> Like which device numbers?  Could you send more info, like a
> transcript of the stuff in the Pd window?
>
> > Also, only the analog d-pad for my game pad works, but not the
> > buttons. The game pad works with snes9x for gaming, so it must be HID.
> > It used to work on earlier builds, so it may be something with the
> > latest version.
>
> This is actually most likely to be a shoddy USB HID descriptor in the
> USB device, which what the OS uses to know what data to expect from
> the device.  If the OS can't get the data, then [hid] can't either.
>
> What do you get in the Pd window when you send a [print( message to
> [hid]?  You should see a listing of the elements for that device as
> given by the OS.  If something is listed there that is not showing up
> in Pd space, that's most likely a bug in [hid].  If it is not listed
> there, that's most likely a bad USB implementation on the device,
> which is sadly quite common.
>
> .hc
>
> >
> > ~Kyle
> >
> > On 4/6/07, Clifford Dunn <beatleboy07 at gmail.com> wrote:
> >> Thanks Derek,
> >>
> >> Doing this did help me open the help file. However, a new can of
> >> worms has
> >> opened from this.
> >>
> >> I can't seem to find much helpful information about the [hid]
> >> object in the
> >> helpfile. In fact, the only time the [hid] object appears in this
> >> patch it
> >> doesn't have any inlets or outlets. Maybe it's not necessary. I
> >> would like
> >> to know what these in/outlets are for this object though.
> >>
> >> Also, the [hid] object does seem to be directly responsible for my
> >> crashes.
> >> It's rather irregular, but if I click on the object enough, PD will
> >> definitely crash. I've tried to create an [hid] object without a
> >> physical
> >> device ( i.e. [hid 5]), but the crashing will still happen.
> >>
> >> Are there people regularly using HID with OS X?
> >>
> >> Thanks again,
> >>
> >> Clifford Dunn
> >> www.myspace.com/clifforddunn
> >>
> >>
> >> On 06/04/07, Derek Holzer <derek at umatic.nl> wrote:
> >>> Hi Clifford,
> >>>
> >>> I've seen this problem on OS X a lot in my workshops. [hid] works
> >>> fine,
> >>> but something in the help file crashes it. Has to do with one of the
> >>> messages in the help patch causing [hid] to try to open one of the
> >>> built-in Mac HID devices (trackpad, keyboard, etc), which it
> >>> doesn't like.
> >>>
> >>> Here's a quick fix: open the [hid] help patch in TextEdit or some
> >>> other
> >>> text editor, and change the creation argument to something above the
> >>> number of built in Mac HID devices. [hid 5] should work, for
> >>> example.
> >>> Remember to save as extension .pd! Then you should be able to
> >>> open the
> >>> help patch and get more information.
> >>>
> >>> best,
> >>> d.
> >>>
> >>> Clifford Dunn wrote:
> >>>> Hello list. I'm relatively new to PD and I'm trying to see how
> >>>> HID works
> >>>> in it. I'm using the most recent version of PD-Extended, the
> >>>> preference
> >>>> files are fine, and I'm running OS X 10.4.8 on a PPC Powerbook.
> >>>>
> >>>> I can't seem to get [hid] to work. I can create the [hid] object
> >>>> and it
> >>>> seems to be ok...there's a slight pause in the system as it
> >>>> seems like
> >>>> it needs to load something. When I try to open the help file to
> >>>> figure
> >>>> out how to use it, PD crashes.
> >>>
> >>> --
> >>> derek holzer ::: http://www.umatic.nl
> >>> ---Oblique Strategy # 181:
> >>> "What would your closest friend do?"
> >>>
> >>
> >>
> >> _______________________________________________
> >> PD-list at iem.at mailing list
> >> UNSUBSCRIBE and account-management ->
> >> http://lists.puredata.info/listinfo/pd-list
> >>
> >>
> >
> >
> > --
> >
> > http://theradioproject.com
> > http://perhapsidid.blogspot.com
> >
> > (((())))(()()((((((((()())))()(((((((())()()())())))
> > (())))))(()))))))))))))(((((((((((()()))))))))((())))
> > ))(((((((((((())))())))))))))))))))__________
> > _____())))))(((((((((((((()))))))))))_______
> > ((((((())))))))))))((((((((000)))oOOOOOO
> >
> > _______________________________________________
> > PD-list at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/
> > listinfo/pd-list
>
>
>
> ------------------------------------------------------------------------
> ----
>
> All information should be free.  - the hacker ethic
>
>
>
>
>


-- 

http://theradioproject.com
http://perhapsidid.blogspot.com

(((())))(()()((((((((()())))()(((((((())()()())())))
(())))))(()))))))))))))(((((((((((()()))))))))((())))
))(((((((((((())))())))))))))))))))__________
_____())))))(((((((((((((()))))))))))_______
((((((())))))))))))((((((((000)))oOOOOOO




More information about the Pd-list mailing list