Skip to content

Commit 57553f0

Browse files
committed
RELEASE 2.0.8 (January 21, 2019)
Added support in SerialStream for seven data bits and even/odd parity. Fixed a bug on MacOS which caused HID devices without serial numbers to not show up. Added support in SerialStream for two stop bits. HIDSharp is now compatible with .NET Core on Linux. Fixed a garbage collector-related crash on MacOS. Fixed a bug on Linux which caused output reports to be sent incorrectly on devices which do not use a Report ID. DeviceList GetSerialDeviceOrNull() will now match the filesystem name (COM1, /dev/ttyUSB, etc.) as well as DevicePath. Fixed a bug on Windows where, in some cases, being unable to reconstruct a device's report descriptor could prevent that device from being opened at all. HIDSharp now includes assemblies for both .NET Framework 3.5+ and .NET Standard 2.0+. Vastly improved the report descriptor parsing functionality. You can now decode (nearly) any HID device's reports, on all platforms! Added GetReportDescriptor support on MacOS version 10.8 and higher. Added GetReportDescriptor support on Windows. This descriptor is a reconstruction as Windows does not provide a way to directly access this information. Added an AreDriversBeingInstalled property on DeviceList. (Windows will sometimes close streams of composite HID devices opened while their drivers are being installed.) Added a Changed event on DeviceList, for detecting device connect and disconnect. Added a NativeImplementation property to Device. Added an exclusivity layer, with the ability to request interruption. This is useful for interprocess cooperation, but must be enabled manually. Added support for serial ports. This is still somewhat buggy on Linux, but on MacOS it works better than the Mono native implementation. Added support for Linux libudev.so.1. Exposed GetFileSystemName(). This can be used on Linux to check hidraw permissions. Fixed max report lengths on MacOS for devices which do not use a Report ID. Fixed Linux and MacOS not throwing IOException on HID Read() when the device is disconnected. Fixed Linux support on recent Mono versions. Fixed 32-bit Linux support (Raspberry Pi). GetFeature() and SetFeature() now work on Linux. HIDSharp now uses the Apache open-source license. Feedback on the new features is appreciated. Some code modifications will be needed to use this new version. Signed-off-by: James F. Bellinger <http://www.zer7.com/software/hidsharp>
1 parent 8298647 commit 57553f0

125 files changed

Lines changed: 12141 additions & 3226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

HidSharp.DeviceHelpers/DymoScale.cs

Lines changed: 0 additions & 131 deletions
This file was deleted.

HidSharp.DeviceHelpers/DymoScaleStatus.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

HidSharp.DeviceHelpers/DymoScaleUnit.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

HidSharp.DeviceHelpers/HidSharp.DeviceHelpers.csproj

Lines changed: 0 additions & 51 deletions
This file was deleted.

HidSharp.DeviceHelpers/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

HidSharp.NETStandard.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27428.2037
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HidSharp", "HidSharp\HidSharp.NETStandard.csproj", "{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HidSharp.Test", "HidSharp.Test\HidSharp.Test.NETStandard.csproj", "{5E83ACC1-19FA-4996-BBAE-BF7DB4604812}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{5E83ACC1-19FA-4996-BBAE-BF7DB4604812}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{5E83ACC1-19FA-4996-BBAE-BF7DB4604812}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{5E83ACC1-19FA-4996-BBAE-BF7DB4604812}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{5E83ACC1-19FA-4996-BBAE-BF7DB4604812}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
6+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8+
<AssemblyName>HidSharp.Test</AssemblyName>
9+
<RootNamespace>HidSharp.Test</RootNamespace>
10+
<OutputPath>..\bin</OutputPath>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<ProjectReference Include="..\HidSharp\HidSharp.NETStandard.csproj" />
15+
</ItemGroup>
16+
17+
</Project>

HidSharp.Test/HidSharp.Test.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>HidSharp.Test</RootNamespace>
1212
<AssemblyName>HidSharp.Test</AssemblyName>
13-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<FileUpgradeFlags>
1616
</FileUpgradeFlags>
@@ -35,7 +35,7 @@
3535
<DefineConstants>TRACE</DefineConstants>
3636
<ErrorReport>prompt</ErrorReport>
3737
<WarningLevel>4</WarningLevel>
38-
<PlatformTarget>AnyCPU</PlatformTarget>
38+
<PlatformTarget>x86</PlatformTarget>
3939
</PropertyGroup>
4040
<ItemGroup>
4141
<Reference Include="System" />
@@ -45,10 +45,6 @@
4545
<Compile Include="Properties\AssemblyInfo.cs" />
4646
</ItemGroup>
4747
<ItemGroup>
48-
<ProjectReference Include="..\HidSharp.DeviceHelpers\HidSharp.DeviceHelpers.csproj">
49-
<Project>{394523C0-98D0-4273-8C96-7E38FC7A97DC}</Project>
50-
<Name>HidSharp.DeviceHelpers</Name>
51-
</ProjectReference>
5248
<ProjectReference Include="..\HidSharp\HidSharp.csproj">
5349
<Project>{0DB86674-2A7B-4BDC-93C1-3F7DC771426C}</Project>
5450
<Name>HidSharp</Name>

0 commit comments

Comments
 (0)