Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2074996pxb; Sat, 21 Nov 2020 08:01:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTrHHDj0aZlYpo0UzecRgCQVeUDnrO2e6Z9NkPqCq9FP20m0y3ZjSzu1jF8oe5zz6iBNm6 X-Received: by 2002:a17:907:206b:: with SMTP id qp11mr9589959ejb.286.1605974478886; Sat, 21 Nov 2020 08:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605974478; cv=none; d=google.com; s=arc-20160816; b=t+wAZF9T4lSMV2rrC0WpIEn5bR3ZTZ9QMvC+9IUebLO9jrGvhY8xQBFjeDmW0Mfvww gyt4xNIpzAg4zR3fNh0LtuADQhy47PMkUifBVRIhY9TNmQaPOZm77uGYV/BIAHNWH6FJ diN/HdafumEyz6symKdqM0qT7wY5Fmw5uvQxiLd5R6pH6cOIl92dC/I3znMX1rLEQEJp augx2PcqH9mX18Dx/CwfXH1NYe5DBSw5EXra8WPSdr7+h8dzlqbQvJut9xQfJVfKOqMz 253hEcGv38p/P/LE8STzELIZqlV3Ysbr2QYJRpG0d/v58ZyWemOL/3cii+bOZb5TpSJt TQ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=XlrB+zWLwaEE09hQ+AwmV3kVi0+1Sun/P5FUkZi6EGw=; b=xhGtpt/4hWWGhI8ZP0eT/WjF8PK3EW+uDuJ6if24UdCZurObDpfx+3+7qvI2TtPZvT P3BakHWwAKK61tU9Pcm7jkr7JTB07AvomSKhJUx4HDInOu9W5XKKboaknQ8dXYvJxgIn w35Gouj41DpsbLayz84vNOhpgCvL8sf0NMdlv8mrP4ysadvW8x2Ye4mnE0KfARoWMnPl uILpiL/MSBVHGfHsHI10TnoaIUcZ2E8Ke1p9BSYu9csXYHR63UqjKqxvI/ihpH+dqZ7/ iw3HMuYdGeOlq0Z22NkTI0nLIGK5sptBfW+LKZp6gCp0h4oIRaO9dKJozxlu7+ZxoAFr mmTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=NSoVyMeG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si3954422edf.136.2020.11.21.08.00.37; Sat, 21 Nov 2020 08:01:18 -0800 (PST) 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=@mnmoran.org header.s=dkim header.b=NSoVyMeG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726013AbgKUQAh (ORCPT + 99 others); Sat, 21 Nov 2020 11:00:37 -0500 Received: from hoster906.com ([192.252.156.27]:37792 "EHLO hoster906.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbgKUQAg (ORCPT ); Sat, 21 Nov 2020 11:00:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mnmoran.org; h=to:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=dkim; bh=x2MeThxf4kQyrjXWItgQkrd09 D6yalg27T1FVAsREl8=; b=NSoVyMeGAOiVztruyo8Wh1Prv5BAj7RdTxzeTsOKA pfDy0EXT0kxT/RSFZpQAI4wa+z8tuagSv1bP2+YhIcn5eZOpqb1QI/fRhqJWvTE+ CyfHoMaqWYtIvWKLA1BSactfJo+YquCYPAO9m+k6HHXwBYw0FWjVtM3C3vd9gS1z N4= Received: (qmail 6494 invoked by uid 503); 21 Nov 2020 16:00:35 -0000 Received: from unknown (HELO ?192.168.254.79?) (mike@mnmoran.org@40.134.89.129) by hoster906.com with ESMTPA; 21 Nov 2020 16:00:35 -0000 To: "linux-bluetooth@vger.kernel.org" Cc: "Stotland, Inga" , "Gix, Brian" From: "Michael N. Moran" Subject: Mesh UpdateModelConfiguration not invoked Message-ID: <10bbe715-fe62-2364-cd20-71c710424c87@mnmoran.org> Date: Sat, 21 Nov 2020 11:00:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Meshers, I have a BlueZ Mesh application that implements some mesh client models. When I use the Attach(), I receive all of the configuration for the node. Among other things, this includes AppKey bindings for the models as expected. However, if I add/remove AppKey bindings from the provisioner/configuration application (e.g. mesh-cfgclient), I expect my client application to receive a org.bluez.mesh.Element1 UpdateModelConfiguration() with the new bindings. This does not happen. Are my expectations wrong? I'm running 'bluetooth-meshd --nodetach --debug --dbus-debug'. I don't see any d-bus or other failures in the daemon output. If I kill my client application and restart it (Attach), I then receive all of the correct/new bindings. I have looked at the mesh daemon code and it seems to come down to the use of cfg_update_mod_bindings() and whether or not the node is an "External model" or an "Internal model". Obviously, my client application is classified as an "Internal model", which skips the cfg_update_mod_bindings(). I suspect that this is an oversight in the daemon, but I'm not sure how to proceed. Thanks, mike -- Michael N. Moran (h) 770 704 9751 218 Wilshire Terrace (c) 678 521 5460 White, GA, USA 30184 http://mnmoran.org