; Developed by Thesycon GmbH in the authority of Siemens AG Wireless Modules

; winmux2k.inf
;
; Installation file (.inf) for the Serial Mux device.
;
; (c) Copyright 2001 Thesycon Systemsoftware & Consulting GmbH
;

[Version]
Signature="$Windows NT$"
Provider=%S_Povider%
ClassGUID={50906cb8-ba12-11d1-bf5d-0000f805f530}
Class=MultiportSerial
CatalogFile=winmux2k.cat
DriverVer=08/12/2003,2.01

;
; Driver information
;

[Manufacturer]
%S_Mfg%=_Devices

[_Devices]
%Siemens.DeviceDesc0% = winmux2kOff,     SW\{E314DB0D-30B0-46b4-8930-6B38E82B2D28}
%Siemens.DeviceDesc1% = winmux2kTC35i,   SW\{9A8573AC-6023-4fa2-9A8A-4DCB055F7064}
%Siemens.DeviceDesc2% = winmux2kOn,      SW\{87CACED3-EF29-43be-B29B-ECE1F5E38956}
%Siemens.DeviceDesc3% = winmux2kOnNoDSR, SW\{E2F22993-2434-44b7-A039-AD7DA525180C}

;
; General installation section
;

[winmux2kOff]
CopyFiles=_CopyFiles_sys, _CopyFiles_dll
AddReg=_AddReg_SW

[winmux2kTC35i]
CopyFiles=_CopyFiles_sys, _CopyFiles_dll
AddReg=_AddReg_SW

[winmux2kOn]
CopyFiles=_CopyFiles_sys, _CopyFiles_dll
AddReg=_AddReg_SW

[winmux2kOnNoDSR]
CopyFiles=_CopyFiles_sys, _CopyFiles_dll
AddReg=_AddReg_SW


[winmux2kOff.HW]
AddReg=_AddReg_HW_General, _AddReg_HW_Off

[winmux2kTC35i.HW]
AddReg=_AddReg_HW_General, _AddReg_HW_TC35i

[winmux2kOn.HW]
AddReg=_AddReg_HW_General, _AddReg_HW_On

[winmux2kOnNoDSR.HW]
AddReg=_AddReg_HW_General, _AddReg_HW_OnNoDSR


[winmux2kOff.CoInstallers]
AddReg = winmux2k.CoInstallers_AddReg

[winmux2kTC35i.CoInstallers]
AddReg = winmux2k.CoInstallers_AddReg

[winmux2kOn.CoInstallers]
AddReg = winmux2k.CoInstallers_AddReg

[winmux2kOnNoDSR.CoInstallers]
AddReg = winmux2k.CoInstallers_AddReg

[winmux2k.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"Wmuxprop.dll,SerialMuxCoInstaller"


;
; Service Installation
;

[winmux2kOff.Services]
AddService = winmux2k, 0x00000002 , winmux2k_Service_Inst, winmux2k_EventLog_Inst

[winmux2kTC35i.Services]
AddService = winmux2k, 0x00000002 , winmux2k_Service_Inst, winmux2k_EventLog_Inst

[winmux2kOn.Services]
AddService = winmux2k, 0x00000002 , winmux2k_Service_Inst, winmux2k_EventLog_Inst

[winmux2kOnNoDSR.Services]
AddService = winmux2k, 0x00000002 , winmux2k_Service_Inst, winmux2k_EventLog_Inst


[winmux2k_Service_Inst]
DisplayName    = %winmux2k.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0x1                ; SERVICE_ERROR_NORMAL
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\winmux2k.sys


[winmux2k_EventLog_Inst]
AddReg = winmux2k_EventLog_AddReg

[winmux2k_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\winmux2k.sys"
HKR,,TypesSupported,0x00010001,7


[_AddReg_SW]
HKLM,"SYSTEM\CurrentControlSet\Services\winmux2k",,,
HKLM,"SYSTEM\CurrentControlSet\Services\winmux2k\Parameters",,,
HKR,,EnumPropPages32,,"WmuxProp.dll,SerialMuxPropPageProvider"

[_AddReg_HW_General]
; the following keys will be written in the registry by the install program
; VirtPort1
; VirtPort2
; VirtPort3
; VirtualChannels
; Baseport
;
; other default params
HKR,,TotalChannels,0x00010001, 3
HKR,,RequestTimeout,0x00010001, 2000
; make sure that the follwing two keys are corresponding
HKR,,BaudRate,0x00010001, 115200
HKR,,BaudRateString,0x00000000,"AT+IPR=115200"
HKR,,PowerDown,0x00010000,"AT+CFUN=0"
HKR,,ShutDown,0x00010000,"AT+IPR=0","AT^SMSO"
HKR,,PowerDownFrame,0x00010001, 2
HKR,,WakeUpTime,0x00010001, 4000
HKR,,PowerCmdPort,0x00010001, 3
;time for modem recovery after AT^SMSO
HKR,,RecoveryTime,0x00010001, 3000

[_AddReg_HW_Off]
; multi-string, each modem answer must contain an "OK"
HKR,,ModemInit,0x00010000, "AT","AT&S0\Q3","AT+CMUX=0"
HKR,,ClosePort,0x00010000, "AT+IPR=0","AT^SMSO"
HKR,,WaitForDSR,0x00010001, 1
HKR,,ReinitOnDSR,0x00010001, 1

[_AddReg_HW_TC35i]
; multi-string, each modem answer must contain an "OK"
HKR,,ModemInit,0x00010000, "AT","AT&S0\Q3+ICF=3","AT+CMUX=0"
HKR,,ClosePort,0x00010000, "AT+IPR=0","AT^SMSO"
HKR,,WaitForDSR,0x00010001, 1
HKR,,ReinitOnDSR,0x00010001, 1

[_AddReg_HW_On]
; multi-string, each modem answer must contain an "OK"
HKR,,ModemInit,0x00010000, "AT","AT&S0\Q3","AT+CMUX=0"
HKR,,ClosePort,0x00010000, "AT+IPR=0"
HKR,,WaitForDSR,0x00010001, 0
HKR,,ReinitOnDSR,0x00010001, 1

[_AddReg_HW_OnNoDSR]
; multi-string, each modem answer must contain an "OK"
HKR,,ModemInit,0x00010000, "AT","AT\Q3","AT+CMUX=0"
HKR,,ClosePort,0x00010000, "AT+IPR=0"
HKR,,WaitForDSR,0x00010001, 0
HKR,,ReinitOnDSR,0x00010001, 0


[DestinationDirs]
DefaultDestDir   = 12
_CopyFiles_sys = 10,System32\Drivers
_CopyFiles_dll = 10,System32

;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId1%,,,""

[SourceDisksFiles]
winmux2k.sys = 1,,

[_CopyFiles_sys]
winmux2k.sys

[_CopyFiles_dll]
wmuxprop.dll

[Strings]

; Non-Localizable Strings
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = "System\CurrentControlSet\Services"

; Localizable Strings
Siemens.DeviceDesc0 = "Serial Multiplexer"
Siemens.DeviceDesc1 = "Serial Multiplexer TC35i"
Siemens.DeviceDesc2 = "Serial Multiplexer Dev"
Siemens.DeviceDesc3 = "Serial Multiplexer Dev no DSR"
DiskId1 = "Siemens AG Installation Disk"
S_Mfg = "Siemens AG"
S_Povider = "Siemens AG"
Winmux2k.SvcDesc="Serial Multiplexer Driver"
