<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.sundance.com/index.php?action=history&amp;feed=atom&amp;title=USB_HID_relay</id>
	<title>USB HID relay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sundance.com/index.php?action=history&amp;feed=atom&amp;title=USB_HID_relay"/>
	<link rel="alternate" type="text/html" href="http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;action=history"/>
	<updated>2026-04-26T08:28:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=115&amp;oldid=prev</id>
		<title>Christopherh at 11:12, 13 May 2024</title>
		<link rel="alternate" type="text/html" href="http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=115&amp;oldid=prev"/>
		<updated>2024-05-13T11:12:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:12, 13 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is a simple device that converts USB to a HID device so doesn&amp;#039;t tie up a comport.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is a simple device that converts USB to a HID device so doesn&amp;#039;t tie up a comport.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When special commands are sent to the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;comport &lt;/del&gt;it either energises or de-engeriges the relay, switching between NC (Normally Connected)  and NO (Normally Open).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When special commands are sent to the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;device &lt;/ins&gt;it either energises or de-engeriges the relay, switching between NC (Normally Connected)  and NO (Normally Open).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So if a wire is routed through NO -&amp;gt; COM, when the relay is switched on the contacts close and the circuit completes.  When switched off again it opens and breaks the circuit.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So if a wire is routed through NO -&amp;gt; COM, when the relay is switched on the contacts close and the circuit completes.  When switched off again it opens and breaks the circuit.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christopherh</name></author>
	</entry>
	<entry>
		<id>http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=114&amp;oldid=prev</id>
		<title>Christopherh: /* Windows */</title>
		<link rel="alternate" type="text/html" href="http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=114&amp;oldid=prev"/>
		<updated>2024-05-10T17:07:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Windows&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:07, 10 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Windows ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Windows ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In windows the easiest way I found of controlling it was to use a program called &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SSCOM32E&lt;/del&gt;&quot;.  I&#039;ve saved a copy of this to our FTP server [https://ftp2.sundance.com/Pub/Support_Files/Wiki_images/extras/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;UART-Communication-Software-SSCOM32&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rar &lt;/del&gt;HERE].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In windows the easiest way I found of controlling it was to use a program called &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LCHID.exe&lt;/ins&gt;&quot;.  I&#039;ve saved a copy of this to our FTP server [https://ftp2.sundance.com/Pub/Support_Files/Wiki_images/extras/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LCHID&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ZIP &lt;/ins&gt;HERE].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;When &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;box is plugged into your windows PC, &lt;/del&gt;check the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;device manager to see which comport it has been allocated.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Open &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;program &lt;/ins&gt;check &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VID and PID numbers are as shown  (VID: 5131, PID: 2007) - shown in GREEN&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Open &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;program &lt;/del&gt;and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;select the comport from the drop down box (Green).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Click &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;Relay1&quot; checkbox to switch it on, &lt;/ins&gt;and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;again to switch it off- shown in Blue&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Set the string that you need to send to change the state of the relay (Red) and then press Send (Blue).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LC HID &lt;/ins&gt;usage.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SSCOM &lt;/del&gt;usage.png]]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should hear the relay click and see a second LED come on through the slot.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should hear the relay click and see a second LED come on through the slot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The commands to send are &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;A0 01 01 A2&quot; to switch it on - no quotes.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;A0 01 00 A1&quot; to switch it off - no quotes.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Linux ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Linux ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christopherh</name></author>
	</entry>
	<entry>
		<id>http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=112&amp;oldid=prev</id>
		<title>Christopherh: Created page with &quot;The USB HID relay box contains one of these:  240px    It is a simple device that converts USB to a HID device so doesn&#039;t tie up a comport.  When special commands are sent to the comport it either energises or de-engeriges the relay, switching between NC (Normally Connected)  and NO (Normally Open).  So if a wire is routed through NO -&gt; COM, when the relay is switched on the contacts close and the circuit completes.  When switched off again it...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.sundance.com/index.php?title=USB_HID_relay&amp;diff=112&amp;oldid=prev"/>
		<updated>2024-05-10T17:01:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The USB HID relay box contains one of these:  &lt;a href=&quot;/index.php?title=File:USB_HID_Relay.png&quot; title=&quot;File:USB HID Relay.png&quot;&gt;240px&lt;/a&gt;    It is a simple device that converts USB to a HID device so doesn&amp;#039;t tie up a comport.  When special commands are sent to the comport it either energises or de-engeriges the relay, switching between NC (Normally Connected)  and NO (Normally Open).  So if a wire is routed through NO -&amp;gt; COM, when the relay is switched on the contacts close and the circuit completes.  When switched off again it...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The USB HID relay box contains one of these:&lt;br /&gt;
&lt;br /&gt;
[[File:USB HID Relay.png|240px]]  &lt;br /&gt;
&lt;br /&gt;
It is a simple device that converts USB to a HID device so doesn&amp;#039;t tie up a comport.&lt;br /&gt;
&lt;br /&gt;
When special commands are sent to the comport it either energises or de-engeriges the relay, switching between NC (Normally Connected)  and NO (Normally Open).&lt;br /&gt;
&lt;br /&gt;
So if a wire is routed through NO -&amp;gt; COM, when the relay is switched on the contacts close and the circuit completes.  When switched off again it opens and breaks the circuit.&lt;br /&gt;
&lt;br /&gt;
NC is the other way round.&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
In windows the easiest way I found of controlling it was to use a program called &amp;quot;SSCOM32E&amp;quot;.  I&amp;#039;ve saved a copy of this to our FTP server [https://ftp2.sundance.com/Pub/Support_Files/Wiki_images/extras/UART-Communication-Software-SSCOM32.rar HERE].&lt;br /&gt;
&lt;br /&gt;
When the box is plugged into your windows PC, check the device manager to see which comport it has been allocated.&lt;br /&gt;
&lt;br /&gt;
Open the program and select the comport from the drop down box (Green).&lt;br /&gt;
&lt;br /&gt;
Set the string that you need to send to change the state of the relay (Red) and then press Send (Blue).&lt;br /&gt;
&lt;br /&gt;
[[File:SSCOM usage.png]]&lt;br /&gt;
&lt;br /&gt;
You should hear the relay click and see a second LED come on through the slot.&lt;br /&gt;
&lt;br /&gt;
The commands to send are &lt;br /&gt;
&amp;quot;A0 01 01 A2&amp;quot; to switch it on - no quotes.&lt;br /&gt;
&amp;quot;A0 01 00 A1&amp;quot; to switch it off - no quotes.&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
In Linux you don&amp;#039;t need any additional programs.&lt;br /&gt;
&lt;br /&gt;
To find out which USB device it has been allocated run this command:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ls $(find /sys/devices -iname &amp;#039;*:5131:2007.*&amp;#039;)/hidraw&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This will tell you the &amp;quot;hidraw&amp;quot; number of the last thing that was connected to the PC.&lt;br /&gt;
&lt;br /&gt;
This may well change each and every time you run it.  &lt;br /&gt;
&lt;br /&gt;
To control the relay enter the following commands in terminal (changing the hidraw number to the one reported):&lt;br /&gt;
&lt;br /&gt;
You will need to change the permissions for this hid device.&lt;br /&gt;
&lt;br /&gt;
Run this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo chmod 0666 /dev/hidraw1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To switch on:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;echo -e &amp;#039;\xA0\x01\01\xA2&amp;#039; &amp;gt; /dev/hidraw1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To switch off:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;echo -e &amp;#039;\xA0\x01\00\xA1&amp;#039; &amp;gt; /dev/hidraw1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This script below is probably overkill, but will switch the device on and off as many times as you tell it to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It starts by asking you to unplug and reattach the box so that it can get the device ID of the HID dongle.&lt;br /&gt;
It saves this ID to a file, and then reads the file to a variable (Probably can be done better?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The script then uses this as the device to switch the relay on and off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;Please unlpug and reconnect the USB HID relay box so we can get the device ID&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 read -p $&amp;#039;\e[32m\e[107m Press any key to continue...\e[0m&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 touch /temp/usbHIDport.txt&lt;br /&gt;
 port=/temp/usbHIDport.txt&lt;br /&gt;
 &lt;br /&gt;
ls $(find /sys/devices -iname &amp;#039;*:5131:2007.*&amp;#039;)/hidraw &amp;gt; &amp;quot;$port&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 port2usb=$(&amp;lt;&amp;quot;$port&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;It found that it&amp;#039;s on: $port2usb&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo chmod 0666 /dev/$port2usb&lt;br /&gt;
 &lt;br /&gt;
 counter=1&lt;br /&gt;
 &lt;br /&gt;
 read -p &amp;quot;Enter number of loops required: &amp;quot; user_max_counter&lt;br /&gt;
 &lt;br /&gt;
 while [ $counter -le $user_max_counter ]&lt;br /&gt;
 do&lt;br /&gt;
 echo $&amp;#039;\e[32m\e[107m Loop number&amp;#039; $counter $&amp;#039;of &amp;#039; $user_max_counter $&amp;#039;\e[0m&amp;#039;&lt;br /&gt;
 ((counter++)) &lt;br /&gt;
 &lt;br /&gt;
 echo -e &amp;#039;\xA0\x01\01\xA2&amp;#039; &amp;gt; /dev/$port2usb&lt;br /&gt;
 echo &amp;quot;Relay On!&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 sleep 3s &lt;br /&gt;
 &lt;br /&gt;
 echo -e &amp;#039;\xA0\x01\00\xA1&amp;#039; &amp;gt; /dev/$port2usb&lt;br /&gt;
 echo &amp;quot;Relay Off!&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 sleep 3s &lt;br /&gt;
 &lt;br /&gt;
 done&lt;br /&gt;
 echo All done&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The box itself ===&lt;br /&gt;
&lt;br /&gt;
[[File:Relay box.png|240px]]&lt;br /&gt;
&lt;br /&gt;
On the box there is a USB-B connection on the rear.  Connect this to your PC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The two black terminals are connected together.  Nothing is switched.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The two red terminals are switched via the relay ONLY when the master control switch in on.  &lt;br /&gt;
If the switch is as per the photo, the relay is bypassed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The relay is set to be off by default.&lt;/div&gt;</summary>
		<author><name>Christopherh</name></author>
	</entry>
</feed>