LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unable to create bluetooth connection in PDA

Hi guys,
   I am using LABVIEW PDA module to create Bluetooth connection to a bluetooth device automatically using the Bluetooth module in LV. But no matter which security code I enter in, it has no response.
  That might be an error in 'wait on listener' module.
  Can someone help me to see the code if it has problem??
  The code is attached.
  Thx
0 Kudos
Message 1 of 10
(22,478 Views)
Hi

Can I please ask for a bit more information. What device you are trying to connect to and what service it is that you want to use (ie. Serial Port, Dial-up Networking,OBEX File Transfer etc)?

When you run the code, Bluetooth Create Listener.vi returns error code 54: The network address is ill-formed. You have passed the address of the remote bluetooth device to this vi when it is the address of the PDA server that is required. With this sorted the Bluetooth Wait on Listener.vi times out and returns error code 56. I haven't sorted what it is that is causing the time-out but the problem here is that you have not incorporated any error handling to stop the while loops. If you use the highlight execution you can see that although an error has occurred and the bluetooth read abandoned, the program is stuck in an infinite loop not really doing anything while you are left still trying to get a connection unaware anything is wrong.

If you let me know some more details about what you are trying to do I can try and help further.
0 Kudos
Message 2 of 10
(22,399 Views)

Hi

 I am trying to create connection between a bluetooth pulse oximetry to PDA using serial port that LV bluetooth module supports.

The Bluetooth address is the bluetooth pulse oximetry address in the code.

As the problem you found, I have no idea why the Wait on Listener.vi  time-out.!

0 Kudos
Message 3 of 10
(22,394 Views)
Can you please give me the model number of the bluetooth device you are using so I can find out some more info on it.
 
Are you are you trying to open a connection and initiate data transfer to the pda without touching the pulse oximetry? I'll continue to look at your code and we'll hopefully get it sorted soon.
0 Kudos
Message 4 of 10
(22,265 Views)
Also check out the link below and confirm the pda has the required OS and drivers installed for bluetooth communication with labview. What version of labview are you using?
 
0 Kudos
Message 5 of 10
(22,262 Views)
The module of my bluetooth pulse oximetry is Nonin 4100.
Yes. I do want to open a connection and initiate data transfer to the pda without touching the pulse oximetry.
The labview PDA i am using is LABVIEW7.1 and the PDA version is pocket PC 2003. It is not the latest version, but it is the one I got now.
 If this can be done, I will try it in LABVIEW 8.2.1 and Windows mobile 2005.!
 Thx very much for your help.!
0 Kudos
Message 6 of 10
(22,227 Views)
Hi surikid

Sorry for the delay.

In response to your question about versions, can create pda applications for pocket pc 2003 with version 7.1 but you will need to make sure you have Microsoft eMbedded Visual C++ 4.0 installed.

See the knowledgebase and related links below for more info:

http://digital.ni.com/public.nsf/websearch/7D65D66EB07111F186256EBD005A5499?OpenDocument


Now with regard to your code, in order to get this to work, we are going to have to make some changes. I haven't really spent any time looking at the read algorithm on the bottom halve of the code as I am not exactly sure which configeration you are running your Nonin 4100 on. Can I suggest you search for bluetooth in the find examples section of labview and look at the simple bluetooth - pocket pc example. Look at which vi's are used in both the client and server and have a play around with it. In your code everything is fine until the bluetooth create listener vi. This vi is used to create a channel for a server to listen for incoming connections on. You will need to set up your pda to be the client not the server. The nonin 4100 will be the server, constantly throwing out the data. All you need to do is discover the device you want and then open a connection to it. Once connected you need your read algorithm to exract the data.

One last point, as I already have said, I would suggest implementing some error handling. Use an unbundle by name function to exact the status from the error cluster after the bluetooth read vi. Then use a boolean OR before the 3 stop terminals of the 3 while loops at the bottom, so that the program will stop if an error occurs. You will need to put a simple error handler after the close connection vi.

Hope this all makes sense.

Rich
0 Kudos
Message 7 of 10
(21,865 Views)

Hi Rich.

 Thank you for your help. I would try to revise my code following your suggestion.

 

0 Kudos
Message 8 of 10
(21,862 Views)

I have similar problem. I tried LabVIEW Examples 'Sample Bluetooth : Windows Mobile' in my PDA, but I failed to run. I tried 'Client VI' as well as 'Server VI,' but I got Code 2 error when I run VIs in my PDA. I am using HP IPAQ 212 and LabVIEW 2009 SP1.

 

I have succeeded in PC-PC Bluetooth communication using LabVIEW. Therefore, I think my PC setup is okay. Would you recommand any check point for me?

0 Kudos
Message 9 of 10
(4,277 Views)

HI,

 

 Sorry to ask you people directly this.

 

Can any one post VI which can comminicate with android based mobile bluetooth .

 

 

Thank you

0 Kudos
Message 10 of 10
(3,898 Views)