.NET Components for Mobility

NetworkStream.Write Buffer overflow consideration?

Last post 10-03-2008 4:31 PM by alanjmcf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-28-2008 7:33 PM

    • zxed
    • Top 200 Contributor
    • Joined on 09-20-2008
    • Posts 4

    NetworkStream.Write Buffer overflow consideration?

    Is there any way to determine if the BT write stream and the buffer have finished processing the previous data transmitted?

     In other words... when streaming a large block of data to a bluetooth printer, the printers buffer gets garbaged because some commands get mixed up because the stream from the device is much faster than what the device can handle.

    I have seen this issue before when using fransons searial.net, i then switched to princece tools from fieldsoftware and that seems to work when writing to the serial port on the bt device over bt...

  • 10-03-2008 4:31 PM In reply to

    Re: NetworkStream.Write Buffer overflow consideration?

    Well, as I understand it, the remote Bluetooth device should have correct flow-control to signal to the local Bluetooth device that its buffers are filling up and that stops the local device from sending so the overflow never happens.  If the remote device isn't signalling in that way then it seems difficult to avoid that apart from sending the data more slowly.

    Anyone else know if that's how it's meant to work...

    Alan

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.