Hi! I have some troubles with using DeviceFound and DeviceDisappeared
signals. I use simple test script: http://pastebin.com/m45de7894 . There
are two cases: if I use software inquire scheduler and if I use hardware
one.
Hardware scheduler. Bluetooth module in phone is on and I run script:
---
ilya@ilya-laptop:~/blue$ python fodis.py
Fri May 1 16:36:44 2009 Signal: DeviceFound 00:16:B8:53:5F:17
---
And no more signals. Then I wait 2 mins, turn off Bluetooth in phone and
wait 2 more mins, but no one signal is emitted.
I don't know if DeviceFound signal should be emitted on every inquire,
maybe not. But I'm sure DeviceDisappeared signal should be emitted at
least once :)
Software scheduler ("DiscoverSchedulerInterval = 1" at main.conf).
Bluetooth module in phone is on and I run script:
---
ilya@ilya-laptop:~/blue$ python fodis.py
Fri May 1 16:43:52 2009 Signal: DeviceFound 00:16:B8:53:5F:17
Fri May 1 16:44:11 2009 Signal: DeviceDisappeared 00:16:B8:53:5F:17
Fri May 1 16:44:14 2009 Signal: DeviceFound 00:16:B8:53:5F:17
Fri May 1 16:44:34 2009 Signal: DeviceDisappeared 00:16:B8:53:5F:17
Fri May 1 16:44:37 2009 Signal: DeviceFound 00:16:B8:53:5F:17
Fri May 1 16:44:57 2009 Signal: DeviceDisappeared 00:16:B8:53:5F:17
Fri May 1 16:45:00 2009 Signal: DeviceFound 00:16:B8:53:5F:17
Fri May 1 16:45:20 2009 Signal: DeviceDisappeared 00:16:B8:53:5F:17
Fri May 1 16:45:23 2009 Signal: DeviceFound 00:16:B8:53:5F:17
### At this moment I turn off Bluetooth in phone
Fri May 1 16:45:43 2009 Signal: DeviceDisappeared 00:16:B8:53:5F:17
---
So, both signals was emitted on every inquiry. I think this is wrong
behavior. Am I right?
And DeviceDisappeared was emitted once after remote device was actually
turned off. That's good :)
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html