Re: Scanning for bluetooth-devices
Hi guys, Eivind, if you'll have USB driver working other things are pretty straightforward. You need to send HCI_Inquiry command to the device command pipe via and read event from the event pipe. You specify maximum responses and inquiry interval and get back list of devices nearby. You can write a command line tool or kernel extension (kext). I actually did exactly that myself, I have somewhat working Bluetooth stack running on Mac OS X. Please check out my home page http://www3.telus.net/dmukhin/ If you have any questions please feel free to ask. Best Regards, Dmitry. Hi Eivind The only way with Apple's Bluetooth API is to invoke the GUI Dialog for selecting a device. This you can easily find out not only by asking a questions on a list but also reading older mails before, as it is the standard question asked by many. If you only want to check, what devices are in range and you want to do this on your mac, you can have a look at our small bluetooth stack we use for our small bluetooth nodes on http://www.btnode.ethz.ch/. it works on mac, but requires a bluetooth module connected to a serial port. parts of the RFCOMM implementation are already working. the source code is available, so you could implement a USB driver to use the bt module you are using (and make me happy, as I'm using 4 bluetooth devices connected to a PCI multi-serial port and have quite some cables on my desk) cheers, Matthias Ringwald Hi, In my school-project I'm making an application that searches for nearby bluetooth-devices. .. (that returns the device addresses to the bluetoothdevices that are within range) Can this be done? And if yes, can anyone please explain how? best regards, Eivind Andersen _______________________________________________ _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Dmitry Mukhin