From owner-freebsd-bluetooth@freebsd.org Sun Nov 17 19:26:47 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 3BB451C7BC1 for ; Sun, 17 Nov 2019 19:26:47 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47GMXP4XkBz4Gbw for ; Sun, 17 Nov 2019 19:26:45 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id r20so17611862qtp.13 for ; Sun, 17 Nov 2019 11:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zQZZYKDizf2xrPbbx4AfdOhh8rSVeoL+tbYbwSOdbeA=; b=GjSKqqirQL5Zr9f1qkCZP8mJLqoYJIB75TJoDjIxZtWbnQkVaeXbDThY7J0DILlk7V OcRH3hDEM7mKAjMnjlJd1ydQLK2/5upDyiIScBl7RbcvZw/aGkA9GBw1n95Wy2q/R21J lrAYRO82sY8ctlQ6w2oUBDY0vscSusY5vaORu6iKh4xdC8oqvHsSzX8ZvS8hmDAPGiry Wr2XQZH1sbCg50zfvYkiHhfCRu3T95MMVU/j0uSBoIh5gxof17a/bJKgaP/y3a/80R3y vbd92sND3ezlST8QchtrtkMGEdMERV6yjxI73U9FlzJ+9N20o+q9nKYKowjFvtPslV/P eZMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zQZZYKDizf2xrPbbx4AfdOhh8rSVeoL+tbYbwSOdbeA=; b=U/pzG7MHfeLD9+m+Eib8wma6dxnzUvhiP+/9BoNXf0TigXvSfjfi1BIgI7ml3rPXou EiGCLlJqJkTT4kZTg5qXzC8R8x4+9stPkhq7cH8HIfTtNVo4Czv7+0yDjIxWmUB8fed5 /ONXxFmxIFL23d6grZDDtQEVstkx3/iS5Q5XRXfzUtZ4E3q1mBevaCNBVpjqbyZ9b+/D HWJCQ+DOX/oOgEp1KAhGVbA08ptoHMYd4L/wKNzvmiGRIl4HkGwcwV7Yxnc8FRaoS+xF R2ILluCl3RDfzPip6WoA9mysKZ1/QZ7QRuSzXi9OB8VD35wEVKSOo57N2tVi61EbP/dZ /zuQ== X-Gm-Message-State: APjAAAUkdtAgOYU5JJuQAUyij7SmzHyqoyYfPUfnK851236Yq9mOwSGg JxIYL0vdEzCfjpMLue35hE3GKL+rxTPbjQUhU16IVG66K9A= X-Google-Smtp-Source: APXvYqx1CrCLIfZ4GmUHf4jWBMZfhTGkmZmUK/0ulv5VtN8767+bRT4YJ09FbDkV0BWit/GPnxovrmF6im38MQfs52w= X-Received: by 2002:ac8:2361:: with SMTP id b30mr23753142qtb.322.1574018804209; Sun, 17 Nov 2019 11:26:44 -0800 (PST) MIME-Version: 1.0 References: <20191115.003249.1323876476717305943.toshi@ruby.ocn.ne.jp> In-Reply-To: <20191115.003249.1323876476717305943.toshi@ruby.ocn.ne.jp> From: Maksim Yevmenkin Date: Sun, 17 Nov 2019 11:26:33 -0800 Message-ID: Subject: Re: Do obexapp and rfcomm_sppd work as server? To: SAITOU Toshihide Cc: "freebsd-bluetooth@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47GMXP4XkBz4Gbw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=GjSKqqir; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of maksimyevmenkin@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=maksimyevmenkin@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.35), ipnet: 2607:f8b0::/32(-2.31), asn: 15169(-1.98), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-bluetooth@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Sun, 17 Nov 2019 19:26:47 -0000 hello, > Does the FreeBSD 12.1 work as server of obexapp and rfcomm_sppd? yes, it should work [...] > 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. is there anything useful in the logs? perhaps incoming folder is missing (defaults to /var/spool/obex)? you might want to try and run obexapp with -u option. in this case incoming folder will be user's home directory. > # 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 may i ask what are you trying to do? the above command will use stdin/stdout. if you are trying to assign tty then please use -t option. thanks max From owner-freebsd-bluetooth@freebsd.org Tue Nov 19 13:44:34 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 EFC371B3524 for ; Tue, 19 Nov 2019 13:44:34 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mogw0724.ocn.ad.jp (mogw0724.ocn.ad.jp [153.149.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 47HRrb4yLcz4VlL for ; Tue, 19 Nov 2019 13:44:30 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from mf-smf-ucb025c1 (mf-smf-ucb025c1.ocn.ad.jp [153.153.66.163]) by mogw0724.ocn.ad.jp (Postfix) with ESMTP id 73DD5B80245; Tue, 19 Nov 2019 22:44:22 +0900 (JST) Received: from ocn-vc-mts-103c1.ocn.ad.jp ([153.138.237.78]) by mf-smf-ucb025c1 with ESMTP id X3mciZyXf4tSHX3nqiRqbX; Tue, 19 Nov 2019 22:44:22 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.134]) by ocn-vc-mts-103c1.ocn.ad.jp with ESMTP id X3nqiDuRwFjR6X3nqi8Jjt; Tue, 19 Nov 2019 22:44:22 +0900 Received: from localhost (p597077-ipngn200509sizuokaden.shizuoka.ocn.ne.jp [180.33.214.77]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Tue, 19 Nov 2019 22:44:22 +0900 (JST) Date: Tue, 19 Nov 2019 22:44:18 +0900 (JST) Message-Id: <20191119.224418.1812554791970841811.toshi@ruby.ocn.ne.jp> To: maksim.yevmenkin@gmail.com Cc: freebsd-bluetooth@freebsd.org Subject: Re: Do obexapp and rfcomm_sppd work as server? From: SAITOU Toshihide In-Reply-To: References: <20191115.003249.1323876476717305943.toshi@ruby.ocn.ne.jp> 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: 47HRrb4yLcz4VlL 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.149.232.25 as permitted sender) smtp.mailfrom=toshi@ruby.ocn.ne.jp X-Spamd-Result: default: False [5.29 / 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.149.232.0/26]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.975,0]; DMARC_NA(0.00)[ocn.ne.jp]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_SPAM_LONG(0.85)[0.854,0]; IP_SCORE(1.16)[ipnet: 153.128.0.0/11(4.06), asn: 4713(1.73), country: JP(0.01)]; FREEMAIL_TO(0.00)[gmail.com]; 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: Tue, 19 Nov 2019 13:44:35 -0000 Thank you for reply. On Sun, 17 Nov 2019 11:26:33 -0800, Maksim Yevmenkin wrote: > >> Does the FreeBSD 12.1 work as server of obexapp and rfcomm_sppd? > > yes, it should work I gave it a try. >> 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. > > is there anything useful in the logs? perhaps incoming folder is > missing (defaults to /var/spool/obex)? you might want to try and run > obexapp with -u option. in this case incoming folder will be user's > home directory. Even with the -l option, nothing is displayed. I had made /var/spool/obex and tried chmod 777 but no success. I try -u option but there is no difference. >> # 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 > > may i ask what are you trying to do? the above command will use > stdin/stdout. if you are trying to assign tty then please use -t > option. I had used following command and typing on each side but nothing happened: fbsd# rfcomm_sppd -S mac% cu -l /dev/tty.hostnameubt0-SerialPort Sorry for reporting based on my feeling and not technical. But it seems that the attached USB and the Bluetooth stack don't communicate well or they may be on the different context. For example, when hcsecd -d nothing report/display on paring, reset by using usbconfig takes effect. I think obexapp and rfcomm_sppd server don't respond for the same reason. For your reference: service bluetooth onestart ubt0 service hcsecd onestart hccontrol -n ubt0hci write_authentication_enable 1 hccontrol -n ubt0hci write_encryption_mode 2 hccontrol -n ubt0hci write_scan_enable 3 service sdpd onestart obexapp -s -C 1 rfcomm_spud -S -c 1 -- SAITOU Toshihide