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?
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.
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.
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.