Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [RFC] need for new scan api for bluetooth low energy. From: Marcel Holtmann In-Reply-To: Date: Tue, 30 Sep 2014 19:24:26 +0200 Cc: Jakub Pawlowski , BlueZ development , Scott James Remnant Message-Id: <82BA6E2B-B502-46DF-B5E8-052B8D9251FB@holtmann.org> References: <735FD32E-BD15-4CE1-8D9C-44B8EC56DF7A@holtmann.org> <20140917051457.GA4671@t440s.P-661HNU-F1> <20140917065252.GA5554@t440s.lan> <8868B74C-0DDD-43C1-BCBF-2578A700EF72@holtmann.org> <0EA633E6-A0F5-4F67-B421-9857466C1175@holtmann.org> <372D8399-BFC6-413F-924F-44CE79030516@holtmann.org> To: Arman Uguray Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Arman, >>> +Advertisement Received Event >>> +============================== >>> + >>> + Event Code: 0x0020 >>> + Controller Index: >>> + Event Parameters: Address (6 Octets) >>> + Address_Type (1 Octet) >>> + RSSI (1 Octet) >>> + Flags (4 Octets) >>> + AD_Data_Length (2 Octets) >>> + AD_Data (0-65535 Octets) >> >> Device Found event not good enough here? Why would you need a new event with exactly the same parameters? >> > > I guess the idea with this one is that it won't have duplicate > filtering, right? And all AD_IND types will be propagated instead of > just connectable ones, which is how this one differs from Device > Found. And I'm guessing AD_Data here is the data in the advertisement > packet in general as opposed to only being limited to EIR data. > Though, correct me if I'm wrong. we fixed the advertising type handling. Device Found will report ADV_IND, ADV_NONCONN_IND and ADV_SCAN_IND. The latter two have the Non-Connectable flag set. Regards Marcel