#========================================================= # Note: the modem commands are for an ELINK310 ISDN modem #========================================================= # # wait for modem to become ready # dsrwait 2 fail # # get extended modem information # send 2 fail ATI4\r # # jump to initialization if wrong protocol # wait 3 init EDSS1 # # wait for command output to drain # wait 2 fail OK # # modem is in edss1 mode, goto setup # goto setup # # configure modem for edss1 # :init # # send protocol test command # send 2 fail AT\\D9\r # # wait for edss1 detect answer # wait 5 fail EDSS1\b...\bOK # # wait for command output to drain # wait 2 fail OK # # common modem setup # :setup # # set msn (note: set your own ISDN msn) # send 2 fail AT\\E9498027\r # # wait for acknowledge # wait 2 fail OK # # set idle autodisconnect # send 2 fail ATS30=019\r # # wait for acknowledge # wait 2 fail OK # # use X.75 # send 2 fail AT&B49\r wait 2 fail OK # # set 512 byte buffer size # send 2 fail AT\\A2\r wait 2 fail OK # # enable full RTS/CTS handshake # send 2 fail AT\\Q3\r wait 2 fail OK # # switch to hotcall mode (note: use the number of your # own partner, no one will listen on the number below) # send 2 fail AT%H9495295\r # # wait for acknowledge # wait 2 fail HOTCALL # # assert that dcd is set # dcdwait 1 fail # # wait for remote side to send initialization message # expect 60 fail VPND\r\n # # send answer to message # send 2 fail DNPV\r\n # # wait for a second to let remote side receive answer # sleep