LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA Bluetooth breakpoint oddity

Hi all,
 
I was wondering if any of you have tried to write a labview program for the pocket pc platform to communicate with another device over bluetooth.
 
I am currently trying to communicate with this RFID reader. The pocketpc will send a request (hexadecimal string) to the RFID reader and the reader will respond with a corresponding reply, almost immediately after the request was sent. I am able to successfully do a one way send to the RFID reader (the respond could be heard by a beeping sound that it emitted) and a one way receive from the reader (when I explicitly press a button to transmit information from the reader to the pda), but I am unable to do both at the same time (ie send the request and read the reply from the bluetooth connection). However, I am able to send a request and see the reply if I were to put a breakpoint and slowly enumerate through each step.
 
I am puzzled by the fact that the program works perfectly fine in the debug mode with the breakpoint, but I am unable to see anything when I run it in the normal mode. I keep getting a bt-read error 4 when I run in the normal mode without breakpoints.
 
I tried the same program on 2 different PDAs and they both yielded the same results. I have attached the modified program from the simple bluetooth example in this post. (This example is written in labview 7.1)
 
Does anyone have the same experience or any idea what is going on?
 
 
Message 1 of 2
(3,701 Views)
Hi all,
I've solved the problem already.
 
Posting this message for reference purposes:
 
Basically the problem lay with the device. It had a certain delay and I was writing immediately after I just established a connection with it. Hence, the information sent over after the open connection might have not been registered.
 
The breakpoint in the question sort of adds a delay such that the connection is properly established before I send the write to the device.
 
Hope this might help a little for anyone who might encounter the same problem.
 
 
Message 2 of 2
(3,686 Views)