From owner-freebsd-questions@freebsd.org Fri Mar 6 15:04:45 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BABBF26A5D3 for ; Fri, 6 Mar 2020 15:04:45 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48YrWJ358wz3ByB for ; Fri, 6 Mar 2020 15:04:43 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 026F4X2q057593 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 6 Mar 2020 16:04:35 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu From: Andrea Venturoli Subject: Bluetooth doesn't work properly after upgrading to 12.1 To: freebsd-questions@freebsd.org Message-ID: <2e0008f2-c4ab-b234-7890-ecd18b378b51@netfence.it> Date: Fri, 6 Mar 2020 16:04:33 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48YrWJ358wz3ByB X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.27 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.845,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; IP_SCORE(-1.63)[ip: (-8.02), ipnet: 2.44.0.0/16(-4.01), asn: 30722(3.85), country: IT(0.03)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 15:04:45 -0000 Hello. I'm facing yet another trouble with 12.1: I've been using BT to transfer pictures from my phone (Android) to a FreeBSD box for years, but now it's not working anymore: no matter what I try the phone won't see the computer available as a destination. hcsecd is running. The handbook says "service bluetooth start ubt0" should output a lot of details: it doesn't. Instead, sometimes it prints: > /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 Other time it prints nothing; I think this means it succeeded. Anyway, "hccontrol inquiry" correctly performs a scan and finds other devices. "l2ping -a foo" succeeds (more or less): > 0 bytes from doh seq_no=0 time=5177.894 ms result=0x4 > 44 bytes from doh seq_no=1 time=1893.984 ms result=0 > 44 bytes from doh seq_no=2 time=17.314 ms result=0 > 44 bytes from doh seq_no=3 time=12.920 ms result=0 > ... > # sdpcontrol -l browse > > Record Handle: 00000000 > Service Class ID List: > Service Discovery Server (0x1000) > Protocol Descriptor List: > L2CAP (0x0100) > SDP (0x0001) > Bluetooth Profile Descriptor List: > Service Discovery Server (0x1000) ver. 1.0 > > Record Handle: 0x00000001 > Service Class ID List: > Browse Group Descriptor (0x1001) > > Record Handle: 0x0000000a > Service Class ID List: > OBEX Object Push (0x1105) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 30 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > OBEX Object Push (0x1105) ver. 1.0 > > Record Handle: 0x0000000b > Service Class ID List: > OBEX File Transfer (0x1106) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 30 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > OBEX File Transfer (0x1106) ver. 1.0 Still the phone won't find the computer. After searching the web for a long time, I came across these two commands: > hccontrol -n ubt0hci write_authentication_enable 1 > hccontrol -n ubt0hci write_scan_enable 3 Not sure what they do and if they are needed (if so, why are they not mentioned in the Handbook?), but they allowed me to pair my computer and my phone. Still no luck however: when sending a picture, I can now select my computer as target, but the process will end with "Connection failed". I'm open to any suggestion, here. (*) bye & Thanks av. (*) While I'd be delighted to have Bluetooth working in general, I'll also consider other means to transfer pictures via USB cable: all my tentative on that path also failed.