inf158704
Участник
Offline
|
|
« Ответ #3 : 01-08-2013 06:05 » |
|
Реализовать в хп это схему получилось, как и ланировал двумя драверами, usb-cом потом на сом повесил можем... все работает четко... а вот перенсти на 98 пока неполучаеться драйвер который подхлдит SYS есть и под 98 и под ХР проверял я их оба заменяя друг друга при установке в ХП, отличаются просто тем что вызов пары фукциий в ХП реализован из системы а для 98 функции в теле есть почему неполучилос в 98 тоже понимаю вроде inf файл там написан не для создания ком порта а просто устройство с именем и вот на это имя и должен потом вешаться модемный драйвер я такую схему вообще невстречал никогда и хочу у вас попросить подсказку как и на что он вешаеться, какая тут главная строка я думаю вот эта HKR,, SiemensPrivateModemGuid,1, D8, D0, 48, 95, 33, 07, bc, 4a, 88, 41, 39, 74, 3D, 40, ED, 88 но как расшифровать и изменить непойму вот драйвер модема: ; ; Installation file (.inf) for the USB Serial device driver. ; ; Copyright © 2004 Siemens AG ;
[Version] Signature=$Windows95$ Provider=%S_Povider% ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318} Class=Modem DriverVer=06/30/2004,0.71.0.0
; ; Driver information ;
[Manufacturer] %S_Mfg%=_Devices
[_Devices] %Siemens.DeviceDesc0% = usbmod, USB\Siemensmpkit
; ; General installation section ;
[usbmod] AddReg=Common_AddReg,Siemens_AddReg,Siemens_Addreg_Responses,Siemens_Addreg_FaxStd
[usbmod.HW] AddReg=usbmod_HW
[usbmod_HW] ; the following comment is important for uninstalling/updating the driver ; !!! don't change this line !!! ; an additional key to identify our modem "{9548D0D8-0733-4abc-8841-39743D40ED88}" HKR,, SiemensPrivateModemGuid,1, D8, D0, 48, 95, 33, 07, bc, 4a, 88, 41, 39, 74, 3D, 40, ED, 88
; general format of a registry line: ; HKR, <Path>, <Key>, <Format>, <Value> [,<Value>, ...] [Common_AddReg] ; all modems described by this file use the UNIMODEM driver HKR,, FriendlyDriver, , Unimodem.vxd HKR,, DevLoader,,*vcomm HKR,, ConfigDialog,, modemui.dll HKR,, EnumPropPages,,"modemui.dll,EnumPropPages"
; modem is an external modem HKR,, DeviceType, 1, 01 HKR,, PortSubClass, 1, 02 HKR,,PortDriver,,wdmmdmld.vxd HKR,,Contention,0, HKR,,ConfigDelay, 1, 9a,10,00,00
HKR,,Reset,, "AT&F<cr>" HKR, Init, 1,, "AT&FE0V1&D2&C1Q0S0=0<cr>" HKR, Init, 2,, "AT&FE0<cr>" HKR, Init, 3,, "AT+FCLASS=0<cr>" HKR, Monitor, 1,, "ATS0=0<cr>" HKR, Monitor, 2,, "None" HKR, Hangup, 1,, "ATH<cr>" HKR, Hangup, 2,, "AT+CHUP<cr>" HKR, Answer, 1,, "ATA<cr>" HKR, Settings, Prefix,, "AT"
HKR, Settings, DialSuffix,, ";" HKR, Settings, Terminator,, "<cr>" HKR, Settings, DialPrefix,, "D" HKR, Settings, FlowControl_Off,, "\Q0" HKR, Settings, FlowControl_Hard,, "\Q3" HKR, Settings, FlowControl_Soft,, "\Q1" HKR, Settings, CallSetupFailTimer,, "S7=<#>"
[Siemens_Addreg] ;13.09.02 K.B. serial speed set to 115200, max serial speed set to 115200 at the S55 HKR,, Properties, 1, 00,00,00,00, 3C,00,00,00, 00,00,00,00, 00,00,00,00, 00,00,00,00, 30,00,00,00, 00,C2,01,00, 00,C2,01,00
HKR, Protocol\GSM\GPRS, 1,, "AT<cr>" HKR, Protocol\GSM\ANALOG_RLP,1,, "AT+CBST=7,,1<cr>" ; or ATB13 ;HKR, Protocol\GSM\ANALOG_RLP_14DOT4K,1,, "AT+CBST=14,,1<cr>" ; or ATB15 ;HKR, Protocol\GSM\V110_2DOT4K,1,, "AT+CBST=68,,1<cr>" ; or ATB25 HKR, Protocol\GSM\V110_4DOT8K,1,, "AT+CBST=70,,1<cr>" ; or ATB27 HKR, Protocol\GSM\V110_9DOT6K,1,, "AT+CBST=71,,1<cr>" ; or ATB29 HKR, Protocol\GSM\V110_14DOT4K,1,, "AT+CBST=75,,1<cr>" ; or ATB31
; responses [Siemens_Addreg_Responses] HKR, Responses, "<cr><lf>OK<cr><lf>", 1, 00, 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>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>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>CONNECT<cr><lf>", 1, 02, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 2400<cr><lf>", 1, 02, 00, 60,09,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 4800<cr><lf>", 1, 02, 00, c0,12,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 9600<cr><lf>", 1, 02, 00, 80,25,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 14400<cr><lf>", 1, 02, 00, 40,38,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 2400/RLP<cr><lf>", 1, 02, 0a, 60,09,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 4800/RLP<cr><lf>", 1, 02, 0a, c0,12,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 9600/RLP<cr><lf>", 1, 02, 0a, 80,25,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 14400/RLP<cr><lf>", 1, 02, 00, 40,38,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 16800<cr><lf>", 1, 02, 00, A0,41,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 19200<cr><lf>", 1, 02, 00, 00,4B,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 21600<cr><lf>", 1, 02, 00, 60,54,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 24000<cr><lf>", 1, 02, 00, C0,5D,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 26400<cr><lf>", 1, 02, 00, 20,67,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 28800<cr><lf>", 1, 02, 00, 80,70,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 38400<cr><lf>", 1, 02, 00, 00,96,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 57600<cr><lf>", 1, 02, 00, 00,E1,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 115200<cr><lf>", 1, 02, 00, 00,C2,01,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 16800/RLP<cr><lf>", 1, 02, 00, A0,41,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 19200/RLP<cr><lf>", 1, 02, 00, 00,4B,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 21600/RLP<cr><lf>", 1, 02, 00, 60,54,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 24000/RLP<cr><lf>", 1, 02, 00, C0,5D,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 26400/RLP<cr><lf>", 1, 02, 00, 20,67,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 28800/RLP<cr><lf>", 1, 02, 00, 80,70,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 38400/RLP<cr><lf>", 1, 02, 00, 00,96,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 57600/RLP<cr><lf>", 1, 02, 00, 00,E1,00,00, 00,00,00,00 HKR, Responses, "<cr><lf>CONNECT 115200/RLP<cr><lf>", 1, 02, 00, 00,C2,01,00, 00,00,00,00 HKR, Responses, "0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "1<cr>", 1, 02, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "2<cr>", 1, 08, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "3<cr>", 1, 04, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "4<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "6<cr>", 1, 05, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "7<cr>", 1, 06, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "8<cr>", 1, 07, 00, 00,00,00,00, 00,00,00,00 HKR, Responses, "10<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00 HKR, Responses, "30<cr>", 1, 02, 00, C0,12,00,00, 00,00,00,00 HKR, Responses, "32<cr>", 1, 02, 00, 80,25,00,00, 00,00,00,00 HKR, Responses, "47<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00 HKR, Responses, "48<cr>", 1, 02, 00, C0,12,00,00, 00,00,00,00 HKR, Responses, "49<cr>", 1, 02, 00, 80,25,00,00, 00,00,00,00 HKR, Responses, "33<cr>", 1, 02, 00, 40,38,00,00, 00,00,00,00 HKR, Responses, "50<cr>", 1, 02, 00, 40,38,00,00, 00,00,00,00
;--- begin FAX settings ---
[Siemens_Addreg_FaxStd] HKR, Fax, ResetCommand,, "AT&FS0=0E0V1Q0" HKR, Fax, SetupCommand,, "ATS7=255&D2\Q1" ; use FAX CLASS 1 ;HKR, Fax, FixModemClass,, "1" ; set serial line speed in FAX mode ;HKR, Fax, FixSerialSpeed,, "19200"
[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 = "Siemens Mobile Phone USB Modem" DiskId1 = "Siemens Mobile Phone USB Modem Installation Disk" S_Mfg = "Siemens AG" S_Povider = "Siemens AG"
и inf файл который устройство создает тоже приведу ; ; Copyright © 2004 Siemens AG ;
[Version] Signature=$Windows95$ Class=USB ClassGUID={36fc9e60-c465-11cf-8056-444553540000} Provider=%S_Provider% DriverVer=06/30/2004,0.71.0.0
[DestinationDirs] DefaultDestDir=10 WDM.Drvrs=10,SYSTEM32\DRIVERS WDM.VxD=11
[Manufacturer] %S_Provider%=Siemens
[Siemens] %S_Device1%=SiemensUSB,USB\VID_0815&PID_0100&MI_00 %S_Device2%=SiemensUSB_1,USB\VID_0815&PID_0100&MI_01 %S_Device1%=SiemensUSB,USB\VID_0815&PID_0100 %S_Device1%=SiemensUSB,USB\VID_0cc4&PID_0816&MI_00 %S_Device2%=SiemensUSB_1,USB\VID_0cc4&PID_0816&MI_01 %S_Device1%=SiemensUSB,USB\VID_0cc4&PID_0815 ; Siemens VID=11F5 %S_Device1%=SiemensUSB,USB\VID_11F5&PID_0003&MI_00 %S_Device2%=SiemensUSB_1,USB\VID_11F5&PID_0003&MI_01 %S_Device1%=SiemensUSB,USB\VID_11F5&PID_0003 %S_Device1%=SiemensUSB,USB\VID_11F5&PID_0815 [SiemensUSB] CopyFiles=WDM.Drvrs,WDM.VxD AddReg=SiemensUSB.AddReg
[SiemensUSB.HW] AddReg=SiemensUSB.AddReg.HW, SiemensUSB.AddReg.Params
[SiemensUSB_1] CopyFiles=WDM.Drvrs,WDM.VxD AddReg=SiemensUSB.AddReg
[SiemensUSB_1.HW] AddReg=SiemensUSB.AddReg.HW, SiemensUSB.AddReg.Params_1
[WDM.Drvrs] siusbm98.sys,,,0x00000020 ;ccport.sys,,,0x00000020
[WDM.VxD] ;wdmmdmld.vxd,,,0x00000020
[SiemensUSB.AddReg] HKR,,DevLoader,0,*ntkern HKR,,NTMPDriver,,"siusbm98.sys,ccport.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\usb65mod",,, HKLM,"SYSTEM\CurrentControlSet\Services\usb65mod\Parameters",,,
[SiemensUSB.AddReg.HW] HKR,,ChildID,2,"USB\Siemensmpkit" ; the following comment is important for uninstalling/updating the driver ; !!! don't change this line !!! ; an additional key to identify our modem "{9548D0D8-0733-4abc-8841-39743D40ED88}" HKR,, SiemensPrivateModemGuid,1, D8, D0, 48, 95, 33, 07, bc, 4a, 88, 41, 39, 74, 3D, 40, ED, 88
[SiemensUSB.AddReg.Params] ; the following keys will be written in the registry by the install program ; other default params HKR,,RequestTimeout,0x00010001, 2500 HKR,,DataInPipe,0x00010001, 0x81 HKR,,DataOutPipe,0x00010001, 0x02 HKR,,IntInPipe,0x00010001, 0x83 HKR,,Instance,0x00010001, 0 HKR,,TimerInterval,0x00010001, 10
[SiemensUSB.AddReg.Params1] ; the following keys will be written in the registry by the install program HKR,,RequestTimeout,0x00010001, 2500 HKR,,DataInPipe,0x00010001, 0x85 HKR,,DataOutPipe,0x00010001, 0x06 HKR,,IntInPipe,0x00010001, 0x87 HKR,,Instance,0x00010001, 1 HKR,,TimerInterval,0x00010001, 10
[ControlFlags]
[PreCopySection] HKR,,NoSetupUI,,1
[SourceDisksNames] 1=%DiskName_Desc%,,0
[SourceDisksFiles] siusbm98.sys=1 ccport.sys=1 wdmmdmld.vxd=1
[Strings] S_Provider="Siemens AG" S_Device1="Siemens Mobile Phone USB Basis Driver" S_Device2="Siemens Mobile Phone USB Basis Driver (Debug)" DiskName_Desc="Siemens Mobile Phone USB Modem Installation Disk"
может тут легче найти что он создал и на что он повесился в идеале конечно лудше всего было бы создать именно вируальный ком как в pl2303 он просто сложенее исползует еще vxd и я пока нерешился его править его инф файл ; SERSPL.INF ; Copyright (c) 1999 Prolific Technology ; ; 09/13/2000
[version] signature="$Windows 95$" Class=Ports ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318} Provider=%Mfg%
; [DestinationDirs] ; SerialPort.Copy = 11 ; \windows\system
; [SourceDiskFiles] ; serport.vxd = 1
; [SourceDisksNames] ; 1="USB to Serial Disk #1","",1
; Drivers ;---------------------------------------------------------- [Manufacturer] %Mfg%=USB2SERDevices
[USB2SERDevices] %OURPORTDEVICE%=SerialPort, VID_067B&PID_2303
; COM sections ;----------------------------------------------------------
[SerialPort] ; CopyFiles=SerialPort.Copy AddReg=SerialPort.AddReg LogConfig=caa,c34,c3a,c43,c4a,c14,c1a,c23,c2a
; [SerialPort.Copy] ; SerPort.VXD
[SerialPort.AddReg] HKR,,DevLoader,,*vcomm HKR,,Enumerator,,serenum.vxd HKR,,PortDriver,,serspl.vxd HKR,,USBDriver,,ser9pl.sys HKR,,Contention,,*vcd HKR,,ConfigDialog,,serialui.dll HKR,,DCB,3,1C,00,00,00, 00,C2,01,00, 15,20,00,00, 00,00, 0a,00, 0a,00, 08, 00, 00, 11, 13, 00, 00, 00 HKR,,PortSubClass,1,01 HKR,,EnumPropPages,,"serialui.dll,EnumPropPages"
[c34] ; COM3, IRQ4 ConfigPriority=HARDRECONFIG IOConfig=3e8-3ef(3ff::) IRQConfig=S:4
[c3a] ; COM3, any IRQ ConfigPriority=HARDRECONFIG IOConfig=3e8-3ef(3ff::) IRQConfig=S:3,4,5,7,9,10,11,12,14,15
[c43] ; COM4, IRQ3 ConfigPriority=HARDRECONFIG IOConfig=2e8-2ef(3ff::) IRQConfig=S:3,5
[c4a] ; COM4, any IRQ ConfigPriority=HARDRECONFIG IOConfig=2e8-2ef(3ff::) IRQConfig=S:3,4,5,7,9,10,11,12,14,15
[caa] ; Any base, any IRQ ConfigPriority=HARDRECONFIG IOConfig=8@100-ffff%fff8(3ff::) IRQConfig=S:3,4,5,7,9,10,11,12,14,15
[c00] ; No resources ConfigPriority=HARDRECONFIG IOConfig=0 IRQConfig=S:000-000(000::)
[c14] ; COM1,IRQ4 ConfigPriority=HARDRECONFIG IOConfig=3f8-3ff(3ff::) IRQConfig=S:4
[c1a] ; COM1, any IRQ ConfigPriority=HARDRECONFIG IOConfig=3f8-3ff(3ff::) IRQConfig=S:3,4,5,7,9,10,11,12,14,15
[c23] ; COM2, IRQ3 ConfigPriority=HARDRECONFIG IOConfig=2f8-2ff(3ff::) IRQConfig=S:3
[c2a] ; COM2, any IRQ ConfigPriority=HARDRECONFIG IOConfig=2f8-2ff(3ff::) IRQConfig=S:3,4,5,7,9,10,11,12,14,15
[Strings] Mfg="PROLIFIC" OURPORTDEVICE="USB to Serial Port"
может у когото есть совеременнее нетакой навороченный?
|