Intermec ck1 Reference Guide
Chapter 2 — Configuring the CK1 System
82
CK1 SDK Programmer’s Reference Manual
Writing PPP Configuration Files
Purpose: WritePPPConfig( ) writes PPP configuration files belonging to each
connection type.
WritePPPCurrentType( ) modifies the active connection type, and the
changes are active after reset.
changes are active after reset.
Syntax:
int WritePPPConfig(const int ConnectType, const struct
structPPPConfig *PPPConfig)
int WritePPPCurrentType(const int ConnectType)
On-CK1 Parameters:
int ConnectType :
ConnectType must be in these 4 modes -
CONNECT_TYPE_MS :CK1 acts as PPP server over MODEM
CONNECT_TYPE_MC :CK1 acts as PPP client over MODEM
CONNECT_TYPE_NS :CK1 acts as PPP server over null MODEM
CONNECT_TYPE_NC :CK1 acts as PPP client over null MODEM
struct structPPPConfig{
CONNECT_TYPE_MS :CK1 acts as PPP server over MODEM
CONNECT_TYPE_MC :CK1 acts as PPP client over MODEM
CONNECT_TYPE_NS :CK1 acts as PPP server over null MODEM
CONNECT_TYPE_NC :CK1 acts as PPP client over null MODEM
struct structPPPConfig{
int
Mute;
int
ARPProxySupport;
int
UsePeerDNS;
int
UsePeerDefaultRoute;
char
HostAddr[16];
char
PeerAddr[16];
char
PPPUserName[40];
char
PPPPassword[40];
char
PPPPhoneNumber[40];
int
TTYNumber;
int BaudRate;
int
ConnectTimeOut;
int
UserScript;
char ScriptFilename [64];
};
2.PPPConfig.Mute : Invalid now
3.PPPConfig.ARPProxySupport : invalid now
4.PPPConfig.UsePeerDNS : Valid in PPP client mode only,
2.PPPConfig.Mute : Invalid now
3.PPPConfig.ARPProxySupport : invalid now
4.PPPConfig.UsePeerDNS : Valid in PPP client mode only,
= 1 : use peer DNS setting
= 0 : use DNS setting we configured in
/etc/resolv.conf
5.PPPConfig.UsePeerDefaultRoute : Valid in PPP client
mode only
= 1 : Use peer PPP server as device
default router
6.PPPConfig.HostAddr[16] : Valid in PPP server mode only,
IP address assigned to device.
7.PPPConfig.PeerAddr[16] : Valid in PPP server mode only,
IP address assigned to PPP client.
8.PPPConfig.PPPUserName[40] : Valid in PPP client mode
only. User login name
9.PPPConfig.PPPPassword[40] : Valid in PPP client mode
only. User password
10.PPPConfig.PPPPhoneNumber[40] : Valid in PPP client
mode only. Phone number to dial.
If a prefix number is required to dial, use
If a prefix number is required to dial, use