diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_loader.cat b/utils/signed-windows-inf-files/Hantek_6022BE_loader.cat new file mode 100644 index 00000000..0b0a023e Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BE_loader.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_loader.inf b/utils/signed-windows-inf-files/Hantek_6022BE_loader.inf new file mode 100644 index 00000000..6815c13f --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BE_loader.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BE loader + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BE_loader.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_04B4&PID_6022 + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_04B4&PID_6022 + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-04B4-6022-367C-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BE loader" diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_openht.cat b/utils/signed-windows-inf-files/Hantek_6022BE_openht.cat new file mode 100644 index 00000000..f8cfda37 Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BE_openht.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_openht.inf b/utils/signed-windows-inf-files/Hantek_6022BE_openht.inf new file mode 100644 index 00000000..e9927184 --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BE_openht.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BE openht + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BE_openht.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_04B5&PID_6022 + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_04B5&PID_6022 + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-04B5-6022-367C-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BE openht" diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.cat b/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.cat new file mode 100644 index 00000000..27f31a3e Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.inf b/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.inf new file mode 100644 index 00000000..d6c05a53 --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BE_sigrok.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BE sigrok + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BE_sigrok.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_1D50&PID_608E&REV_0000 + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_1D50&PID_608E&REV_0000 + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-1D50-608E-0000-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BE sigrok" diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_loader.cat b/utils/signed-windows-inf-files/Hantek_6022BL_loader.cat new file mode 100644 index 00000000..5f555639 Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BL_loader.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_loader.inf b/utils/signed-windows-inf-files/Hantek_6022BL_loader.inf new file mode 100644 index 00000000..c3a5898a --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BL_loader.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BL loader + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BL_loader.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_04B4&PID_602A + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_04B4&PID_602A + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-04B4-602A-367C-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BL loader" diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_openht.cat b/utils/signed-windows-inf-files/Hantek_6022BL_openht.cat new file mode 100644 index 00000000..47e09e8e Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BL_openht.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_openht.inf b/utils/signed-windows-inf-files/Hantek_6022BL_openht.inf new file mode 100644 index 00000000..bae8183c --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BL_openht.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BL openht + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BL_openht.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_04B5&PID_602A + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_04B5&PID_602A + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-04B5-602A-367C-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BL openht" diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.cat b/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.cat new file mode 100644 index 00000000..fdfed857 Binary files /dev/null and b/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.cat differ diff --git a/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.inf b/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.inf new file mode 100644 index 00000000..fa8ba1b3 --- /dev/null +++ b/utils/signed-windows-inf-files/Hantek_6022BL_sigrok.inf @@ -0,0 +1,53 @@ +; Installs WinUsb for Hantek 6022BL sigrok + +[Version] +Signature = "$Windows NT$" +Class = USBDevice +ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6} +Provider = %ManufacturerName% +CatalogFile=Hantek_6022BL_sigrok.cat +DriverVer = 12/23/2021, 21.12.23.4 +PnpLockDown=1 + +; ========== Manufacturer/Models sections =========== + +[Manufacturer] +%ManufacturerName% = Standard,NTamd64,NTx86 + +[Standard.NTamd64] +%DeviceName% = USB_Install, USB\VID_1D50&PID_608E&REV_0003 + +[Standard.NTx86] +%DeviceName% = USB_Install, USB\VID_1D50&PID_608E&REV_0003 + +; =================== Installation =================== + +[USB_Install] +Include=winusb.inf +Needs=WINUSB.NT + +[USB_Install.Services] +Include=winusb.inf +AddService=WinUsb,0x00000002,WinUsb_ServiceInstall + +[WinUsb_ServiceInstall] +DisplayName = %WinUsb_SvcDesc% +ServiceType = 1 +StartType = 3 +ErrorControl = 1 +ServiceBinary = %12%\WinUSB.sys + +[USB_Install.HW] +AddReg=Dev_AddReg + +[Dev_AddReg] +; By default, USBDevice class uses iProduct descriptor to name the device +; The following line (uncommented) forces using %DeviceName% +HKR,,FriendlyName,,%DeviceName% +HKR,,DeviceInterfaceGUIDs,0x10000,"{C4B9C054-1D50-608E-0003-22756B7032DB}" + +[Strings] +ManufacturerName="Hantek" +ClassName="Universal Serial Bus devices" +WinUsb_SvcDesc="WinUSB Driver" +DeviceName="Hantek 6022BL sigrok" diff --git a/utils/signed-windows-inf-files/README.txt b/utils/signed-windows-inf-files/README.txt new file mode 100644 index 00000000..1ec80000 --- /dev/null +++ b/utils/signed-windows-inf-files/README.txt @@ -0,0 +1,38 @@ +These files provide an easy method to bind WinUSB to Hantek 6022BE and 6022BL (in scope mode, +button pressed) with clear dstinction between three common states: +- loader mode (when plugged) +- openht mode (when OpenHantek has loaded it's firmware) +- sigrok mode (when Sigrok or PulseView has loaded it's firmware) + +When these bindings are used, the device appears under "Device Manager" as +"Universal Serial Bus devices" with an informative name: + Hantek 6022BE loader Hantek 6022BL loader + Hantek 6022BE openht Hantek 6022BL openht + Hantek 6022BE sigrok Hantek 6022BL sigrok + +--- +Removing other bindings/drivers (optional, recommended): + +The manufacturer's drivers can perhaps be desintalled from "add/remove programs" where they +appear as "Windows Driver Package - ODM (Hantek6022...) USB". + +If other bindings appear in "Device Manager" and need to be removed, +ight-click on the device, perform "Uninstall device", +optionally (suggested) tick "Delete the driver software for this device", +confirm. + +USBDeview ( https://www.nirsoft.net/utils/usb_devices_view.html ) has an +"Unisntall sected device" option, that does not delete the driver software. + +--- +To install: Select the desired .inf files, e.g. for a 6022BE: + Hantek_6022BE_loader.inf Hantek_6022BE_openht.inf Hantek_6022BE_sigrok .inf +and right-click to install. This is fast. No reboot or wait is necessary. + +Note: Leave the .inf and matching signed .cat files together. + +--- +Public domin. Use at your own risk. +Only insurance is that these files, as created, are not deliberately malicious. + + fgrieu - 2021-12-23