01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gateway in the PPPSERVER section of the chip.inifor the PPP server interface, it<br />

becomes the default gateway for all interfaces when a PPP link to the server is<br />

established. During a PPP server connection the command ipcfg indicates this default<br />

gateway. After the PPP session, the old gateway (if any) for the Ethernet interface will be<br />

restored. As of <strong>@CHIP</strong>-<strong>RTOS</strong> version 070, the TCP/IP API supports adding and deleting<br />

a default gateway:<br />

10. Choose authentication mode with the AUTH directive.<br />

11. Initialize the analogue modem.<br />

You can define three sets of modem initialization parameters. These parameters are used to<br />

initialize the modem at the start of the <strong>IPC<strong>@CHIP</strong></strong> <strong>@CHIP</strong>-<strong>RTOS</strong> and after a modem hang-up<br />

following a PPP session.<br />

Each of the three parameter sets consists of the following four parameters:<br />

■ INITCMD string - Command sent to the modem to initialize it.<br />

■ INITANSWER string - Expected modem response to initialization command.<br />

■ INITTIMEOUT integer - Number of seconds to wait on answer from modem.<br />

■ INITRETRIES integer - Number of times to repeat modem initialization sequence if a<br />

previous attempt fails.<br />

Example:<br />

INITCMD0=ATZ<br />

INITANSWER0=OK<br />

INITTIMEOUT0=2<br />

INITRETRIES0=3<br />

INITCMD1=AT&D0<br />

INITANSWER1=OK<br />

INITTIMEOUT1=2<br />

INITRETRIES1=3<br />

INITCMD2=AT<br />

INITANSWER2=OK<br />

INITTIMEOUT2=2<br />

INITRETRIES2=2<br />

A timeout value 0 means wait forever for the modem's answer.<br />

If you enter the string NULL at an INITANSWER (e.g. INITANSWER0=NULL), the <strong>IPC<strong>@CHIP</strong></strong><br />

PPP server will not wait for an answer from the modem.<br />

12. Define a maximum of three modem commands for getting connected to the remote peer.<br />

Example:<br />

CONNECTMSG0=RING<br />

CONNECTANSWER0=ATA<br />

CONNECTTIMEOUT0=0<br />

CONNECTMSG1=CONNECT<br />

CONNECTTIMEOUT1=60<br />

These are the default values for modem connect commands.<br />

In this example the PPP server waits forever for the RING message and sends<br />

an ATA to the modem if it responds to the RING. After that the server waits<br />

a maximum of 60 seconds for a response to the CONNECT message. The modem link<br />

is established. The server now establishes the PPP connection to the remote<br />

client.<br />

Note:<br />

Do not use the AT command ATS0=1. This will cause the modem to automatically answer<br />

Page 354 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!