09-05-2008 06:56 PM
I have to send a file by Bluetooth from a PDA to a PC.
The file has 38768 bytes.
I'm receiving error 66 on the PC VI (The network connection was closed by the peer).
The Bluetooth Write VI on the PDA is sending only 19314 bytes
The string read by the Bluetooth Read VI on the PC is only 13320 bytes long.
What's happening ?
Tom
09-08-2008 10:58 AM
Hi Tom,
Can you provide a bit more information on your application? Have you modified the LabVIEW example that demonstrates Bluetooth communication with a PDA? You say the Bluetooth Write VI on the PDA is only sending 19314 bytes. Where are you getting this information? It sounds like you may have your sending code exiting prematurely, and closing the connection. A bit more info, and maybe some screenshots of your code would be helpful.
Cheers,
09-14-2008 05:57 AM
Hi Brian,
Thank you very much for your message.
I'm attaching a printscreen.
All is going well till the last "Buetooth Write.vi", which is exiting prematurely.
I know how many bytes it sent because I can see the sent data on the PC VI.
In the mean time I solved the problem by spliting the file in 1 kB substrings and sending each substring at an 100 ms step.
In this way it seems I can obtain the same sending time like when sending manually with the Windows tools.
Tom
09-15-2008 03:43 PM
Hi Tom,
Glad to hear you have something working. Is this going to be an acceptable solution?
I am still not quite sure what the issue is here. If you need to prod at this further, how are you controlling the length of the data read on the PC side? Maybe try putting a wait between your last two writes, or the last write and the close connection.