From owner-freebsd-bluetooth@freebsd.org Thu Nov 14 15:33:42 2019 Return-Path: Delivered-To: freebsd-bluetooth@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 9B1AB1AB595 for ; Thu, 14 Nov 2019 15:33:42 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mogw1819.ocn.ad.jp (mogw1819.ocn.ad.jp [153.138.214.85]) by mx1.freebsd.org (Postfix) with ESMTP id 47DQVr21vnz44hK for ; Thu, 14 Nov 2019 15:33:39 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mf-smf-unw006c1 (mf-smf-unw006c1.ocn.ad.jp [153.138.219.96]) by mogw1819.ocn.ad.jp (Postfix) with ESMTP id F03FAE0469; Fri, 15 Nov 2019 00:33:31 +0900 (JST) Received: from ocn-vc-mts-201c1.ocn.ad.jp ([153.138.219.212]) by mf-smf-unw006c1 with ESMTP id VH5DibqCQ9P7xVH7jiszSo; Fri, 15 Nov 2019 00:33:31 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.133]) by ocn-vc-mts-201c1.ocn.ad.jp with ESMTP id VH7ji7VhMNYEdVH7jiXZRl; Fri, 15 Nov 2019 00:33:31 +0900 Received: from localhost (p597077-ipngn200509sizuokaden.shizuoka.ocn.ne.jp [180.33.214.77]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Fri, 15 Nov 2019 00:33:31 +0900 (JST) Date: Fri, 15 Nov 2019 00:32:49 +0900 (JST) Message-Id: <20191115.003249.1323876476717305943.toshi@ruby.ocn.ne.jp> To: freebsd-bluetooth@freebsd.org Subject: Do obexapp and rfcomm_sppd work as server? From: SAITOU Toshihide X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47DQVr21vnz44hK X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of toshi@ruby.ocn.ne.jp designates 153.138.214.85 as permitted sender) smtp.mailfrom=toshi@ruby.ocn.ne.jp X-Spamd-Result: default: False [4.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:153.138.214.64/26]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[ocn.ne.jp]; NEURAL_SPAM_MEDIUM(0.39)[0.395,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(1.12)[ipnet: 153.128.0.0/11(3.94), asn: 4713(1.67), country: JP(0.01)]; MV_CASE(0.50)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:4713, ipnet:153.128.0.0/11, country:JP]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2019 15:33:42 -0000 Hi, Does the FreeBSD 12.1 work as server of obexapp and rfcomm_sppd? I couldn't success with the following procedures: After plugging the Bluetooth dongle then start bluetooth: # service bluetooth onestart ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 # service bluetooth onestart ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 # service bluetooth onestart ubt0 # hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: 20:c9:d0:94:cc:ea Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 0x2 Page Scan Mode: 00 Class: 38:01:04 Clock offset: 0x59d Inquiry complete. Status: No error [00] Start hcsecd and configure ubt0hci: Add this entry to /etc/bluetooth/hcsecd.conf: device { bdaddr 20:c9:d0:94:cc:ea; name "mac"; key nokey; pin "0000"; } then # service hcsecd onestart ubt0 # hccontrol -n ubt0hci write_authentication_enable 1 # hccontrol -n ubt0hci write_scan_enable 3 At this time, I can see this bluetooth dongle from another machine (MacBook) and these can be paired. Start SDP daemon and some service application server: # service sdpd onestart # obexapp -s -C 1 Double click the device on the Bluetooth window of the Macbook to send file but transferring is failed. # rfcomm_sppd -S After deletion of device and pairing again, the following nodes are appeared on the MacBook but not usable. /dev/tty.Bluetooth-Incoming-Port /dev/tty.hostnameubt0-SerialPort -- SAITOU Toshihide