Re: Newbie Needs Ada Advice



On Fri, 4 May 2007 15:19:01 -0400, Bob Spooner wrote:

"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> wrote in message
news:tylf07eikj2s.1khde2c9zxxku$.dlg@xxxxxxxxxxxxx
On Fri, 4 May 2007 08:57:08 -0400, Bob Spooner wrote:

<tmoran@xxxxxxx> wrote in message
news:a62dnVplZ7QMLKfbnZ2dnUVZ_uOmnZ2d@xxxxxxxxxxxxxx
... I control my home X10 system with an Ada program using
the serial port with regular Windows calls.

Do you have an Ada binding for the Windows serial port driver that
implements overlapped I/O?

Win32.Winbase.ReadFile?
?
Translation please?

Windows API CreateFile / ReadFile / WriteFile do overlapped I/O for all
devices that support it. COM port does support it (though with Ada tasking
it is simpler to do input and output from two separate tasks, if
full-duplex I/O is all what you need. I don't know, maybe, you want to
handle 100+ ports, then possibly overlapped I/O would make sense.) Anyway,
you don't need any special bindings for doing overlapped I/O beyond Windows
API.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Overlapped Serial Ports and buffering
    ... I'm writing a serial port class. ... I converted the class to use basic OVERLAPPED I/O. ... Did this possibly change between Windows 2000 and Windows ...
    (microsoft.public.development.device.drivers)
  • Re: Flow Control on Serial Device
    ... I found out that if I just reboot my pc from Windows to Linux ttyS0 behaves ... Then I see in Linux the same status as in WT: rts on, ... means your serial port is not active... ...
    (comp.os.linux.networking)
  • Re: Multimedia Timer
    ... First, as already observed, WIndows is *not* a real-time system, and 20ms events are ... Does the recipient of the serial port data need to receive one "chunk" ... delete buffer; ... That's because I need those 20ms delay between two requests. ...
    (microsoft.public.vc.mfc)
  • Re: Flow Control on Serial Device
    ... I use exactly the same cable as with the windows program. ... I also tried to set RTS on and off via ioctl, ... indeed a straight through cable? ... properly configure your serial port, ...
    (comp.os.linux.networking)
  • Re: Bluetooth Serial Port Profile and Tcl communications
    ... but it appears not to be - at least in what I am experiencing. ... dongle connected to a PC running Windows XP SP3). ... His Tcl serial port monitor ... the dongle and BT module are paired up first over Windows 'My ...
    (comp.lang.tcl)