<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[James's Programming Page — GetSerialNumber on Mac throws an exception...]]></title>
		<link>https://swforum.seekye.com/topic/10124/</link>
		<atom:link href="https://swforum.seekye.com/feed/rss/topic/10124/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in GetSerialNumber on Mac throws an exception....]]></description>
		<lastBuildDate>Wed, 12 Jun 2019 19:12:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: GetSerialNumber on Mac throws an exception...]]></title>
			<link>https://swforum.seekye.com/post/13062/#p13062</link>
			<description><![CDATA[<p>Hi again -</p><p>Still having the issue with the GetSerialNumber() call on Mac OS.&nbsp; I built the latest source locally on the Mac to try and step through it, but didn&#039;t get very far.&nbsp; The call:</p><p>d._serialNumber = NativeMethods.IORegistryEntryGetCFProperty_String(service, NativeMethods.kIOHIDSerialNumberKey)</p><p>returns NULL.</p><p>The Windows version for the same device works fine.&nbsp; &nbsp;</p><p>Would appreciate any ideas or thoughts that I could try...the Serial Number is vital for my project.</p><p>Many thanks!</p>]]></description>
			<author><![CDATA[null@example.com (johnbizios)]]></author>
			<pubDate>Wed, 12 Jun 2019 19:12:27 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13062/#p13062</guid>
		</item>
		<item>
			<title><![CDATA[Re: GetSerialNumber on Mac throws an exception...]]></title>
			<link>https://swforum.seekye.com/post/13059/#p13059</link>
			<description><![CDATA[<p>Hi -</p><p>Thanks for the reply.</p><p>There is only one device for that Vendor Id.</p><p>When I do a device[0].ToString() I get:</p><p>Windows: Vertiv Co&nbsp; Liebert PST5&nbsp; &nbsp;1803900289A4A1C (VID 4271, PID 2, version 0.2)<br />Mac OS:&nbsp; &nbsp;Vertiv Co&nbsp; Liebert PST5&nbsp; &nbsp;(no serial number) (Vid 4271, PID 2, version 0.2)</p><p>The device path is different which I would expect, but don&#039;t understand the elements in the path, but perhaps you might:</p><p>Windows: \\\\?\\hid#vid_10af&amp;pid_0002#6&amp;6405ec&amp;0&amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}<br />Mac OS:&nbsp; IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS02@14200000/Liebert PST5&nbsp; @14200000/IOUSBHostInterface@0/IOUSBHostHIDDevice@14200000,0</p><p>I&#039;m running Nuget HID Sharp 2.1.0.&nbsp; </p><p>Everything else is running correctly.&nbsp; I&#039;m able to get Get Reports and all the data looks is correct on both platforms, so I know that I&#039;m communicating with the device.</p><p>... john ...</p>]]></description>
			<author><![CDATA[null@example.com (johnbizios)]]></author>
			<pubDate>Sun, 02 Jun 2019 00:12:55 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13059/#p13059</guid>
		</item>
		<item>
			<title><![CDATA[Re: GetSerialNumber on Mac throws an exception...]]></title>
			<link>https://swforum.seekye.com/post/13058/#p13058</link>
			<description><![CDATA[<p>Are the device lists the same on both OSes for that Vendor ID, or is devices[0] referring to something that doesn&#039;t show up on Windows, perhaps?<br />I use serial numbers across all platforms all of the time. It should work.</p>]]></description>
			<author><![CDATA[null@example.com (Zer)]]></author>
			<pubDate>Sat, 01 Jun 2019 23:01:38 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13058/#p13058</guid>
		</item>
		<item>
			<title><![CDATA[GetSerialNumber on Mac throws an exception...]]></title>
			<link>https://swforum.seekye.com/post/13057/#p13057</link>
			<description><![CDATA[<p>Hi all -</p><p>The following code:</p><p>var devices = DeviceList.Local.GetHidDevices(4271).ToList();<br />var serialNumber = devices[0].GetSerialNumber();</p><p>Throws a DeviceIoException&nbsp; (&quot;Serial Number Not Found&quot;) on MacOS (Sierra), but works fine on Windows 10 (.Net Core) using the same device.</p><p>Is this a known issue?&nbsp; &nbsp;Are there any suggested work arounds?</p><p>Thanks in advance!</p>]]></description>
			<author><![CDATA[null@example.com (johnbizios)]]></author>
			<pubDate>Fri, 31 May 2019 20:07:32 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13057/#p13057</guid>
		</item>
	</channel>
</rss>
