Recent

Author Topic: DataPort or Synpase status  (Read 464 times)

eldonfsr

  • Hero Member
  • *****
  • Posts: 583
DataPort or Synpase status
« on: April 16, 2026, 11:32:18 pm »
Hi for who know better synapser or Dataport  what is the status of serial port when is sending and receiving data , the status change or not , what i need is know is the port is available to send data and don't send data when is receiving.....



mas steindorff

  • Hero Member
  • *****
  • Posts: 576
Re: DataPort or Synpase status
« Reply #1 on: April 19, 2026, 01:39:31 am »
I've only used synpase and later LazSynaSer but as a hardware man, an async port means independent send and read operations.
unless DataPort offers you some thing I sugest you look at using  hardware handshaking (RTS/CTS) setting it before you send something and clear it when done (which is harder due to buffering). RTS/CTS are more like suggestions, allowing a few more bytes to be sent before pausing. Event the UART chips back in the 80s had an internal 15 byte buffer.

LazSynaSer does include  .OnEndOfBlock and .onShowStatus call backs that allow access to some low level OS event reporting, but I believe this will be Driver dependent.
Most VCP come with buffers several hundred bytes big that you may be trying to degrade. a USB<=>bridge driver will wait until (timeout or byte count) before it passes the stream to it's device using a USB block transfer. You may be forced to sent one byte at a time at a low baud rate in order to bypass these OS driver buffers.
hope this post helps.  MAS   
windows 10 &11, Ubuntu 21+ IDE 3.4 general releases

eldonfsr

  • Hero Member
  • *****
  • Posts: 583
Re: DataPort or Synpase status
« Reply #2 on: May 09, 2026, 07:51:31 pm »
Thanks great explanation and clear for me...

serbod

  • Full Member
  • ***
  • Posts: 147
Re: DataPort or Synpase status
« Reply #3 on: May 10, 2026, 09:30:51 am »
DataPort does not check RTS/CTS hardware lines when sending data. It puts data into the Tx queue and periodically sends as much as fits into the device FIFO buffer.

 

TinyPortal © 2005-2018