gilgan@ug.cs.dal.ca (S.O.D.) (02/07/90)
Could someone PLEASE send me some source and/or explain to me the process involved in getting the serial port(for a modem) working... I thought I had it under control but I don't. Specifically I need to be able to open the device ,set the baud and stop bits etc.., read and write to the modem. I have used the intuition for programming but I have no information on anything else(I have the intuition reference manual). Even if you don't have any source, but still understand, please give me a few clues, I'm getting desperate. Thanks, Tom
ckp@grebyn.com (Checkpoint Technologies) (02/08/90)
In article <1990Feb7.002532.15450@ug.cs.dal.ca> gilgan@ug.cs.dal.ca (S.O.D.) writes: > > Could someone PLEASE send me some source and/or explain to me > the process involved in getting the serial port(for a modem) > working... I thought I had it under control but I don't. You really need to pick up the ROM Kernel Manual: Libraries and Devices. It has example code in it for opening, reading and writing, and setting line parameters. The new revised edition has just hit the streets and it's a god one.
new@udel.edu (Darren New) (02/08/90)
A couple of questions: I'm trying to talk to the serial port with timeouts. One possible way of doing this is to use three tasks: A waits on a mport, B reads the serial device and sends lines to the mport, and C sends "ticks" to the mport. However, I want to be able to write to the port while a read is pending (chat mode, y'know). It seems I can do this with the console CON: device because I can get output from a RUN program while the CLI is prompting for more input. However, I don't know if AUX: will allow me to do this also. Due to technical reasons, I cannot currently connect a terminal to my Amiga to see what is the case experimentally, but I'm assuming it is possible since AUX: is supposed to supply a CON:-like facility. If all else fails, I can go to serial.device, but I would rather write this mess in ARexx. As an aside, does anybody know how to get a host written in ARexx and using WAITPORT() and REPLY() to return a string instead of an integer as the result of a command? Has anybody written a library to allow this? -- Darren