And modem shall talk unto telephone......

John Hinsley jhinsley at telinco.co.uk
Fri Aug 3 10:00:29 UTC 2001


I'm trying to get my modem to talk to the telephone (more precisely, to
dial a phone number).

I'm guessing I need to use primitiveSerialPortOpen: to open the port.
Then I can chuck some Hayes commands (or Diamond's version of Hayes
commands) at it.

Now primitiveSerialOpen: wants the following ----

primitiveSerialPortOpen: portNum baudRate: baudRate stopBitsType:
stopBitsType parityType: parityType dataBits: dataBits
inFlowControlType: inFlowControl outFlowControlType: outFlowControl
xOnByte: xOnChar xOffByte: xOffChar

I can get some of this from setserial:

setserial -a /dev/cua2
/dev/cua2, Line 2, UART: 16550A, Port: 0x03e8, IRQ: 5
        Baud_base: 115200, close_delay: 50, divisor: 0
        closing_wait: 3000, closing_wait2: infinte
        Flags: spd_normal skip_test

So I guess we'd have

primitiveSerialPortOpen: /dev/cua2 "maybe ttyS2" 115200: 

But the rest is all gobbledegook. 

And, come to think of it, I don't usually do all that when I use the
modem. Am I right in thinking that I can simply issue commands directly
to SerialPort?

Cheers

John


-- 
******************************************************************************
Marx: "Why do Anarchists only drink herbal tea?"
Proudhon: "Because all proper tea is theft."
******************************************************************************




More information about the Squeak-dev mailing list