;CFGPRSIN.INF
;The INF file will support Win95 OSR2/Win 98/Win Me/Win 2K
;Model Name : PRETEC-CompactGPRS
;Version : Ver 0.2
;Copyright (c) Reserved By C-One Technology Corp.
;Updated By Jeff Cheng, 2002.10.17

[Version]
LayoutFile=layout.inf, layout1.inf, layout2.inf
Signature="$CHICAGO$"
Class=Modem
Provider=%CONE%
ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
DriverVer=1/17/2001,5.00.2167.1

[Manufacturer]
%CONE% = CONE

[CONE]
%String0% = Modem, PCMCIA\PRETEC-CompactGPRS-4766,PCMCIA\PRETEC-CompactGPRS-02A5-0000 ; CompactGPRS 
%String1% = Modem, PCMCIA\PRETEC-CompactGPRS-EE88,PCMCIA\PRETEC-CompactGPRS-02A5-0000 ; CompactGPRS
%String2% = Modem, PCMCIA\PRETEC-CompactGPRS-3E48,PCMCIA\PRETEC-CompactGPRS-0279-950B ; CompactGPRS  
[Strings]
CONE = "C-One Technology Corp.,"
String0 = "PRETEC-CompactGPRS"
String1 = "PRETEC-CompactGPRS"
String2 = "PRETEC-CompactGPRS"

[Modem]
AddReg=All, Cone.AddReg, Modem.AddReg, PCMCIA 

[All]
HKR,,FriendlyDriver,,unimodem.vxd
HKR,,DevLoader,,*vcomm
HKR,,PortSubClass,1,02
HKR,,ConfigDialog,,modemui.dll
HKR,,EnumPropPages,,"modemui.dll,EnumPropPages"

[Modem.AddReg] 
; Dial Options|CallSetupFai|InactivTimer|SpeakerVolum|SpeakerMode |ModemOptions|MaxDTERate  |MaxDCERate
HKR,, Properties, 1, 80,01,00,00, 32,00,00,00, 32,00,00,00, 00,00,00,00, 00,00,00,00, 10,01,00,00, 00,C2,01,00, 00,C2,01,00
HKR,,PowerDelay,    0x10001, 15000
;HKR,,ConfigDelay,    0x10001, 15000

;typedef struct ModemProp {
;DWORD    DialOptions;          // bitmap of supported options  00,00,00,00,
;DWORD    CallSetupFailTimeout; // Maximum value in seconds	00,00,00,00,
;DWORD    InactivityTimeout;    // Maximum value in units	
;                               // specified by InactivityScale 00,00,00,00,
;DWORD    SpeakerVolume;        // bitmap of supported values	00,00,00,00,
;DWORD    SpeakerMode;          // bitmap of supported values	00,00,00,00,
;DWORD    ModemOptions;         // bitmap of supported values	10,01,00,00,
;DWORD    MaxDTERate;           // Maximum value in bit/sec	00,C2,01,00,
;DWORD    MaxDCERate;           // Maximum value in bit/sec	00,C2,01,00,
;} ModemProp
; from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modem/hh/modem/modemref1_50du.asp

[PCMCIA]
HKR,, DeviceType, 1, 03 ; PCMCIA
HKR,, PortDriver,, serial.vxd
HKR,, Contention,, *vcd

[Cone.AddReg]
HKR, Init, 1,, "AT<cr>"
HKR, Init, 2,, "AT<cr>"
HKR, Monitor, 1,, "AT<cr>"
HKR, Monitor, 2,, "None"
HKR, Answer, 1,, "ATA<cr>"
HKR, Hangup, 1,, "ATH<cr>"
HKR,, Reset,, "ATZ<cr>"
HKR, Settings, Prefix,, "AT"
HKR, Settings, Terminator,, "<cr>"
HKR, Settings, DialPrefix,, "D"
HKR, Settings, DialSuffix,, ""
HKR, Settings, Pulse,, ""
HKR, Settings, Tone,, ""
HKR, Fax, SetupCommand,, "ATS7=255&D3&K4"
HKR, Fax, HardwareFlowControl,, "1"
HKR, Fax, SerialSpeedInit,, "9600"
HKR, Fax\Class1\AdaptiveAnswer\AnswerCommand, 1,, "ATS7=90S25=2"
HKR, Fax\Class1\AdaptiveAnswer\AnswerCommand, 2,, "ATA"
HKR, Fax\Class1\AdaptiveAnswer, ModemResponseFaxConnect,, "CONNECT"
HKR, Fax\Class1\AdaptiveAnswer, ModemResponseDataDetect,, "CARRIER"
HKR, Fax\Class1\AdaptiveAnswer, ModemResponseDataConnect,, "CONNECT"
HKR, Fax\Class2\AdaptiveAnswer\AnswerCommand, 1,, "ATS7=90S25=2"
HKR, Fax\Class2\AdaptiveAnswer\AnswerCommand, 2,, "ATA"
HKR, Fax\Class2\AdaptiveAnswer, ModemResponseFaxConnect,, "+FCO"
HKR, Fax\Class2\AdaptiveAnswer, ModemResponseDataDetect,, "CARRIER"
HKR, Fax\Class2\AdaptiveAnswer, ModemResponseDataConnect,, "CONNECT"

;DTE/DCE speeds will not be exact for generic modems because we will
;treat CONNECT ### as a DCE speed when some modems will report it as DTE.
HKR, Responses, "<cr>",        1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<lf>",        1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>OK<cr><lf>",          1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CARRIER<cr><lf>",     1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>RING<cr><lf>",        1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO CARRIER<cr><lf>",  1, 04, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>ERROR<cr><lf>",       1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>BUSY<cr><lf>",        1, 06, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO ANSWER<cr><lf>",   1, 07, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT<cr><lf>",     1, 02, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+FCERROR<cr><lf>",    1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>DELAYED<cr><lf>",     1, 1D, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>BLACKLISTED<cr><lf>", 1, 1C, 00, 00,00,00,00, 00,00,00,00

HKR, Responses, "0<cr>",       1, 00, 00, 00,00,00,00, 00,00,00,00 ; OK
HKR, Responses, "2<cr>",       1, 08, 00, 00,00,00,00, 00,00,00,00 ; RING
HKR, Responses, "3<cr>",       1, 04, 00, 00,00,00,00, 00,00,00,00 ; NO CARRIER
HKR, Responses, "4<cr>",       1, 03, 00, 00,00,00,00, 00,00,00,00 ; ERROR
HKR, Responses, "5<cr>",       1, 02, 00, b0,04,00,00, 00,00,00,00 ; Connect
HKR, Responses, "6<cr>",       1, 05, 00, 00,00,00,00, 00,00,00,00 ; NO DIALTONE
HKR, Responses, "7<cr>",       1, 06, 00, 00,00,00,00, 00,00,00,00 ; BUSY
HKR, Responses, "8<cr>",       1, 07, 00, 00,00,00,00, 00,00,00,00 ; NO ANSWER
HKR, Responses, "10<cr>",      1, 02, 00, 60,09,00,00, 00,00,00,00 ; Connect
HKR, Responses, "11<cr>",      1, 02, 00, c0,12,00,00, 00,00,00,00
HKR, Responses, "12<cr>",      1, 02, 00, 80,25,00,00, 00,00,00,00
HKR, Responses, "13<cr>",      1, 1D, 00, 00,00,00,00, 00,00,00,00 ; Delayed
HKR, Responses, "14<cr>",      1, 1C, 00, 00,00,00,00, 00,00,00,00 ; Blacklisted
HKR, Responses, "16<cr>",      1, 01, 00, 00,00,00,00, 00,00,00,00 ; Negotiation Progress
HKR, Responses, "+F4<cr>",     1, 03, 00, 00,00,00,00, 00,00,00,00 ; Error
HKR, Responses, "OK",          1, 00, 00, 00,00,00,00, 00,00,00,00 
HKR, Responses, "RING",        1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "NO CARRIER",  1, 04, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "ERROR",       1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "NO DIALTONE", 1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "NO DIAL TONE",1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "BUSY",        1, 06, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "NO ANSWER",   1, 07, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "FAX",         1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "DATA",        1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "VOICE",       1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "RINGING",     1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "DIALING",     1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "RRING",       1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "DELAYED",     1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "BLACKLISTED", 1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "+FCERROR",    1, 03, 00, 00,00,00,00, 00,00,00,00

HKR, Responses, "CONNECT 9600",            1, 02, 00, 80,25,00,00, 00,00,00,00
HKR, Responses, "CONNECT 14400",           1, 02, 00, 40,38,00,00, 00,00,00,00
HKR, Responses, "CONNECT 115200",          1, 02, 00, 00,00,00,00, 00,C2,01,00

; Distinctive Ring
HKR, Responses, "<cr><lf>+CRING: ASYNC<cr><lf>",               1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+CRING: REL ASYNC<cr><lf>",           1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+CRING: FAX<cr><lf>",                 1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+CRING: VOICE<cr><lf>",               1, 08, 00, 00,00,00,00, 00,00,00,00

; Service Reporting Control
HKR, Responses, "<cr><lf>+CR: ASYNC<cr><lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+CR: REL ASYNC<cr><lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
