Re: duplicate devices found when using StartDiscovery API
flat view
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2012-08-24 10:19:49
Hi Geay, On Fri, Aug 24, 2012 at 11:12 AM, Geay Franck [off-list ref] wrote:
Hi
I have a problem with bluez scanning API
When I call StartDiscovery dbus API, I get some duplicate devices found signal whereas using hcitool scan doesn't list duplicate devices
Is it normal, do I have to filter duplicate devices based on the BD address ? Is there a fix for this problem ?
I am using bluez version 4.87
root@localhost ~]# /usr/lib/bluez/test/test-discovery | grep -e Name -e Addres
Name = MyLapTop
Address = 00:16:41:DB:FF:F2
Name = C1-01
Address = 78:2E:EF:10:F4:7B
Name = Dell Wireless 370 Bluetooth Mini-card
Address = 00:25:56:E4:0E:0C
Name = Nokia 2730
Address = C8:DF:7C:CF:CE:E7
Name = MyLapTop
Address = 00:16:41:DB:FF:F2
Name = Nokia 2730
Address = C8:DF:7C:CF:CE:E7
Name = Dell Wireless 370 Bluetooth Mini-cardIt works as intended as they could be found in different scan rounds or due to rssi signal has been changed, hcitool in the other hand is a single shot and is not rssi aware so it just need to return one entry of each device found but if you use hcidump you will see that the inquiry result may contain more than one entry for each device. -- Luiz Augusto von Dentz