06-03-2011 08:58 AM
Hello,
When working with a communication protocol it is the requirement that one know whether the connection has established correctly or not. And also to verify if a data is sent to the other side is received there properly or not.
I am working on Bluetooth communication and interested checking this connection.
Following the given document http//zone.ni.com/devzone/cda/tut/p/id/3260#toc0 i tried to transfer the data.
Now please guide me is it possible to check it on the hyperterminal of the otherside PC
Thanks
Solved! Go to Solution.
06-06-2011 06:28 PM
Hi Intelligent,
If you are trying to do a server/client example, there are a few great examples in the Example Finder. If you go to LabVIEW, then Help>>Find Examples... From there, in the Search tab, search for Bluetooth. You will find a few server/client examples there. Looking through it quickly, the Advanced Bluetooth Server and Client VI will do what I think you are looking for. The Bluetooth Create Listener and Bluetooth Wait On Listener functionalities are implemented to wait until a connection is established before it sends or receives data. I do not think it will be possible to see if there is a connection using Hyperterminal. I hope this helps!
Kim W.
06-09-2011 04:26 AM
Thanks for replying.
I have tried the examples you mentioned and used the Simple Buetooth Clinet to rec data and server to send the data.
but i am getting the Error #54 on the client side.And dont know its exact reason
Herei want to tell you the procedure that i followed so that you may identify if any error is present in it.
1- I created the Application of Bluetooth Client so that it could be executed on the systedm without the installation of whole labvierw software.
2- I Paired the two computers.
3- Than executed the file.
Kindly tell me what should i do now. Do i have to give some especial server name and Channel number?
Thanks
06-09-2011 04:28 AM
Thanks for replying.
I have tried the examples you mentioned and used the Simple Buetooth Clinet to rec data and server to send the data.
but i am getting the Error #54 on the client side.And dont know its exact reason
Herei want to tell you the procedure that i followed so that you may identify if any error is present in it.
1- I created the Application of Bluetooth Client so that it could be executed on the systedm without the installation of whole labvierw software.
2- I Paired the two computers.
3- Than executed the file.
Kindly tell me what should i do now. Do i have to give some especial server name and Channel number?
Thanks
06-10-2011 02:53 PM
Hi Intelligent,
Could you please walk me through the steps that you took after you created the executable? I am assuming you have the LabVIEW Run Time Engine on the computer without LabVIEW. From there, did you run the server VI and take the address and channel to the client VI and then run the client VI?
When are you seeing the error? Is it after you run and connect the client VI to the server VI? Finally, could you post a screenshot of the error 54 that you are seeing?
Thanks!
Kim
06-12-2011 11:19 PM
Hello, VTKim
Thanks very much for replying.
I am trying to answer the qestions
1- Yes Labview Run time Engine is installed on the PC from where i am runing the Bluetooth Client. Also i have executed another Application to check the working of it and the other basic application was runing properly.
2- LabVIEW server is executed from the PC where the LabVIEW is installed.
3- Clicking the properties i found the address of the Bluetooth Sever PC and wrote it in the Address. Regarding the Channel i am not sure what it should be and so i keep it left as 0.
4- As i run the VI of Server the error is displayed immediately.
5- They never have been connected.
I am posting the pics.
06-13-2011 07:53 PM
Hi Intelligent,
The error that you are seeing is most likely caused because the address is somehow incorrect. If the bluetooth connection is working correctly, then when you run the server VI first, you should get a Bluetooth address and name populated on the front panel and is the address of the Bluetooth device, not the PC. These values are gathered from the Bluetooth Discover function that searches for locally installed or other Bluetooth devices within range of the network. Once you get the Bluetooth address, you can put that into the client VI and run the client. As another troubleshooting steps, have you configured the Bluetooth settings to allow Bluetooth devices to connect to this computer. This Microsoft document shows how to change those settings in Method 2. I hope this helps!
Kim
06-13-2011 11:31 PM
Thanks VTKim,
I am using the bluetooth dongle to create the bluetooth connection. I am enjoying the bluetooth facilities easily using it.
I read the document you indicated, but it address the SP2 issues while I am using SP3. But also I can easily establish a connection and find devices in my range.
So kindly tell me what shoud more i do.
Thanks
06-14-2011 02:23 AM
I have changed my dongle now and using a new bluetooth device but still unable to get any change.
06-14-2011 06:36 PM
Hi Intelligent,
What are the model names and numbers of the bluetooth device and bluetooth dongle you are using? You must use a device that is supported by the Microsoft Bluetooth Stack or the new WIDCOMM stack. Here is another KnowledgeBase article that may give more insight into to how to get the device to communicate with LabVIEW. Thanks!
Kim