1
<chapter id="modem-tricks">
3
>Trucs met modems en hints</title>
6
>Deze sectie zou de gevreesde kwalificatie moeten krijgen op de ereplaats van modem-tweaking. De commando's hier voldoen allen aan de Hayes AT standaard, maar niet alle modems zijn gelijk, dus kunnen ze anders zijn.</para>
8
<sect1 id="modem-sessions">
10
>Modem-sessies</title>
13
>Een modemsessie stelt u in staat direct met het modem te werken. U typt commando's en het zal antwoorden. Om een modemsessie te krijgen, wanneer er geen verbinding actief is, gaat u in de dialoog <guibutton
19
>. Dit zal een venster voor interactieve instelling van het modem openen. Probeer <userinput
23
> in te typen (wat uw modem zal resetten). U zou een antwoord OK moeten krijgen. Gebruik <menuchoice
29
> om de sessie te beëindigen.</para>
33
<sect1 id="modem-profiles">
35
>Modem-profielen</title>
38
>One reason you might want to send the modem commands directly is if you have a set of modem configurations you want to keep, and not have to specify for every connection. A good way to do that is via modem profiles. Modems can have several stored profiles numbered 0,1,... <command
40
> can be used to view them all. The default profile is usually 0 (this can be changed via <command
42
>.) The profile currently in use is called the <quote
47
>When you change a setting, the active profile is modified. The <command
49
> command will have the modem load the default profile, erasing any changes you have made. To save changes, Load the profile you want to change via <command
55
> is the profile number). Make the changes you want, then save it with <command
59
>. To have kppp use the profile you want, change the modem initialization string (<guibutton
64
>Modem Commands</guibutton
66
>Initialization String</guilabel
67
>.) For example <command
69
> will have the kppp reset the modem and use stored profile #1.</para>
72
>If you want reset you modem to get back to some known starting point, use <command
73
>AT&F&W</command
74
> to set the active profile to the factory defaults, and store those settings as the default profile.</para>
77
>Voorbeelden van profielwijzigingen staan in de volgende sectie</para>
81
<sect1 id="modem-hangup">
83
>Het modem laten ophangen</title>
86
>Sometimes you may find that &kppp; has difficulties hanging up the modem. This is likely the result of a mismatch between &kppp; settings and those of the modem. A standard modem uses two methods to decide to hangup: <link linkend="hangup-command-method"
88
>, and <link linkend="hangup-dtr-method"
92
>. The Command method involves sending an escape sequence to the modem, which puts it in command mode, then issuing the hangup command (<command
97
>Outside of &kppp;, when configuring the <application
99
> package manually, it's often helpful to use the command method, so that one can exit a terminal session, and then start <application
101
> without having the modem hangup. In most other situations, the <acronym
103
> method is preferred, as it is simpler.</para>
105
<sect2 id="hangup-dtr-method">
116
> method will have the modem hangup whenever &kppp; stops using the modem. If you obtain a modem session, and query the state via <command
118
>, and you can see among the displayed settings for the active profile a <command
122
> hangup method is disabled. To enable the <acronym
124
> method, use the <guibutton
126
> button to get a modem session, then:</para>
134
># reset naar standaard profiel</lineannotation>
140
># Instellen om op te hangen bij vallen van DTR</lineannotation>
146
># Schrijf naar standaard profiel</lineannotation
154
>-methode werkt</title>
157
>Whenever the Data Terminal Ready (<acronym
159
>) line on the serial line between the host computer and the modem goes high, the modem hangs up. When &kppp; opens the serial port, the <acronym
161
> line is pulled low, on an external modem, you can see the <acronym
165
>) light come on when this happens. When the <acronym
167
> light goes out (because &kppp; has closed the serial port, or something worse!), the modem will hangup.</para>
172
<sect2 id="hangup-command-method">
174
>Command method</title>
177
>The other way to have a modem hang up when connected (used when <command
178
>AT&D<replaceable
183
> is not <returnvalue
185
>) is to have the modem accept the command when a session is in progress. To have it hang up properly, get a modem session, and set the guard time to a short interval like so:</para>
188
><userinput><command>ATZ</command></userinput>
189
<userinput><command>ATS12=5</command></userinput>
190
<userinput><command>AT&W</command></userinput>
194
>Then use the <guilabel
195
>Guard Time</guilabel
196
> slider in the Modem commands section to match the register (<varname
198
> to this value <returnvalue
200
>. The modem should then hangup properly.</para>
204
>How the Command Method Works</title>
207
>When the local modem is connected to a remote modem, it is in the <quote
209
> state, where it passes all characters it receives to the remote modem without interpretation. To have the modem accept the characters as commands for itself, one must put the modem into the command state. The escape code does this.</para>
212
>The escape code is defined as being three intervals of time whose length is defined by <varname
214
> in fiftieths of a second.</para>
219
>Quiet (must last more than <varname
225
>Escape character (defined by the register <varname
227
>, the default is <quote
229
>), repeated three times (less than <varname
231
>/50 seconds between each.</para>
235
>Quiet (must last more than <varname
242
>Once the modem is in the command state, you can send it commands. To have it hang up, send the command <command
244
>. The escape codes and the hangup string used by &kppp; are shown in the <link linkend="modem-commands"
246
>Modem Commands</guilabel
248
> dialog. These should match your modem.</para>
254
<sect1 id="tone-dialing-speedup">
256
>Make Tone dialing faster</title>
259
>If you can use tone dialing, the amount of time it takes to dial can be changed using the <varname
261
> register. It gives the duration (in 100hundreds of a second) to send each tone while dialing. The default is usually 95 (almost a second.) How fast you can dial depends on the phone company's switching equipment which handles your line. The minimum duration is 50, almost twice as fast, and that speed often works. </para>
264
><userinput><command>ATZ</command></userinput> <lineannotation># reset to default profile</lineannotation>
265
<userinput><command>ATS11=50</command></userinput> <lineannotation># fastest possible dialing, use a higher number if it doesn't work</lineannotation>
266
<userinput><command>AT&W</command></userinput> <lineannotation># write to default profile</lineannotation>