Hi all,
I have a problem related to COM ports created by Bluetooth devices. When installing a BT device on the PC, a pair of COM ports are created (I think thay are called virtual COM ports). One port is for incoming communication and one is for outgoing communication.
My problem is this:
When I do a VISA open on the outgoing COM port there is a delay for between 5 and 35 seconds before the VISA Open returns to my VI and then it returns with an error (0xBFFF0000, unknown system error). When the VISA Open is called, my mobile phone requests that I either accept the connection or reject it (this is standard BT behaviour, I think). If I do not respond on the mobile, it takes up to 35 seconds before the VISA Open returns and i can read the error code. If i respond at once, VISA open returns and there is no error. Now I reason that I can use the timeout input to specify a maximum time I want to wait for response (the phone may be off), but this does not work (at least not when the COM port is associated with BT).
I have attached an VI that illustrates how i measure the VISA Open execution time. If I specify 200 ms in the timeout, the VISA open does not return after 200ms but after 5-35 secs, depending on wether the mobile is turned on or not.
Can somebody help wih this problem? I am not interrested in letting my application delay for that long if BT is installed on the computer.
My application does not actually use the BT port, but simply need to identify the com port as a BT port and not use it.
I am using LV 7.1 on WinXP SP2.
regards,
Thomas Bay