comp.lang.ada
 help / color / mirror / Atom feed
* Asynchronous I/O on a serial device
@ 2011-06-11 21:46 Kim Rostgaard Christensen
  2011-06-12  5:23 ` Randy Brukardt
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Kim Rostgaard Christensen @ 2011-06-11 21:46 UTC (permalink / raw)


Hi there

I am desperately trying to implement a protocol on top of a serial 
transport.

I am running Debian, and for the moment using /dev/ttyACM0 for reading. 
This works fine using standard the Text_IO package and In_File.
Only, when I need to write to the device It fails because It is in 
In_File mode - Obviously.
Reset on the file handle gives me a USE_ERROR exception, probably due to 
it being a special file - please correct me if I am wrong.

Do I need to implement this more system-near/specific, or is there some 
way I can do bi-directional communication like, for instance two file 
handles. (I tried Form => "shared=yes", and it also failed).

It is a usb device that emulates UART, and it seems to be contempt with 
just about any Baud setting.

/Kim



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-06-15 17:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-11 21:46 Asynchronous I/O on a serial device Kim Rostgaard Christensen
2011-06-12  5:23 ` Randy Brukardt
2011-06-12  7:33   ` Kim Rostgaard Christensen
2011-06-12  5:42 ` Yannick Duchêne (Hibou57)
2011-06-12  7:49   ` Kim Rostgaard Christensen
2011-06-12 10:35     ` Kim Rostgaard Christensen
2011-06-12 11:04     ` Yannick Duchêne (Hibou57)
2011-06-12 18:06       ` Kim Rostgaard Christensen
2011-06-12 21:01 ` anon
2011-06-14  6:37   ` Kim Rostgaard Christensen
2011-06-15 17:02     ` Simon Clubley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox