Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp71254ybh; Tue, 21 Jul 2020 16:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXKseiO5ZYAKwM+BQhVwqT/eKpSxsmtX1V8OQa79YI+oINf1k9NEDUMhwxUyCmqafZnXDa X-Received: by 2002:a17:906:eb94:: with SMTP id mh20mr24302637ejb.209.1595374870145; Tue, 21 Jul 2020 16:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595374870; cv=none; d=google.com; s=arc-20160816; b=OcxYLE1+mFW1IQVmnTxhtMZyQh8JE4iPUaoQC+U00OkeggVhajXAXmMl+rZDDmBXsl KRsZGxLM39KvE/8qbxR3g3pCBCM6ArhNmcrqUCUe56Zd6kAb8xus/F9cM5o4ja5+YDcV mtPjcW5Rv9JW+jjv6PGRDqS7WC8R7Uoo+fH2TKMxstqGCkxmvCPAS5OQ8REILvryuL8U Cv/asdSkac+tgeWRjOHJpgfGVrbZY2lvD+bcON+HE6yj4uN95N6RNnoUd3v9uJOd2LwQ Q8V6hvd/jg9cAjiETJf1Lr71SFmk75st+wltxDZE/JAvPSTRRYqJ9XSlbQyN3gsedcse thUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hPMF/rjSnUxtFQsQFf+E5YjSvyjHemQzNNUjLowFP0U=; b=WNG7GwKWM33nAaMmLbAmnPP1AMfjhP9WuVvDETuneYDE3NMO+dAih0a6BSHE4RlMs5 FBNmxqPFD5cU78Y4x1ZRr0JM+gt6y+JdIeEq8gFQIt3zGzK08JWMxQiDvU0UGP2p3bPh dc+EBnB5NNBZ5e9X7rLs//5vofWvsQnT7f4YhFRnXwiHGRlePhA8+NFoJ/ShD3mpVmI7 yGYfdomiO5WVhzfaFBrdhUzmE4fL9hATVWW9TT4yC3NvJPbuIkpv3PeOOAP0uWtUoNpC zxsayGEGlyxouztZNHDRCdaUny5ip64AoOpNqowjYgrHxzCrjGt7hHfoE4MlbMKL2p8a QMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tPw7zqlH; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si13341060ejx.307.2020.07.21.16.40.22; Tue, 21 Jul 2020 16:41:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tPw7zqlH; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731420AbgGUX15 (ORCPT + 99 others); Tue, 21 Jul 2020 19:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgGUX15 (ORCPT ); Tue, 21 Jul 2020 19:27:57 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07831C061794 for ; Tue, 21 Jul 2020 16:27:56 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id k4so252485oik.2 for ; Tue, 21 Jul 2020 16:27:56 -0700 (PDT) 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=hPMF/rjSnUxtFQsQFf+E5YjSvyjHemQzNNUjLowFP0U=; b=tPw7zqlHX6OVd3pgkjh4d3OX7yPN/1czEGNZ8SYAQiYQsbFTzjzg5TwBNHRnuQXgok lm683FCiirtCFNptfx8x4XtoIE9ePJjQcwvTXVpFrbl5l9Y/zd+wPM6MOshQj586OMhb FDr6yyA01vN5cGAiqHfG/Lv0mgJA32ZfC92pfJ4ATK2XNm0NEAubrdb7edZF14/9FJcy WjEk+md+MrFP0fXLcJlPG1CjyPLk46Is7JTttn3BAFjiaQTcVh8UXmbHI9Xd0eMnpXxw LMyA2Rur1/aAui4qPUFaYSxU3oGqL39EwIMeTsr+Z67DZt1TZU/lX4vQWGR4GxMnToiW RFVQ== 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=hPMF/rjSnUxtFQsQFf+E5YjSvyjHemQzNNUjLowFP0U=; b=Sf8ew95VJ4ZtSnxBx51+C1EcGIIOR3DKdZc3KlpuQ1oKwU8YurzO9b4wnB5x+UHPyL fo9xdWXhymio47YiWSpuXKN9aSgov3y0+v29oqONqYNsfyv0YT+2pxWEdcmOLbiQ0diT dJ4XtshGlflYx+QkR0hm8RFIMOoCfTSqUVaF19xYdx4st78k+04z4hXh17IMCI+6rigp 21BeQ22XAKP1BxF39hZBpMF+xyMxDreaQHh5BdJ+BP210bMVO/xFaM/oXXSivvlseqHX 3CSAJVGoUZpJEkQlSlnrvP6zOu/mWwPbz75V22JUJt3x90yc5ChOzpcEgx1yMG/kBKmh wgDA== X-Gm-Message-State: AOAM532U23IPFV47i+S4FBKGd7qizLX1mxZsbSCa39t2iop9GxTw8mNr ee83AT89ufolkFP3FXBN16TFQgavUN/yIli5E+M= X-Received: by 2002:aca:2819:: with SMTP id 25mr4732728oix.48.1595374076109; Tue, 21 Jul 2020 16:27:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 21 Jul 2020 16:27:44 -0700 Message-ID: Subject: Re: Networking - NetworkServer1 To: Barry Byford <31baz66@gmail.com> Cc: Bluez mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Barry, On Tue, Jul 21, 2020 at 2:45 PM Barry Byford <31baz66@gmail.com> wrote: > > I am trying to get Bluetooth networking to happen between a couple of > Raspberry Pi's running the latest Raspberry Pi OS and BlueZ 5.50 > > $ uname -a > Linux raspberry 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 > armv7l GNU/Linux > $ bluetoothctl --version > bluetoothctl: 5.50 > > I have been able to use the Network1 interface to Connect to my > Android phone using Bluetooth tethering. > > However, when I use the NetworkServer1 interface to register a profile > I have not had success in getting two devices to communicate. I have > paired and trusted the two devices. This allows the Bluetooth to > connect but not for the networking interface to be created as can be > seen in the logs: > > e.g. bluetoothd: BNEP server cannot be added > > A search for that error message didn't seem to turn up anything actionable. > > ``` > > ACL Data RX: Handle 11 flags 0x02 dlen 44 #50 [hci0] 21:54:01.130545 > Channel: 64 len 40 [PSM 15 mode 0] {chan 0} > BNEP: Control (0x01|0) > Filter MultAddr Set (0x05) > Length: 0x0024 > ff:ff:ff:ff:ff:ff - ff:ff:ff:ff:ff:ff > 33:33:00:00:00:01 - 33:33:00:00:00:01 > 01:00:5e:00:00:01 - 01:00:5e:00:00:01 > < ACL Data TX: Handle 11 flags 0x00 dlen 8 > #51 [hci0] 21:54:01.131140 > Channel: 64 len 4 [PSM 15 mode 0] {chan 0} > BNEP: Control (0x01|0) > Filter MultAddr Rsp (0x06) > Rsp msg: Operation Successful(0x0000) > > ACL Data RX: Handle 11 flags 0x02 dlen 56 #52 [hci0] 21:54:01.131800 > Channel: 64 len 52 [PSM 15 mode 0] {chan 0} > BNEP: Control (0x01|0) > Filter MultAddr Set (0x05) > Length: 0x0030 > ff:ff:ff:ff:ff:ff - ff:ff:ff:ff:ff:ff > 33:33:00:00:00:01 - 33:33:00:00:00:01 > 01:00:5e:00:00:01 - 01:00:5e:00:00:01 > 33:33:ff:d1:14:7e - 33:33:ff:d1:14:7e > < ACL Data TX: Handle 11 flags 0x00 dlen 8 > #53 [hci0] 21:54:01.131912 > Channel: 64 len 4 [PSM 15 mode 0] {chan 0} > BNEP: Control (0x01|0) > Filter MultAddr Rsp (0x06) > Rsp msg: Operation Successful(0x0000) > > HCI Event: Number of Completed Packets (0x13) plen 5 #54 [hci0] 21:54:01.132894 > Num handles: 1 > Handle: 11 > Count: 2 > > HCI Event: Number of Completed Packets (0x13) plen 5 #55 [hci0] 21:54:01.135075 > Num handles: 1 > Handle: 11 > Count: 2 > = bluetoothd: bnep: Can't add bnep0 to the bridge tether: No such > device(19) 21:54:01.138304 Well it looks like the bridge (tether) does not exist so we can't add the bnep interface, perhaps the idea is not to have it attached to any bridge in case of GN, PAN and just bring the interface up when an empty string is given as bridge. > = bluetoothd: BNEP server cannot be added > 21:54:01.138429 > > ACL Data RX: Handle 11 flags 0x02 dlen 89 #56 [hci0] 21:54:01.158957 > Channel: 64 len 85 [PSM 15 mode 0] {chan 0} > BNEP: Compressed Ethernet DestOnly (0x04|0) > dst 33:33:00:00:00:16 [proto 0x86dd] > 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 `....$.......... > 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00 ........:....... > 8f 00 5a 3b 00 00 00 01 04 00 00 00 ff 02 00 00 ..Z;............ > 00 00 00 00 00 00 00 01 ff d1 14 7e ...........~ > > ACL Data RX: Handle 11 flags 0x02 dlen 68 #57 [hci0] 21:54:01.265654 > Channel: 64 len 64 [PSM 15 mode 0] {chan 0} > BNEP: Control (0x01|0) > Filter MultAddr Set (0x05) > Length: 0x003c > ff:ff:ff:ff:ff:ff - ff:ff:ff:ff:ff:ff > 33:33:00:00:00:01 - 33:33:00:00:00:01 > 01:00:5e:00:00:01 - 01:00:5e:00:00:01 > 33:33:ff:d1:14:7e - 33:33:ff:d1:14:7e > 33:33:00:00:00:fb - 33:33:00:00:00:fb > ``` > The client seems to be created correctly. > > I have been searching around and I cannot find any working solutions > being reported for GN or PANU using the tools that are currently > available. > > There is this thread but it seems to have ended without conclusion > https://marc.info/?l=linux-bluetooth&m=149129850001348&w=2 > > I have added org.bluez.Network1 and org.bluez.NetworkServer1 to my > /etc/dbus-1/system.d/bluetooth.conf for both server and client. > > Are there any other configuration files that need editing? > > Any help or guidance gratefully received. Pointers to a tutorial or > the steps required would be good also as there appears to be some step > I'm missing. > > Thanks, > Barry -- Luiz Augusto von Dentz