LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

search bluetooth devices in Labview 7.1

Hi
 
I have an application which i need to scan/search the bluetooth device in range. I am using a laptop with bluetooth built in. When i checked at the Device Manager, the bluetooth are recognized as COM Ports (COM6,7,10, 11, 12 etc). I will not know what is my client address as they are keep changing. I just need to know how many devices are in range. I plan to use Labview 7.1 bluetooth vis to search for the Bluetooth device
 
Here comes my problem. I on my PC bluetooth and my handphone bluetooth. I tried to use the Bluetooth Discover vi but it doesn't work. When i look at example, put time limit as 0ms can return my PC bluetooth address, is that true? But it's not retuning anything. I also set the time limits to 20ms but it also not returning anything.
 
Could someone help me with this? Will it be better if i use a USB BT dongle? Thanks a lot!
0 Kudos
Message 1 of 4
(3,001 Views)
Hi

I checked on my PC with Bluetooth Discover. When using a timeout of 0ms it returns the MAC address of the built-in adapter, with timeout 200ms I see my mobile phone.
Did you check from windows, do you see your device there?
Are you sure Bluetooth is switched on in your PC? Some notebooks have switches to turn on/off wireless networking and bluetooth.

Daniel

0 Kudos
Message 2 of 4
(2,998 Views)
Hi Dan
 
Thanks for the reply. I am sure the bluetooth is on because i use the bluetooth program to scan my handphone and it is detected.
 
How do check from Windows? I checked from Device manager but i can see my BT as COM PORT and see the bluetooth internal card under USB controllers.
 
i tried the again both 0 and 10000ms but still do not get anything. One thing strange is even i put the time limit as 10000ms, the vi also finish very quick, same time as 0ms.  Is that something wrong?
 
Thanks a lot
0 Kudos
Message 3 of 4
(2,993 Views)
When I activate bluetooth in my laptop I see a bluetooth icon in the system tray. When I double-click this I can search for bluetooth devices.

If the Bluetooth Discover vi returns immediately even if you set a timeout of 10000ms this looks to me as LabVIEW doesn't find any bluetooth adapter. But I don't know where the problem could be.
0 Kudos
Message 4 of 4
(2,988 Views)