Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!ucselx!crash!pnet01!lkoop From: lkoop@pnet01.cts.com (Lamonte Koop) Newsgroups: comp.sys.amiga.programmer Subject: Re: 1200/75 Split Speed problem Message-ID: <7659@crash.cts.com> Date: 20 Feb 91 10:16:02 GMT Sender: root@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 33 torkell@ifi.uio.no (Torkel Lodberg) writes: >I am currently working on a new version of the NComm communication Oh no...not you too...well, mine isn't really an NComm derivative anyway :-) >program, and would like to support split speed modems - meaning that >they read input at 1200 baud, while writing at only 75 baud. > >As far as I can see, this is not supported by the serial.device. On >the other hand, I can see that there are a few programs that offer >this "facility", so how does it work? Hmm...hadn't thought about this, but perhaps you could have the device open in two ways. For example, if you were running in this "split speed" mode, you could use two IOExtSer structures, and open the device twice...once for each setup, using the appropriate structure for each, and communicating with each on a seperate level. Say, Ser_Read could be opened with a 1200 baud setting, and Ser_Write could be opened with a 300 baud request, or whatever. [Or you could set the baud rates for each after opening, as long as you perform two seperate OpenDevice() calls]. However, this is purely speculation, as I haven't attempted doing such. One note: provided this method does work, you will not be able to exclusively open the serial.device with either request...(you must set SERF_SHARED in your flags)...moreoever, you will not be able to utilize hardware handshaking with the serial.device in shared mode. > >T.Lodberg LaMonte Koop Internet: lkoop@pnet01.cts.com ARPA: crash!pnet01!lkoop@nosc.mil UUCP: {hplabs!hp-sdd ucsd nosc}!crash!pnet01!lkoop "Yes, I am their leader...now tell me where they went!"