This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ATD


| Date: Mon, 13 Oct 1997 16:42:59 +0200
| From: Sascha Ziemann <szi@aibon.ping.de>
| 
| is it possible to send some ATD commands to a modem with Guile?

I think I could do that once.  e.g.,

(define p (open-file "/dev/ttyS3" "r+0"))
(display "ATD3141592\r" p)

seems to work, but I can't read anything back.

I seem to remember having more success if the tty mode was
set first:

(define p (open-file "/dev/ttyS3" "r+0"))
(move->fdes p 0)
(system "stty -echo raw ignbrk ignpar istrip")
(display "AT\r")

but trying that now it doesn't seem to help.