From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth RS232 real time

Hi everybody

 

My program works properly when data is sent by cable. But when i try to send data via bluetooth, program receives only 30-40 bytes of data then stop. How can I solve this problem?

0 Kudos
Message 1 of 6
(2,951 Views)

I only played with a bluetooth RS232 adapter for a short time (like 1/2 day total).  But what I remember we found is that the device would only send the data once its buffer was full or after a large timeout.  Needless to say, it was not a good solution for us either.

 

My recommendation would be to add to your timeout and see what happens.  There might be some weird settings for the bluetooth device as well that you can try to look into.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(2,916 Views)

I have already set a timeout. My problem concerns a problem when data is sending, but it stops after few seconds. I checked my bluetooth device and it works properly - sends data in correct order and without no problems via putty terminal.

0 Kudos
Message 3 of 6
(2,913 Views)

Anyone? I haven't solved this problem yet. I don't know why it works properly on cable, but on bluetooth doesn''t.

0 Kudos
Message 4 of 6
(2,859 Views)

Program stops after receiving 400 packet of data. Anyone?

 

 

 

labviec.jpg

 

0 Kudos
Message 5 of 6
(2,824 Views)

Hi,

        I was quite interested in your problem and I have tried to reproduce your code and test it with a simulated serial port. It works well on my machine, but I don’t know the settings that you are using for your own VISA config.  Serial Port VI,  and it might be possible that the problem is over there. Therefore, I  would like to ask you to post on the forum or send me the actual code that you are using (there is one quite useful  tool called “ Create VI Snippet from selection “, which you can find in the  “Edit “ tab of the VI, and allows you to create a PNG file out of your  VI.  It preserves all the information about its functions, nodes and settings in the same file, so that, later on, you can just drag and drop it in a new blank VI and use it normally ).         

Then, please try to recheck that your Bluetooth device is working properly by using it with another application, or connecting it to another device/cable. 

 

           Let me know about the results.

 

           Sincerely yours,

 

           Denis S.

 

0 Kudos
Message 6 of 6
(2,783 Views)