LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Err sending file by BT from PDA

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 

0 Kudos
Message 1 of 4
(2,947 Views)

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, 

Brian A.
National Instruments
Applications Engineer
Message 2 of 4
(2,923 Views)

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 

0 Kudos
Message 3 of 4
(2,891 Views)

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.

Brian A.
National Instruments
Applications Engineer
Message 4 of 4
(2,861 Views)