Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1689751ybv; Fri, 21 Feb 2020 01:45:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwLCsVY5oTLUeNoRkj7+M0/M1VTcIaAYGU5N8mRIrloMDK4Jzb31lNmGjFiME3sGNOLgRmo X-Received: by 2002:a9d:518b:: with SMTP id y11mr26033276otg.349.1582278306537; Fri, 21 Feb 2020 01:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582278306; cv=none; d=google.com; s=arc-20160816; b=WDeUHX4Rqy/LCElCrsBzklBkQ7kO5ktONazwRozVaFgknkCbDVwApnHo6owHFzPFIX fAw8tkH5Cn51jiOtKVI9XUZsJQzAdKAJUxabaIXA8GAKDgTSFaRTcU2V7S+3FsWED7HY 3kNHW+tcvQhcKXtpoz0Y0Lgrb2NWmkodry6ADkHc4BuX9NI3x6FLcIsFOf9zAqDmoFSB gt38pLD+nUHEdA0C1okYY9a7t9RapSz4k7x5b30AaNhCmkRntOLI184DE3J3D+TnOFS9 2eXfoM+cKLC1t0GPoMIBnydTxMCsWgVidPNVYa/SDbjm6gbQw5oJeORjoXk+7izzy99R dqOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:date:message-id :cc:to:from:subject:references:in-reply-to:importance:sensitivity :mime-version:dkim-signature; bh=JPFRN8ed/TOwqYtL3M0bijRVUv6sG3iZse74zf/mTuE=; b=rCRVE7IBw8Z+2i0e2dlMSPMTOueXrzGxPVuHktgM9x1Y6YJG6EdWdM4n/N1G3rW9rU T3MJcM6fi6mY1iBUUXz5pW9NY90h3R79o3EesfhhfAzPX21UHY0t4D72WmOjx0eT+vYb x6wgVJU1hdOZpzLlEmwYWG7bX9rKrrp3oJFMGaVEnYGyADaEd++iVfD3pUfqrGFAeaPk itDCDWu9pDnz2H+Pe9Aag/1hbQ99K+408ocfjRObCumFT26eMcthSNmwgiurIZqRap6g YK04mXdZU/sxDs0qzrbJABaEVcxae5+NpQzlVjyhpKHGRT7Rb1ywZfKquBt+HDjWf/Ab eTkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@phytec.in header.s=a1 header.b=OSYwSUpC; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si1218810otr.207.2020.02.21.01.44.41; Fri, 21 Feb 2020 01:45:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@phytec.in header.s=a1 header.b=OSYwSUpC; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbgBUJoV (ORCPT + 99 others); Fri, 21 Feb 2020 04:44:21 -0500 Received: from mickerik.phytec.de ([195.145.39.210]:45852 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbgBUJoV (ORCPT ); Fri, 21 Feb 2020 04:44:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.in; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.in; t=1582278260; x=1584870260; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JPFRN8ed/TOwqYtL3M0bijRVUv6sG3iZse74zf/mTuE=; b=OSYwSUpCohcjw+ai7nzhfeLYuPQQdcGUbH0jWxtJGSIGDeUY1Eu7xasu7jZU1lB6 CGbeRjktWVbeMJGpLIJ1tad6xmNe33rYhI3RVU/71nS5Tj1M5uCXALQpmPFmmHl9 2X2anafmQSexeaWDYAow8trU8xoCo8lyFxaSTPoFdEs=; X-AuditID: c39127d2-06fff70000001a8a-ab-5e4fa673a50a Received: from tumirnix.phytec.de (tumirnix.phytec.de [172.16.0.38]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 37.59.06794.376AF4E5; Fri, 21 Feb 2020 10:44:19 +0100 (CET) X-Disclaimed: 1 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) In-Reply-To: References: , Subject: Re: mesh-cfgclient Node is not attached From: Mahaboob Nazeer SK To: "Gix, Brian" Cc: "linux-bluetooth@vger.kernel.org" Message-ID: Date: Fri, 21 Feb 2020 10:39:20 +0100 X-Mailer: Lotus Domino Web Server Release 9.0.1FP7 August 17, 2016 X-MIMETrack: Serialize by http on Tumirnix/Phytec(Release 9.0.1FP7|August 17, 2016) at 21.02.2020 10:39:20, Serialize complete at 21.02.2020 10:39:20, Serialize by Router on Tumirnix/Phytec(Release 9.0.1FP7|August 17, 2016) at 21.02.2020 10:39:20 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRoBBTbd4mX+cQc9vG4sVM1azWcy51sfs wOSxeM9LJo/Pm+QCmKK4bFJSczLLUov07RK4MqZsOctY8ECgYv2FxcwNjCd4uxg5OSQETCRu b//G2MXIxSEksJtR4v6uv4wQCX6JT39a2UBsXgFBiZMzn7CA2MICvBKb3s4Gq+EUEJLouNrJ ClEvJjFh3S9miLi7xNGHR5khhvYzShxtWskE0WwgsWveMrAiNgFdiZUXHoINEhFQk7h4/QBY nBmoef/8rywQiwMles+dZAexWQRUJbZuvswGscxZYvGfCywgCyQEGpgk5t/9BeRwADWrS6yf JwQxR1ti2cLXzBMYhWch+WEWQtUsJFULGJlXMQrlZiZnpxZlZusVZFSWpCbrpaRuYgSG9eGJ 6pd2MPbN8TjEyMTBeIhRgoNZSYRXjccvTog3JbGyKrUoP76oNCe1+BCjNAeLkjjvBt6SMCGB 9MSS1OzU1ILUIpgsEwenVAPjbJ5+ttM3fVf/z3ohc/Nu66uV3ho+L3X3+n3W+WsdE1ix4yCH 1DUfUdbggxyHT97V4XG3v2gbI3Xo1LFyRSFtobNZ4X63Xvv4XC/5vXJGzJ4LYrE1H3wiNJU/ zw22ET34itXs9T73esPu60sF3NjmbWFy8jw/jduQfWLycoGH/hs9orhd0yqVWIozEg21mIuK EwEmKNImWQIAAA== Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, That was helpful. Its working now,i am able to=20 discover the unprovisioned nodes. Thank you. -----linux-bluetooth-owner@vger.kernel.org wrote: ----- To: "nazeer.m@phytec.in" , "linux-bluetooth@vger.kernel= .org" From: "Gix, Brian"=20 Sent by: linux-bluetooth-owner@vger.kernel.org Date: 02/21/2020 12:25AM Subject: Re: mesh-cfgclient Node is not attached Hi Mr Nazeer, On Thu, 2020-02-20 at 08:27 +0100, Mahaboob Nazeer SK wrote: > Hi, >=20 > I was trying to provision a node using a mesh-cfgclient. >=20 > I have successfully ran create and i was able to get configuration=20 > files in the .config. >=20 > [mesh-cfgclient]# create=20 > Mesh network configuration exists (/home/nazeer/.config/meshcfg/config=5F= db.json) >=20 > After that i have tried to discover the unprovisioned node but i get=20 > Node is not attached message. >=20 > [mesh-cfgclient]# discover-unprovisioned on > Node is not attached > [mesh-cfgclient]# The problem you describe is probably due to the daemon not finding an appro= priate BT controller to attach to.=20 This led to the "Attach" failing after the "Create", and then none of the c= ommands to the node are able to be sent. There are a couple of options here: 1. If you have a single BT Controller (v4 or newer) you will need to disabl= e the main bluetooth daemon so that the bluetooth-meshd daemon has access to it: $ sudo systemctl disable bluetooth $ sudo systemctl stop bluetooth 2. If you have *multiple* BT controllers, make sure the bluetooth daemon ha= sn't automatically claimed them all: In /etc/bluetooth/main.conf, make sure AutoEnable=3Dfalse (reboot may then = be required) In the future, we will be doing work to enable co-existance and controller = sharing for single controller systems. However, this will require some changes in the kernel. >=20 > Could you please let me know if weather there are some=20 > more steps involved to discover and provision a node or if am missing som= ethings. >=20 > Thank you. Regards, --Brian Gix