From e92d5226f099a9214728425d74ab11182aaf27fc Mon Sep 17 00:00:00 2001 From: Michael Dryden Date: Wed, 9 Jul 2014 15:07:42 -0400 Subject: [PATCH] Added windows driver --- dstatInterface/drivers/VirtualSerial.inf | 66 ++++++++++++++++++++++++ dstatInterface/interface_test.spec | 2 + 2 files changed, 68 insertions(+) create mode 100644 dstatInterface/drivers/VirtualSerial.inf diff --git a/dstatInterface/drivers/VirtualSerial.inf b/dstatInterface/drivers/VirtualSerial.inf new file mode 100644 index 0000000..8c588cf --- /dev/null +++ b/dstatInterface/drivers/VirtualSerial.inf @@ -0,0 +1,66 @@ +;************************************************************ +; Windows USB CDC ACM Setup File +; Copyright (c) 2000 Microsoft Corporation +;************************************************************ + +[DefaultInstall] +CopyINF="VirtualSerial.inf" + +[Version] +Signature="$Windows NT$" +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Provider=%MFGNAME% +DriverVer=7/1/2012,10.0.0.0 + +[Manufacturer] +%MFGNAME%=DeviceList, NTx86, NTamd64, NTia64 + +[SourceDisksNames] + +[SourceDisksFiles] + +[DestinationDirs] +DefaultDestDir=12 + +[DriverInstall] +Include=mdmcpq.inf +CopyFiles=FakeModemCopyFileSection +AddReg=DriverInstall.AddReg + +[DriverInstall.Services] +Include=mdmcpq.inf +AddService=usbser, 0x00000002, LowerFilter_Service_Inst + +[DriverInstall.AddReg] +HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider" + +;------------------------------------------------------------------------------ +; Vendor and Product ID Definitions +;------------------------------------------------------------------------------ +; When developing your USB device, the VID and PID used in the PC side +; application program and the firmware on the microcontroller must match. +; Modify the below line to use your VID and PID. Use the format as shown below. +; Note: One INF file can be used for multiple devices with different VID and PIDs. +; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line. +;------------------------------------------------------------------------------ +[DeviceList] +%DESCRIPTION%=DriverInstall, USB\VID_0042&PID_0002 + +[DeviceList.NTx86] +%DESCRIPTION%=DriverInstall, USB\VID_0042&PID_0002 + +[DeviceList.NTamd64] +%DESCRIPTION%=DriverInstall, USB\VID_0042&PID_0002 + +[DeviceList.NTia64] +%DESCRIPTION%=DriverInstall, USB\VID_0042&PID_0002 + +;------------------------------------------------------------------------------ +; String Definitions +;------------------------------------------------------------------------------ +;Modify these strings to customize your device +;------------------------------------------------------------------------------ +[Strings] +MFGNAME="Wheeler Lab" +DESCRIPTION="Dstat 1.1 Virtual Serial Port" \ No newline at end of file diff --git a/dstatInterface/interface_test.spec b/dstatInterface/interface_test.spec index 76e45c5..2a51ef2 100644 --- a/dstatInterface/interface_test.spec +++ b/dstatInterface/interface_test.spec @@ -4,6 +4,7 @@ a = Analysis(['interface_test.py'], hookspath=None, runtime_hooks=None) glade_tree = Tree('./interface', prefix = 'interface', excludes=['*.py','*.pyc']) +drivers_tree = Tree('./drivers', prefix = 'drivers') pyz = PYZ(a.pure) exe = EXE(pyz, a.scripts, @@ -14,6 +15,7 @@ exe = EXE(pyz, upx=True, console=True ) coll = COLLECT(exe, + drivers_tree, glade_tree, a.binaries, a.zipfiles, -- GitLab