Hi, Zitat von "Johan Hedberg" <johan.hedb...@gmail.com>: > On Wed, Sep 15, 2010, Hendrik Sattler wrote: >> > Do we really need BT interface discovery/search API in openobex? I >> > think Bluez covers that pretty well, no? >> >> Even Linux(Bluez) and *BSD have a complete different code how to do >> this just for bluetooth device enumeration. Windows is also totally >> different. The patch[0] is _only_ for HCI enumeration! >> SDP is a different beast (again, each a differnt implementation). > > Well, you're doing a fully fledged inquiry and on top of that name > resolving for each discovered device (which involves a baseband page > operation). Both of these operations are very time consuming (inquiry > typically around 10 seconds and each name query can be up to 5-20 > seconds depending one which devices are still within range and what the > configured page timeout of the local bluetooth adapter is). BlueZ already > stores information about previously discovered devices (including paired > ones) so you're potentially doing quite time consuming actions here for > something that might not be necessary at all.
We could use the cached results. However, almost every documentation I saw (on other systems, nothing for Bluez) suggests not to do that as the cache may contain devices that are not in range anymore. Using the cache can give you strange and unpredictable results (e.g. devices in range but not in cache and the other way round). The name function already gets it from the cache if it is there. At least it seems to do that. Bluez is highly under-documented, the doc/ sub-directory in bluez source just contains d-bus api docs. What if I do not want to use d-bus? The functions from libbluetooth have _NO_ documentation with them! If there is another way to get the address, name and class of devices in range, please show me :) I'd rather do it right and properly documented in openobex instead of having x applications doing it wrong in their way. HS ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users