LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bluetooth rfcomm service discovery

Hi, I�m trying to use the bluetooth vi�s with Labview 7.1. I have a bluet. chip (zeevo) with its bd address but I don�t know the channel associated with the spp service. I used the rfcomm service discovery block but it says my bluet. chip has no services. The same if a put the bd address of a PDA. Running the vi (on the pc) it gives no error with the address but says there are no services, even if I use the examples I found in the example dir of labview. Where is the problem? Thank you. Eli
0 Kudos
Message 1 of 4
(4,301 Views)
Hi! If I get it right you would like to know which serial ports are associated with your BT chip. (SPP - Serial Port Profile)
To do this you must take a look at your operative system Bluetooth configurator or your BT chip driver (for example in my PocketPC I got a blue BT icon on the bottom-right corner of the screen). I believe that it would be a little hard to do this from labview since it requires interaction with a system dll, activex or some sort of API.
The "RFCOMM Service Discovery" VI does something else, it looks for "services" available in a BT capable device using RFCOMM protocol.

Take a look at these pages that describes BT architecture and NI tools created do deal with BT.

Developing Bluetooth Applications with LabVIEW
http://zone.ni.com/devzone/
conceptd.nsf/webmain/5EB9312A6470F16A86256E7500726F15?opendocument

Does LabVIEW for PDA Support Bluetooth?
http://digital.ni.com/public.nsf/websearch/15987C8CB752EAD786256DC20070B433?OpenDocument

Overview of Bluetooth Client/Server Networks
http://zone.ni.com/devzone/conceptd.nsf/webmain/79F65241EDB4F7C586256AB6006703CB?opendocument#3

I hope this can help, write back if you need more help!

Ciao.

NicolaC
National Instruments
0 Kudos
Message 2 of 4
(4,301 Views)
Hi Nick,
thank you for your answer.
I solved my problem trying with every possibile channel number. I found that the spp service is associated with channel 1 in my bluetooth chip.But I think the rfcomm block should be able to tell you all the services and the relative channel numbers and uuid for the bluetooth device you want to connect to. This is what is written in the help and what is shown in the examples. Anyway everything works quite good. Thank you again. Eli
0 Kudos
Message 3 of 4
(4,299 Views)
Hello Eli,
Having followed this and other bluetooth related threads, I've had identical problems to yourself. I'm developing bluetooth apps on a Toshiba Laptop with internal bluetooth card. This unfortunately uses Toshiba's own proprietary drivers, and after locating the Q323183 service pack, installation of this only gave me the Bluetooth monitor and did not allow LabVIEW to recognise the internal card. I've a TDK USB adaptor which comes as part of the blu2i development kit, and this has all the correct drivers bundled on the accompanying CD. I installed the Q328183 service pack and then added the BT Monitor exe separately and was immediately able to use the adaptor with LabVIEW.

I've also had success with the the D-Link DBT-120 USB adaptor w
hich can run off the same driver and monitor software. As far as the service search is concerned, I've had similar problems as yourself with these adaptors when running a service search as only the address of the adaptor is returned but no services - I think this is down to the fact that the MS drivers don't provide the adaptor with any services, although it is possible to move data between the PC and a PDA (I have an Ipaq 2210 running some LB7.1 PDA apps for this).

By installing the TDK software suite for that adaptor, I was then able to find the services with a PDA set up to search for these (using Service Search VI).

Hope this helps.

Fadenoid
0 Kudos
Message 4 of 4
(4,299 Views)