Re: Как попасть в командный режим модема
Отправлено: Николай Б. on August 20, 1998 at 12:34:13:
В ответ на: Как попасть в командный режим модема posted by Сергей on August 20, 1998 at 10:00:06:
> Change Manually by Sending AT Commands to Integrated Modems > Manageable Microcom modems have an out-of-band feature, which is used to poll modem > statistics and transmit AT commands. The Cisco IOS software uses a direct connect session to > transfer information through this out-of-band feature. To send AT commands to a Microcom > modem, you must permit a direct connect session for a specified modem, open a direct connect > session, send AT commands to a modem, and clear the directly connected session from the > modem when you are finished. > Note This sections does not describe how to send AT commands to MICA digital modems. If > your system uses MICA modems, refer to the publication AT Command Set and Register > Summary for MICA Six-Port Modules.
> Open a direct connect session by issuing the modem at-mode slot/port command in Privileged > EXEC mode. From here, you can transmit AT commands directly from your terminal session > window to the internal Microcom modems. Most incoming or outgoing calls on the modems are > not interrupted when you open a direct connect session and transmit AT commands. However, > some AT commands interrupt a call--for example, the ATH command, which hangs up a call. > Open and close one direct connect session at a time. Beware that multiple open sessions slow > down modem performance.
> Refer to the AT command set that came with your router for a complete list of AT commands > that you can transmit to the modems. > For Microcom modems, you can clear or terminate an active directly connected session in two > ways: > Press Ctrl-C after transmitting all AT commands as instructed by the system when you > enter AT command mode. > Enter a second Telnet session and enable the clear modem at-mode slot/port command in > EXEC configuration mode. This method is used for closing a directly connected session > that may have been mistakenly left open by the first Telnet session. > Transmit AT Command Example > The following example opens a directly connected session on modem 1/1, enters AT command > mode on modem 1/1, and transmits the at%v and at\s commands via the out-of-band feature on > modem 1/1: > router# modem at-mode 1/1 > You are now entering AT command mode on modem (slot 1 / port 1). > Please type CTRL-C to exit AT command mode. > at%v > MNP Class 10 V.34/V.FC Modem Rev 1.0/85 > OK > at\s > IDLE 000:00:00 > LAST DIAL > NET ADDR: FFFFFFFFFFFF > MODEM HW: SA 2W United States > 4 RTS 5 CTS 6 DSR - CD 20 DTR - RI > MODULATION IDLE > MODEM BPS 28800 AT%G0 > MODEM FLOW OFF AT\G0 > MODEM MODE AUT AT\N3 > V.23 OPR. OFF AT%F0 > AUTO ANS. ON ATS0=1 > SERIAL BPS 115200 AT%U0 > BPS ADJUST OFF AT\J0 > SPT BPS ADJ. 0 AT\W0 > ANSWER MESSGS ON ATQ0 > SERIAL FLOW BHW AT\Q3 > PASS XON/XOFF OFF AT\X0 > PARITY 8N AT > The manageable modem returns "OK" if the AT command you transmit is successfully enabled. > Clear a Direct Connect Session from a Second Telnet Session Example > The following examples are for Microcom modems. > The following example shows how to execute the modem at-mode command from a Telnet > session: > router# modem at-mode 1/1 > The following example shows how to execute the clear modem at-mode command from a > second Telnet session while the first Telnet session is connected to the modem: > router# clear modem at-mode 1/1 > clear "modem at-mode" for modem 1/1 [confirm] > router# > The following output is displayed in the first Telnet session after the modem is cleared by the > second Telnet session: > Direct connect session cleared by vty0 (171.69.1.164) > Этот пример взят c серверf Cisco > http://www.cisco.com/warp/public/700/tech_configs.html
Отклики:
Написать ответ
|