Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3237688ybi; Sun, 2 Jun 2019 09:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8L+ICLmo0JiuNsH7LP4/OABl4TYKjfXZOEJyLo5YL/i0+paes3RYJuULejPc52t524ZkY X-Received: by 2002:a17:90a:a608:: with SMTP id c8mr23506387pjq.37.1559494765714; Sun, 02 Jun 2019 09:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559494765; cv=none; d=google.com; s=arc-20160816; b=lIXdXGqjLsOplNHhvOF2f/DfK/COY1htkRexUqG7XBMnCmBgKRUAg26rdJblcnJ+z1 7eu9EQyDF8swVwwuWjgUGnBDIyxDd2KtoD6ZwGoYjnja79IK+f2o/RAAUdqnCJGBbR0u jtv547Vu7StIgYr632uYAP896j5txwYM2eVhAwbpp1kdO+XalKkYYaWvRPa/wOipW/vn cQhIMBn3Jjo3+Fv3ICH36J7CghpxH0xAGew57es1mnY6W+2R6X7G6ArTJ2b23utfirZX 2bZgELz3k+4B4ePVxIGEMjhYzoegVI9ouA+1Y5ruQUaxO38A9ajYNUCoEUfoSOwF5AaR NuhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QKcuewIVEj06j/cE5HiRPVUPzrXftwmdzc6BWiwg2pQ=; b=zphTNuRq7kqrS6u8lzMEruyMpL0qf4TmjZ071FKhKwBw9/vahNizs1sJEA5imMPczn xvfF9ee6LrY2iu2oikkrWKFYT/KomQRWmgpk+1nMSEtQ0am74Baou8fTPvY9+DA7Yv5L vYHEbIviIJu/xHCY2TykUthS/5GPwqRrywcxg7Prulol+W+9GdhgV0Ps4vFwhPStjQ2X IInBX60xxMf6nhGv6U/ukKp+3Q2khF4BcFhpOHBRxXOytTjFThbz14Cpbn4nI4N7oxT/ BMzVKsBeZWsbpif5Ltb82sY5ClwfwaUmST8xbQ0TNPdtE44l21UX4pXOwWerCFTUUlsR Za5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j2B4fnnr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si15116841pgj.590.2019.06.02.09.58.55; Sun, 02 Jun 2019 09:59:25 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=j2B4fnnr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727137AbfFBQ6z (ORCPT + 99 others); Sun, 2 Jun 2019 12:58:55 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:50790 "EHLO mail-wm1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbfFBQ6y (ORCPT ); Sun, 2 Jun 2019 12:58:54 -0400 Received: by mail-wm1-f42.google.com with SMTP id f204so4978971wme.0 for ; Sun, 02 Jun 2019 09:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QKcuewIVEj06j/cE5HiRPVUPzrXftwmdzc6BWiwg2pQ=; b=j2B4fnnrP2pSYmnAhPL9yopFt7q+R24+NwuT2iWMZCEvaOTuQz6e2r4X/a+0NuS3o6 EAItrTLelpmRpF6IIsJJgWDBhBzWHDrUxt37c9p16DI4nTFVrgzoO7u80uEIGAgj6MLC T8qYB2ABuzpvAve4Gwf9GcwK4oSYRW3scsz5n7+ex5ezuaV7oJWYDEyMiE7ELhS7rdns pylRUGDWNQB5sIDElwKLb/wKdiARQeFjhrKoi+tRf8mg5x9FYpcJM8C2OJ4KMYccJlAb kya7jWsPAq0BgY8aYUm8obZ73r3ywARTgSTd/3SzBE6oMfoSUUtrS2FgsJhMe+Q3j+GL d/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QKcuewIVEj06j/cE5HiRPVUPzrXftwmdzc6BWiwg2pQ=; b=dkb5cY5gSUkpuJIujbeZxHRF2LxRtA9RDN245c8/UqickX+AM2Hf0tmsXECI9JBmNA 9EqqXBuGalCP73LrMeXpr6NU15NrYasiBjMvEWn/XYP+Igw1rUHlskK2hyUCXB3r5EXf P3Qg8GLeLhiuUGnRzy6EpcWtgzfiBmNymuQqXP9rycxo5Zi503zeublFU6M6195oZpN7 tRD4zIuOz9h+JFQ/Csrec3/TBI9oZcn1sJtcvrCF2zVmKrbFd8V2jkV25D8DuUZSvVZp ghypkNzuvTl92hTd6WNTStpTD1qKBLH9XRQnLeO98C74wrQ69jtSeCQb83Vvgyckpnzq 9gGg== X-Gm-Message-State: APjAAAWKzyxYSsXJhonZk3Yb0V2fC1Y6Zf5W+o6xnrxYNcF/hVA4Gx/+ 0wtmyc0WJJwYlmrV5bW9+Po9ecNgL6I= X-Received: by 2002:a1c:c747:: with SMTP id x68mr1954052wmf.138.1559494732566; Sun, 02 Jun 2019 09:58:52 -0700 (PDT) Received: from N14xZU (host86-156-195-117.range86-156.btcentralplus.com. [86.156.195.117]) by smtp.gmail.com with ESMTPSA id y133sm7344550wmg.5.2019.06.02.09.58.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Jun 2019 09:58:51 -0700 (PDT) Date: Sun, 2 Jun 2019 17:58:49 +0100 From: John Whitmore To: Emil Lenngren Cc: Bluez mailing list Subject: Re: Different respones to BLE scan from a Peripheral device? Message-ID: <20190602165844.GA3886@N14xZU> References: <20190531122557.GA3176@griso> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Fri, May 31, 2019 at 04:30:38PM +0200, Emil Lenngren wrote: > Hi John, > > Den fre 31 maj 2019 kl 14:27 skrev John Whitmore : > > > > Hello all, > > > > I'm running on two identical embedded Linux Gateway devices, both on > > Ubuntu 16.04 and Bluez 5.37. That's certainly an older version, but > > it's part and parcel of that version of Ubuntu. I'm having an issue > > where the two identical gateway devices are getting different > > responses from a BLE scan, and can't figure out what would be the > > cause. In both cases it's the same peripheral device, a TI CC2650 > > device. On one gateway I get a truncated response with just the MAC > > address and in the other I get the MAC address plus the description > > string "CC2650.." > > > > [bluepy.btle:37] Got: 'rsp=$scan\x1eaddr=b546C0E530068\x1etype=h1\x1erssi=h43\x1eflag=h0\x1ed=b020105030280AA06FF0D0003000011094343323635302053656E736F72546167051208002003020A00\n' > > > > [bluepy.btle:37] Got: 'rsp=$scan\x1eaddr=b546C0E530068\x1etype=h1\x1erssi=h28\x1eflag=h0\x1ed=b020105030280AA06FF0D00030000\n' > > > > I'm probably going to have to get a Bluetooth sniffer device to trace > > this issue, but if anybody had any idea what this would be the case, > > I'd love to hear. > > > > Perhaps even though the Gateways are running the same Hardware and > > Software there might be a Hardware difference in the chipset used or > > something. It's all I can think of. Hopefully get something to help > > diagnose this issue. > > > > In those two messages there is a difference in RSS, is that signal > > strength and could that be the issue? Have to open things up. > > > > Thanks in advance for any help, and apologies I'm at the wrong end of > > a learning curve. > > > > John > > You could try running btmon in a terminal to show the HCI traffic. > There you should see the raw advertising packets in form of LE > Advertising Report packets. You should see both ADV_IND packets as > well as SCAN_RSP packets. Maybe the software doesn't always combine > them and that's why you get different results. And yes RSSI is signal > strength. > > /Emi Thank you for that. I'll have a look into that and see if I can't get to the bottom of this issue.