From owner-freebsd-bluetooth@FreeBSD.ORG Sun Mar 15 14:58:54 2015 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E3F8CC4 for ; Sun, 15 Mar 2015 14:58:54 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2746BBB6 for ; Sun, 15 Mar 2015 14:58:54 +0000 (UTC) Received: by wggv3 with SMTP id v3so21544614wgg.1 for ; Sun, 15 Mar 2015 07:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/1Fh+bgB7ro67nLbEr4JpBBZpwjryvblJlV1Yfd9IDg=; b=rpqE3Lr5uEVhdIpVFFog0PLndg5+KNkEv26ddEhV6BVWQu+8kjui42NBlY4mpRgCOX djN8wn9sx28b48e0d+NDWcN2nswkZ+L0p/KbwgCAR3yw/DX9irhGAithdBPzQauGK3Z/ M/guAILfmrqzrT0VAHypznyNiUAN4GJhG2p0+DprEuIIFPPH04uiwxA/pPppYA3uwYnu 4RsOQh246Ta0F+VRDIUpMjMjbq2r/oe4lNVGq+UcbuUuPmQK8vEBfGYsbViucPDj2PwA sq1lqYKPZVYfWbbnrqjh3f6v5e0AmP0X0c3tD6amdgksToVB30oQMTd8SD6/SnFIG4vP DOnQ== MIME-Version: 1.0 X-Received: by 10.195.12.35 with SMTP id en3mr110096493wjd.129.1426431532524; Sun, 15 Mar 2015 07:58:52 -0700 (PDT) Received: by 10.27.214.136 with HTTP; Sun, 15 Mar 2015 07:58:52 -0700 (PDT) Date: Sun, 15 Mar 2015 07:58:52 -0700 Message-ID: Subject: register HID with SDP error From: Waitman Gobble To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2015 14:58:54 -0000 Hi, I'm having trouble registering HID service with sdpd, here is a simple example: sdp_sp_profile_t sp; bdaddr_t bt_addr_any; void *ss; uint32_t sdp_handle; memcpy(&addr, NG_HCI_BDADDR_ANY, sizeof(addr)); memset(&sp, 0, sizeof(sp)); sp.server_channel = 0; ss = sdp_open_local(NULL); sdp_register_service(ss, SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE, &bt_addr_any, (void *)&sp, sizeof(sp), &sdp_handle); messages I am receiving: sdp_error(ss) is Input/output error (5) sdpd[6621]: Could not process SDP request from control socket, pdu->pid=129, pdu->tid=1, pdu->len=12, len=17, error=3 I see /usr/src/usr.sbin/bluetooth/bthidd/ but I believe that's to connect to remote HID services. Also I went to the local electronics store and picked up every bt dongle they had on the shelf. (it looks like v4 bt devices they have use the CSR8510 chip despite the "brand name". but I also have v3, v2, and v1 devices to test). Starting the bluetooth service always seems to result in error for all the devices, however I can run sdpd and also browse remote services and pair from client to server and vice-versa, so I'm not exactly sure of the importance of the bluetooth service? ubt0: on usbus0 ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 5 (disconnected) ubt0: on usbus0 ubt0: at uhub0, port 8, addr 6 (disconnected) ubt0: on usbus0 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x4, OCF=0x9. Timeout ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 7 (disconnected) ubt0: on usbus0 ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 8 (disconnected) ubt0: on usbus0 ng_hci_process_command_complete: ubt0hci - HCI command failed, OGF=0x1, OCF=0xe, status=0xc ng_hci_process_command_complete: ubt0hci - HCI command failed, OGF=0x1, OCF=0xe, status=0xc ng_hci_process_command_complete: ubt0hci - HCI command failed, OGF=0x1, OCF=0xe, status=0xc ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 9 (disconnected) ubt0: on usbus0 ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 10 (disconnected) ubt0: on usbus0 ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR ubt0: at uhub0, port 8, addr 11 (disconnected) ubt0: on usbus0 Thank you for any pointers, help, comments. -- Waitman Gobble Los Altos, California USA 510-830-7975