Skip to content

Commit

Permalink
Added CH340 Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Apr 26, 2024
1 parent 384c280 commit 4850b18
Show file tree
Hide file tree
Showing 25 changed files with 578 additions and 2 deletions.
Binary file added Drivers/CH341SER/CH341M64.SYS
Binary file not shown.
Binary file added Drivers/CH341SER/CH341PORTS.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/CH341PORTSA64.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/CH341PT.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/CH341PTA64.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/CH341S64.SYS
Binary file not shown.
Binary file added Drivers/CH341SER/CH341S98.SYS
Binary file not shown.
Binary file added Drivers/CH341SER/CH341SER.CAT
Binary file not shown.
285 changes: 285 additions & 0 deletions Drivers/CH341SER/CH341SER.INF
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
; CH341SER.INF
; Driver for CH340/CH341 (USB=>SERIAL chip) V3.8
; WDM&VXD for Windows 98/Me/2000/XP/Vista/7/8/8.1/10/11/SERVER 2003/2008/2012/2016/2019/2022
; Copyright (C) WCH 2001-2023
;

[Version]
Signature = "$Chicago$"
Class = Ports
ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider = %WinChipHead%
DriverVer = 02/11/2023, 3.8.2023.02
CatalogFile =CH341SER.CAT


[ControlFlags]
ExcludeFromSelect = USB\VID_1A86&PID_7523
ExcludeFromSelect = USB\VID_1A86&PID_5523
ExcludeFromSelect = USB\VID_1A86&PID_7522
ExcludeFromSelect = USB\VID_1A86&PID_E523
ExcludeFromSelect = USB\VID_4348&PID_5523
ExcludeFromSelect = USB\VID_4348&PID_5523&REV_0250
ExcludeFromSelect = USBSERPORT\SER5523
ExcludeFromSelect = CH341PORT\SER5523

[Manufacturer]
%WinChipHead% = WinChipHead,NT,NTamd64,NTia64,NTARM64

[WinChipHead]
%CH340SER.DeviceDesc% = CH341SER_Install, USB\VID_1A86&PID_7523
%CH341ASER.DeviceDesc% = CH341SER_Install, USB\VID_1A86&PID_5523
%CH340KSER.DeviceDesc% = CH341SER_Install, USB\VID_1A86&PID_7522
%CH330SER.DeviceDesc% = CH341SER_Install, USB\VID_1A86&PID_E523
%CH341SER.DeviceDesc% = CH341SER_Install, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CH341SER_Install, USB\VID_4348&PID_5523&REV_0250
%CH341S98.DeviceDesc% = CH341S98_Install, USBSERPORT\SER5523
%CH341S98.DeviceDesc% = CH341S98_Install, CH341PORT\SER5523

[WinChipHead.NT]
%CH340SER.DeviceDesc% = CH341SER_Install.NT, USB\VID_1A86&PID_7523
%CH341ASER.DeviceDesc% = CH341SER_Install.NT, USB\VID_1A86&PID_5523
%CH340KSER.DeviceDesc% = CH341SER_Install.NT, USB\VID_1A86&PID_7522
%CH330SER.DeviceDesc% = CH341SER_Install.NT, USB\VID_1A86&PID_E523
%CH341SER.DeviceDesc% = CH341SER_Install.NT, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CH341SER_Install.NT, USB\VID_4348&PID_5523&REV_0250

[WinChipHead.NTamd64]
%CH340SER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_1A86&PID_7523
%CH341ASER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_1A86&PID_5523
%CH340KSER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_1A86&PID_7522
%CH330SER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_1A86&PID_E523
%CH341SER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CH341SER_Inst.NTamd64, USB\VID_4348&PID_5523&REV_0250

[WinChipHead.NTia64]
%CH340SER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_1A86&PID_7523
%CH341ASER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_1A86&PID_5523
%CH340KSER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_1A86&PID_7522
%CH330SER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_1A86&PID_E523
%CH341SER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CH341SER_Inst.NTia64, USB\VID_4348&PID_5523&REV_0250

[WinChipHead.NTARM64]
%CH340SER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_1A86&PID_7523
%CH341ASER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_1A86&PID_5523
%CH340KSER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_1A86&PID_7522
%CH330SER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_1A86&PID_E523
%CH341SER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_4348&PID_5523
%CH340SER.DeviceDesc% = CH341SER_Inst.NTARM64, USB\VID_4348&PID_5523&REV_0250

[CH341SER_Install]
DelFiles = CH341S98.DelFiles.SYS
CopyFiles = CH341SER.CopyFiles.SYS, CH341SER.CopyFiles.DLL
AddReg = CH341SER.9X.AddReg, CH341SER.AddReg

[CH341SER_Install.NT]
CopyFiles = CH341SER.NT.CopyFiles.SYS, CH341SER.CopyFiles.DLL
AddReg = CH341SER.NT.AddReg, CH341SER.AddReg

[CH341SER_Install.NT.HW]
AddReg = CH341SER.NT.HW.AddReg

[CH341SER_Inst.NTamd64]
CopyFiles = CH341SER.NT.CopyFiles.SYSA64, CH341SER.CopyFiles.DLLA64, CH341SER.CopyFiles.WOWDLL
AddReg = CH341SER.NTAMD64.AddReg, CH341SER.AddReg

[CH341SER_Inst.NTamd64.HW]
AddReg = CH341SER.NT.HW.AddReg

[CH341SER_Inst.NTia64]
CopyFiles = CH341SER.NT.CopyFiles.SYSI64,CH341SER.CopyFiles.DLLA64
AddReg = CH341SER.NT.AddReg, CH341SER.AddReg

[CH341SER_Inst.NTia64.HW]
AddReg = CH341SER.NT.HW.AddReg

[CH341SER_Inst.NTARM64]
CopyFiles = CH341SER.NT.CopyFiles.SYSM64,CH341SER.CopyFiles.DLLA64, CH341SER.CopyFiles.WOWDLL
AddReg = CH341SER.NTARM64.AddReg, CH341SER.AddReg

[CH341SER_Inst.NTARM64.HW]
AddReg = CH341SER.NT.HW.AddReg

[CH341S98_Install]
DelFiles = CH341S98.DelFiles.SYS
CopyFiles = CH341S98.CopyFiles.VXD, CH341SER.CopyFiles.SYS
AddReg = CH341S98.9X.AddReg, CH341S98.AddReg

;[CH341S98_Install.NT]

[CH341S98.DelFiles.SYS]
CH341S98.SYS, , , 1

[CH341SER.CopyFiles.SYS]
CH341S98.SYS, , , 2

[CH341SER.NT.CopyFiles.SYS]
CH341SER.SYS, , , 2

[CH341SER.NT.CopyFiles.SYSA64]
CH341S64.SYS, , , 2

[CH341SER.NT.CopyFiles.SYSI64]
;CH341I64.SYS, , , 2

[CH341SER.NT.CopyFiles.SYSM64]
CH341M64.SYS, , , 2

[CH341S98.CopyFiles.VXD]
CH341SER.VXD, , , 2

[CH341SER.CopyFiles.DLL]
CH341PT.DLL, , , 2
CH341PORTS.DLL, , , 2

[CH341SER.CopyFiles.DLLA64]
CH341PTA64.DLL, , , 2
CH341PORTSA64.DLL, , , 2

[CH341SER.CopyFiles.WOWDLL]
CH341PT.DLL, , , 2
;��װDLL�ǿ�ѡ��,DLL��������ʶ��CH341�˿ںͼ���CH341�˿ڵIJ���¼�

[CH341SER.9X.AddReg]
HKR, , DevLoader, , *NTKERN
HKR, , NTMPDriver, , CH341S98.SYS

[CH341SER.NT.AddReg]
HKR,,EnumPropPages32,,"CH341PORTS.dll,SerialPortPropPageProvider"

[CH341SER.NTAMD64.AddReg]
HKR,,EnumPropPages32,,"CH341PORTSA64.dll,SerialPortPropPageProvider"

[CH341SER.NTARM64.AddReg]
HKR,,EnumPropPages32,,"CH341PORTSA64.dll,SerialPortPropPageProvider"

[CH341SER.NT.HW.AddReg]
;HKR,,"EnableBRA",0x00010001,1
;HKR,,"BRAVal",0x00010001,1
;�����������ڲ����ʵ����������������ɽ��������зֺ�ȥ��
;HKR,,"UpperFilters",0x00010000,"serenum"
;������������ö�ٽ��ڴ��ڵļ��弴���豸,����ʱ������DTR��RTS�ź�,�����Ҫö��,�뽫�������еķֺ�ȥ��

[CH341S98.9X.AddReg]
HKR, , DevLoader, , *vcomm
HKR, , PortDriver, , CH341SER.VXD
HKR, , Contention, , *vcd
HKR, , ConfigDialog, , serialui.dll
HKR, , DCB, 3, 1C,00,00,00, 80,25,00,00, 11,00,00,00, 00,00,0A,00, 0A,00,08,00, 00,11,13,00, 00,00,00,00
HKR, , PortSubClass, 1, 01
HKR, , EnumPropPages, , "serialui.dll,EnumPropPages"
;HKR, , Enumerator, , serenum.vxd
;������������ö�ٽ��ڴ��ڵļ��弴���豸,����ʱ������DTR��RTS�ź�,�����Ҫö��,�뽫�������еķֺ�ȥ��

[CH341SER.AddReg]
HKLM, SOFTWARE\WinChipHead\IC\CH341SER, WDM, 0x00010001, 0x00000034
HKLM, SOFTWARE\WinChipHead\IC\CH341PORT, DLL, 0x00010001, 0x00000010
HKLM, SOFTWARE\WinChipHead\IC\CH341SER, Function, , "USB=>Serial"
;HKLM, SYSTEM\CurrentControlSet\Services\CH341SER, UserRemoval, 0x00010001, 0x00000001
;��������������ϵͳ��������ʾ����ȫɾ��USBתSERIALӲ���豸���������û��ֹ�ɾ��Ӳ��

[CH341S98.AddReg]
HKLM, SOFTWARE\WinChipHead\IC\CH341SER, VXD, 0x00010001, 0x00000023

[CH341S98_Install.Services]
;

[CH341SER_Install.NT.Services]
AddService = CH341SER, 2, CH341SER.Service
;AddService = Serenum, , Serenum_Service_Inst

[CH341SER_Inst.NTamd64.Services]
AddService = CH341SER_A64, 2, CH341SER.ServiceA64
;AddService = Serenum, , Serenum_Service_Inst

[CH341SER_Inst.NTia64.Services]
AddService = CH341SER_I64, 2, CH341SER.ServiceI64
;AddService = Serenum, , Serenum_Service_Inst

[CH341SER_Inst.NTARM64.Services]
AddService = CH341SER_M64, 2, CH341SER.ServiceM64
;AddService = Serenum, , Serenum_Service_Inst

[CH341SER.Service]
DisplayName = "CH341SER"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\CH341SER.SYS

[CH341SER.ServiceA64]
DisplayName = "CH341SER_A64"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\CH341S64.SYS

[CH341SER.ServiceI64]
DisplayName = "CH341SER_I64"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\CH341I64.SYS

[CH341SER.ServiceM64]
DisplayName = "CH341SER_M64"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\CH341M64.SYS

[Serenum_Service_Inst]
DisplayName = "SerEnum"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\serenum.sys
LoadOrderGroup = PNP Filter

[DestinationDirs]
DefaultDestDir = 10, System32\Drivers
CH341S98.DelFiles.SYS = 11
CH341SER.CopyFiles.SYS = 10, System32\Drivers
CH341SER.NT.CopyFiles.SYS = 10, System32\Drivers
CH341S98.CopyFiles.VXD = 11
CH341SER.CopyFiles.DLL = 11
CH341SER.CopyFiles.DLLA64 = 11
CH341SER.CopyFiles.WOWDLL = 10,SysWOW64
CH341SER.NT.CopyFiles.SYSA64 = 10, System32\Drivers
CH341SER.NT.CopyFiles.SYSM64 = 10, System32\Drivers
;CH341SER.NT.CopyFiles.SYSI64 = 10, System32\Drivers

[SourceDisksFiles]
CH341M64.SYS = 1
CH341PT.DLL = 1
CH341PTA64.DLL= 1
CH341SER.SYS = 1
CH341S98.SYS = 1
CH341SER.VXD = 1
CH341S64.SYS = 1
CH341PORTS.DLL = 1
CH341PORTSA64.DLL = 1
;CH341I64.SYS = 1

[SourceDisksNames]
1 = %DISK_NAME%, , ,

[SourceDisksNames.amd64]
1 = %DISK_NAME%, , ,

[SourceDisksNames.ia64]
1 = %DISK_NAME%, , ,

[SourceDisksNames.arm64]
1 = %DISK_NAME%, , ,

[Strings]
WinChipHead = "wch.cn"
CH341SER.DeviceDesc = "USB-SERIAL CH341"
CH341S98.DeviceDesc = "USB-SERIAL CH341"
CH340SER.DeviceDesc = "USB-SERIAL CH340"
CH341ASER.DeviceDesc = "USB-SERIAL CH341A"
CH340KSER.DeviceDesc = "USB-SERIAL CH340K"
CH330SER.DeviceDesc = "USB-SERIAL CH330"
DISK_NAME = "CH341 Serial Installation Disk"
Binary file added Drivers/CH341SER/CH341SER.SYS
Binary file not shown.
Binary file added Drivers/CH341SER/CH341SER.VXD
Binary file not shown.
Binary file added Drivers/CH341SER/DRVSETUP64/DRVSETUP64.exe
Binary file not shown.
Binary file added Drivers/CH341SER/SETUP.EXE
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341M64.sys
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341PORTS.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341PORTSA64.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341PT.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341PTA64.DLL
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341S64.sys
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341S98.SYS
Binary file not shown.
Binary file added Drivers/CH341SER/WIN 1X/CH341SER.CAT
Binary file not shown.
Loading

0 comments on commit 4850b18

Please sign in to comment.