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.

the call without waiting for the PPP server. This is too fast for the PPP server.<br />

13. Hang-up the connection.<br />

The PPP server will attempt to hang-up the modem when either a connection<br />

is closed by a remote peer, or if the modem initialization failed during<br />

the <strong>IPC<strong>@CHIP</strong></strong> boot process.<br />

`. Switch the modem into the command mode (CMDMODE and HANGUPDELAY)<br />

Example:<br />

CMDMODE=+++<br />

HANGUPDELAY=2<br />

These are the default values.<br />

a. Define modem commands and expected answers for hang-up.<br />

Again, up to three sets of these parameters can be given here.<br />

Example:<br />

HANGUPCMD0=ATH0<br />

HANGUPANSWER0=OK<br />

HANGUPTIMEOUT0=2<br />

HANGUPRETRIES0=1<br />

If you enter the string NULL at an HANGUPANSWERx (e.g. HANGUPANSWER0=NULL),<br />

the <strong>IPC<strong>@CHIP</strong></strong> PPP<br />

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

14. Control the online state while PPP session is open.<br />

You can define three sets of modem control parameters. These parameters are<br />

used to check the online state of the modem at an open PPP connection.<br />

`. Enable online control sequence MODEMCTRL=1.<br />

The default is 0 (disabled).<br />

Example:<br />

MODEMCTRL=1<br />

Also you have to configure a control time interval (in seconds). After each time interval<br />

during which the PPP server receive no data, the server executes the configured modem<br />

commands. The server closes the connection, if one of the expected answers timed out.<br />

a. Define a CTRLTIME.<br />

E.g. CTRLTIME=120 default is 60 seconds<br />

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

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

■ CTRLANSWER string - Expected modem response to control command.<br />

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

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

previous attempt fails.<br />

Example and default settings:<br />

CTRLCMD0=+++<br />

CTRLANSWER0=OK<br />

Page 355 / 400

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

Saved successfully!

Ooh no, something went wrong!