From owner-freebsd-bluetooth@FreeBSD.ORG Sun Jun 22 03:08:39 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34663106566B for ; Sun, 22 Jun 2008 03:08:39 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id EBA298FC12 for ; Sun, 22 Jun 2008 03:08:38 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so479356ana.13 for ; Sat, 21 Jun 2008 20:08:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tCb6KuZ48slCsEEVGd/qkpNUKNb6c3pqE2LAxOV+hh8=; b=MOWKifoMTyLvcCkZa9TDTORj/jJkXqfgvt6RVwIZWTS1pAQtPJayaYyDm40fUOYqfg AojxSC5C2Hv5TkYikk/TiEQ2g835wUcBLZ5F6idp6weXonw+Dk5KLA3FBgDLr1+wezzb /q6kZDh0tL6EZSxG0ic92WCigE6Du5FzrhDiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FSybBgUCIcstW8M5vsRz8yH2zrdSwnEMHz9UFnu66gF0BLBjpodxzH8PLcJkh/GGFA LIEI3RKjCWbhdmxORkuvRCZO0/9/V29Qx7KbpUp5ps4nZKYKYZLhmqMnBAbho9NiFdeP ct+O1kGleacMiLZShgEIRLiNnuqD946DNl6o8= Received: by 10.100.198.2 with SMTP id v2mr9542242anf.144.1214104118550; Sat, 21 Jun 2008 20:08:38 -0700 (PDT) Received: by 10.100.166.14 with HTTP; Sat, 21 Jun 2008 20:08:38 -0700 (PDT) Message-ID: <1d3ed48c0806212008y41e99897pb3490c60d0da73f7@mail.gmail.com> Date: Sat, 21 Jun 2008 20:08:38 -0700 From: "Kevin Downey" To: "Iain Hibbert" In-Reply-To: <1214075074.941115.1335.nullmailer@galant.ukfsn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d3ed48c0806192023w42f30a04i5b7bab5598005ac@mail.gmail.com> <1d3ed48c0806210015m2fb9bc6n8202e91d1a140e41@mail.gmail.com> <1214075074.941115.1335.nullmailer@galant.ukfsn.org> Cc: freebsd-bluetooth@freebsd.org Subject: Re: playstation 3 remote X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 03:08:39 -0000 On Sat, Jun 21, 2008 at 12:04 PM, Iain Hibbert wrote: ... > > perhaps it does not wish to keep the link up if it is not being used, and > does not require pairing for what you have done so far. > > Unless you set the Auth Enable (with hccontrol) your controller will not > request pairing. > > try > > % bthidcontrol -a remote query > > and > > % bthidcontrol -a remote dump > > to see what the HID profile gives us? > > regards, > iain > (sorry for sending this twice iain) I don't see a Auth Enable command in the hccontrol manpage. % bthidcontrol -a remote query device { bdaddr 00:1e:3d:17:e6:c2; control_psm 0x11; interrupt_psm 0x13; reconnect_initiate true; battery_power true; normally_connectable false; hid_descriptor { 0x05 0x01 0x09 0x05 0xa1 0x01 0x85 0x01 0x15 0x00 0x26 0xff 0x00 0x75 0x08 0x95 0x0b 0x06 0x00 0xff 0x09 0x01 0x81 0x00 0x85 0x01 0x95 0x0b 0x09 0x01 0xb1 0x00 0x85 0x02 0x95 0x0b 0x09 0x01 0xb1 0x00 0x85 0x03 0x95 0x0b 0x09 0x01 0xb1 0x00 0x85 0x04 0x95 0x0b 0x09 0x01 0xb1 0x00 0x85 0x05 0x95 0x0b 0x09 0x01 0xb1 0x00 0x85 0x06 0x95 0x0b 0x09 0x01 0xb1 0x00 0xc0 }; } % bthidcontrol -a remote dump Input id=1 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=1 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=2 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=3 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=4 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=5 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Feature id=6 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 Collection page=Generic_Desktop usage=Game_Pad -- The Mafia way is that we pursue larger goals under the guise of personal relationships. Fisheye From owner-freebsd-bluetooth@FreeBSD.ORG Sun Jun 22 07:10:39 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C19621065675 for ; Sun, 22 Jun 2008 07:10:39 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp01.one2one.net (smtp01.one2one.net [149.254.200.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6B9A18FC13 for ; Sun, 22 Jun 2008 07:10:39 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by smtpbarns01 with esmtp (Exim 4.50) id 1KAJib-0006NP-WC; Sun, 22 Jun 2008 08:10:34 +0100 Received: from smtpbarns01 ([127.0.0.1]) by localhost (smtpbarns01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24319-04; Sun, 22 Jun 2008 08:10:33 +0100 (BST) Received: from [10.34.243.216] (helo=rya-online.net) by smtpbarns01 with smtp (Exim 4.50) id 1KAJiY-0006NL-Cz; Sun, 22 Jun 2008 08:10:33 +0100 Received: (nullmailer pid 22326 invoked by uid 1000); Sun, 22 Jun 2008 07:10:15 -0000 Date: Sun, 22 Jun 2008 08:10:15 +0100 (BST) To: Kevin Downey In-Reply-To: <1d3ed48c0806212008y41e99897pb3490c60d0da73f7@mail.gmail.com> References: <1d3ed48c0806192023w42f30a04i5b7bab5598005ac@mail.gmail.com> <1d3ed48c0806210015m2fb9bc6n8202e91d1a140e41@mail.gmail.com> <1214075074.941115.1335.nullmailer@galant.ukfsn.org> <1d3ed48c0806212008y41e99897pb3490c60d0da73f7@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1214118615.285768.10981.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on smtpbarns01); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: playstation 3 remote X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 07:10:39 -0000 On Sat, 21 Jun 2008, Kevin Downey wrote: > On Sat, Jun 21, 2008 at 12:04 PM, Iain Hibbert wrote: > ... > > > > perhaps it does not wish to keep the link up if it is not being used, and > > does not require pairing for what you have done so far. > > > > Unless you set the Auth Enable (with hccontrol) your controller will not > > request pairing. > > > > try > > > > % bthidcontrol -a remote query > > > > and > > > > % bthidcontrol -a remote dump > > > > to see what the HID profile gives us? > > I don't see a Auth Enable command in the hccontrol manpage. Read_Authentication_Enable and Write_Authentication_Enable and they are the master switch that makes your controller require authentication for all connections (this is not always useful) > % bthidcontrol -a remote query > device { > bdaddr 00:1e:3d:17:e6:c2; > control_psm 0x11; > interrupt_psm 0x13; > reconnect_initiate true; > battery_power true; > normally_connectable false; > hid_descriptor { > 0x05 0x01 0x09 0x05 0xa1 0x01 0x85 0x01 > 0x15 0x00 0x26 0xff 0x00 0x75 0x08 0x95 > 0x0b 0x06 0x00 0xff 0x09 0x01 0x81 0x00 > 0x85 0x01 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0x85 0x02 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0x85 0x03 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0x85 0x04 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0x85 0x05 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0x85 0x06 0x95 0x0b 0x09 0x01 0xb1 0x00 > 0xc0 > }; > } this entry would go into your bthidd.conf file > % bthidcontrol -a remote dump > Input id=1 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=1 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=2 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=3 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=4 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=5 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Feature id=6 size=8 count=11 page=Microsoft usage=0x0001, logical range 0..255 > Collection page=Generic_Desktop usage=Game_Pad though as you can see, the remote control (strangely, for something produced by Sony) is providing only "Microsoft" usage page inputs and so far as I know, bthidd will not be able to understand this stuff as-is. You might look around to see if any specification for these are publicly available. what is it you hope to do with this remote control? I suppose that bthidd could be modified to translate button pushes into key or X events, but I'm not sure if there is a standard way to do this kind of thing in unix? My apple keyboard at least has some volume controls and an eject button but I've never looked at how to get them to do anything. I suspect there ought to be a global source point for these, because a keyboard event would only be delivered to the window with focus. (hotkeys presumably bypass this somehow) iain