thls Posted May 30, 2013 Report Share Posted May 30, 2013 I want to use the bluetooth VI's for the first time, actually not for a cellphone but first I want to have this clear before I implement it. Anyway I have a simple Nokia C1, bluetooth enabled and with the attached VI I want to connect and for example ask the status for the cellphone. The attached VI locks the phone and clears it again, in the <data out> there is nothing. Also changing the commands to other <ATxxxxx> does not change it. What's wrong? On the other hand when I change the bluetooth connection in windows to a serial port I can communicate with the cellphone through VISA. Quote Link to comment
hooovahh Posted May 30, 2013 Report Share Posted May 30, 2013 You forgot to attach your VI. Quote Link to comment
Naity Posted May 30, 2013 Report Share Posted May 30, 2013 (edited) You forgot to attach your VI. It can't be attached. Bluetooth is wireless... ->[] Edited May 30, 2013 by Naity Quote Link to comment
thls Posted May 30, 2013 Author Report Share Posted May 30, 2013 ...........attached............sorry bt1.vi Quote Link to comment
ShaunR Posted May 30, 2013 Report Share Posted May 30, 2013 You need to select the "Serial Port Profile" from the list of services (your second array index which selects whatever the first is in the list) and you need to terminate with rn rather than just r Quote Link to comment
thls Posted May 31, 2013 Author Report Share Posted May 31, 2013 Where is the "serial port profile" selection located?? It should be in the second array index but it's not clear for me what you exactly mean. The rn is clear, thanks for that. Quote Link to comment
ShaunR Posted May 31, 2013 Report Share Posted May 31, 2013 Where is the "serial port profile" selection located??It should be in the second array index but it's not clear for me what you exactly mean. The rn is clear, thanks for that. When you query for the services (Bluetooth RFCOMM Service Discovery.vi) you need to have the "Serial Port Profile" returned as one of the services available and then select that service in your Index Array to get the Channel and UUID for the Bluetooth Open the Connection.vi. If it's not in the list, you may have to enable it in the phone settings (refer to the manual) or use a 3rd party driver on the phone to give it to you over bluetooth (some phones only have it for usb connections). Also, some Android phones have a bug where the profile isn't broadcast. Quote Link to comment
thls Posted June 25, 2013 Author Report Share Posted June 25, 2013 Finnaly I managed to perform it, serial commands are send through VISA. (virtual serial port was created) Is there an way to perfom the pairing under Labview? I found some examples which handles it in Labview but it's done with .NET, but can't figure out what the procedure is to follow. https://decibel.ni.com/content/docs/DOC-9799 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.