home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
at3_15b.zip
/
ibm7855a.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-12-28
|
2KB
|
49 lines
/* ╔═════════════════════════════════════════════════════╗ */
/* ║ IBM7855A.CMD by Rob Hamerling (see AT3.DOC file). ║ */
/* ╚═════════════════════════════════════════════════════╝ */
/* Change portnumber into the appropriate value (2 for COM2 etc). */
/* Change phone number as desired. */
modem = 'IBM 7855-010'
port = '2'
speed = '19200'
phone = '322423'
Say ''
Say 'Customise 'modem' modem for ASYNC (put it in SYNC mode with &M2).'
Say 'Modem must have been set in AT-commandset mode from the frontpanel!'
say ''
say 'Modem is supposed to be on COM'port':'
set AT3'='
/* First see if the modem responds: */
AT3 port speed 'I'
if rc > 0 then signal noreply
/* Reset the modem to the factory settings: */
AT3 port '^&F1'
if rc > 0 then signal problem
/* Transmit the customisation commands: */
/* (this may be a little bit more than absolutely needed after &F1) */
AT3 port 'B0 E0 L1 M0 Q0 V1 X4 S0=0'
AT3 port '^&AP7 ^&AL8 ^&B8N1 ^&C1 ^&D2 ^&I0 ^&L0 ^&M0 ^&R1 ^&S2 ^&X0 ^&Y0'
AT3 port '^\A3 ^\C3 ^\G0 ^\K2 ^\M14 ^\N3 ^\Q2 ^\R2 ^\T2 ^\V1 ^\X0'
AT3 port '%%B0 %%C0 %%D0 %%E1 %%F1 %%G1 %%H1 %%I1 %%O1 %%R1 %%V0'
/* Store current configuration to both(!) NVM profiles */
AT3 port '^&W0 ^&W1'
/* Finally set the phone number to be auto-dialed in SYNC-mode. */
AT3 port '^&Z'phone
exit 0
problem:
if rc>0 then Say 'See returncode of reported function for probable cause.'
noreply:
if rc=255 then say '[rc='rc'] Is 'modme' modem connected to COM'port'?'
exit rc