Why not simply setup your outbound and inbound buffer size the same, connect data out to data in on the same serial port the after the data has been transmitted check if the data was sent purly bny checking the inbound buffer contents. or set the buffers to a smaller capacity. --- Bob Ammerman wrote: > Unfortunately, under Windows there is no way to know > if all the bytes you > have written have been sent out the serial port. The > bytes could be laying > around in any of several buffers--your application > buffer for overlapped > I/O, the system buffers, the I/O driver buffer, > buffers on an intelligent > serial card if present, or even the UART's FIFO. > This is true whether you > use a layer like AsyncPro or write directly to the > Win32 API. > > The best you can do, IMO, is to set up (timer > component) delays based on the > length of the message. You basically 'hope' that > Windows will blast the > characters out the line at full line speed, and that > any jitter on your > timer won't exceed the limitations imposed by the > far end device's > turnaround time. > > This is yet one more limitation of Windows, and > desktop OS's in general, > when trying to deal with the 'real-time' world. > > Bob Ammerman > RAm Systems > (contract development of high performance, high > function, low-level > software) > > ----- Original Message ----- > From: David Duffy > To: > Sent: Monday, January 15, 2001 6:16 AM > Subject: [OT]: Delphi -> Radio Link -> PIC > > > > I want to use Delphi 5 with Async Pro 3 to talk to > a remote > > piece of equipment that has my PIC in it. The data > link is a > > radio-modem (UHF) that needs to be keyed on for > 250ms or > > so before sending the data. Does anyone know how > to set > > Async Pro to raise RTS before transmission of the > data? > > Using RS485 mode won't work as there is no real > delay from > > raising RTS & sending the data out in that mode. I > could raise > > RTS myself & wait to send the data using a timer > component > > but then there is no reliable way to know when the > data has > > finished being sent. (or is there?) Thanks in > advance... > > ___________________________________________ > > David Duffy Audio Visual Devices P/L > > U8, 9-11 Trade St, Cleveland 4163 Australia > > Ph: +61 7 38210362 Fax: +61 7 38210281 > > New Web: www.audiovisualdevices.com.au > > New email: avd@audiovisualdevices.com.au > > ___________________________________________ > > > > -- > > http://www.piclist.com#nomail Going offline? Don't > AutoReply us! > > email listserv@mitvma.mit.edu with SET PICList > DIGEST in the body > > > > > > -- > http://www.piclist.com#nomail Going offline? Don't > AutoReply us! > email listserv@mitvma.mit.edu with SET PICList > DIGEST in the body > > ===== Andy Faulkner andyf97@yahoo.com Pyrosync International http://www.pyrosync.co.uk Tel +44 778 896 6087.....................UK Dial 0778 896 6087 Fax +44 870 132 3275.....................UK Dial 0870 132 3275 http://www.event-supplies.co.uk http://www.spectacular-fireworks.co.uk __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body