<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GPIO Controller command protocol]]></title><description><![CDATA[<p dir="auto">Hi there, I have a WiFi/Ethernet relay board (8 channels output) 3 channel input. The input is monitoring a door status using a reed switch. (open or closed status) how can I in mango have a data point for monitoring the open closed status. the relay board ships with a GPIO Controller protocol manual  but is is over my head. I can post it here if it helps,</p>
]]></description><link>https://forum.mango-os.com/topic/2329/gpio-controller-command-protocol</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 18:09:33 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2329.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jul 2016 05:30:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GPIO Controller command protocol on Sun, 31 Jul 2016 18:06:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi moonmonkey,</p>
<p dir="auto">Presuming you are referring to the document Patd posted, it looks like you could use the TCP/IP data source, with 'configuration in hex' selected, and set values as simple hex string without the 0x prefix, so if I have a write command on a TCP/IP point like:</p>
<pre><code>0101
</code></pre>
<p dir="auto">Then every time I set any value whatsoever to that point, I'll get out the binary...</p>
<pre><code>0000000100000001
</code></pre>
<p dir="auto">it would toggle that output, and it's value regex will be given a chance to parse incoming data on the socket.  Here's a point that should do <em>something</em> (you'll need to set the host and port) but it is not a realistic expectation for me to get too deep into your documentation for the sake of answering your questions for free.</p>
<pre><code>{
   "dataSources":[
      {
         "xid":"DS_082653",
         "name":"GPIO",
         "enabled":false,
         "type":"TcpIp",
         "alarmLevels":{
            "POLL_ABORTED":"URGENT",
            "DATA_SOURCE_EXCEPTION":"URGENT",
            "POINT_READ_EXCEPTION":"URGENT"
         },
         "purgeType":"YEARS",
         "updatePeriodType":"MINUTES",
         "delimiter":"",
         "hex":true,
         "host":"localhost",
         "port":5200,
         "timeout":5000,
         "updatePeriods":5,
         "editPermission":"",
         "purgeOverride":false,
         "purgePeriod":1
      }
   ],
   "dataPoints":[
      {
         "xid":"DP_646604",
         "name":"Toggle1",
         "enabled":false,
         "loggingType":"ON_CHANGE",
         "intervalLoggingPeriodType":"MINUTES",
         "intervalLoggingType":"INSTANT",
         "purgeType":"YEARS",
         "pointLocator":{
            "dataType":"ALPHANUMERIC",
            "queryable":false,
            "readCommand":"",
            "settable":true,
            "valueIndex":1,
            "valueRegex":"8101([0-9A-F]{2})",
            "writeCommand":"0101"
         },
         "eventDetectors":[
         ],
         "plotType":"STEP",
         "unit":"",
         "chartColour":"blue",
         "chartRenderer":null,
         "dataSourceXid":"DS_082653",
         "defaultCacheSize":1,
         "deviceName":"access",
         "discardExtremeValues":false,
         "discardHighLimit":1.7976931348623157E308,
         "discardLowLimit":-1.7976931348623157E308,
         "intervalLoggingPeriod":15,
         "intervalLoggingSampleWindowSize":0,
         "overrideIntervalLoggingSamples":false,
         "purgeOverride":false,
         "purgePeriod":1,
         "readPermission":"",
         "setPermission":"",
         "textRenderer":{
            "type":"PLAIN",
            "useUnitAsSuffix":false,
            "unit":"",
            "renderedUnit":"",
            "suffix":""
         },
         "tolerance":0.0
      }
   ]
}
</code></pre>
<p dir="auto">Some people will, instead of writing a point for each output command, have a point with the write command %VALUE% only, such that they can have more control over the communication by passing values out through a scripting data source script setting the command point, and then focusing the definition of points on taking data in.</p>
]]></description><link>https://forum.mango-os.com/post/12255</link><guid isPermaLink="true">https://forum.mango-os.com/post/12255</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Sun, 31 Jul 2016 18:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Sun, 31 Jul 2016 01:53:42 GMT]]></title><description><![CDATA[<p dir="auto">Looking at the TCP/IP data source there is no way I can see how to send binary data packets. It seems to be only able to send ASCII with a delimiter. Maybe the support guys can offer a solution to sending your packet format.</p>
]]></description><link>https://forum.mango-os.com/post/12251</link><guid isPermaLink="true">https://forum.mango-os.com/post/12251</guid><dc:creator><![CDATA[v8dave]]></dc:creator><pubDate>Sun, 31 Jul 2016 01:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Sat, 30 Jul 2016 23:02:14 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to get this working to can get into the device and start communicating, but the protocol is too difficult for me to get my head around.</p>
<p dir="auto">What for example would be the command to open and close relay one - the documentation lacks any examples as far as I can see. Any idea?</p>
]]></description><link>https://forum.mango-os.com/post/12250</link><guid isPermaLink="true">https://forum.mango-os.com/post/12250</guid><dc:creator><![CDATA[moonmonkey]]></dc:creator><pubDate>Sat, 30 Jul 2016 23:02:14 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Thu, 07 Jul 2016 01:38:31 GMT]]></title><description><![CDATA[<p dir="auto">The protocol is pretty simple and you could use TCP/IP to do this although I have not yet worked with TCP/IP on Mango so far.</p>
<p dir="auto">The manuals English makes it a little hard to figure some things out but the protocol is quite easy and it takes a little digging to see that the parity is just an addition of all the bytes after the header.</p>
<p dir="auto">It talks about a cloud server but no references to the URL for this. Can you talk directly to it. Are you able to write a simple C# app in Visual Studio for example to send the bytes to it over TCP/IP and see how it responds? I would start with this if you can as then you know how it works.</p>
]]></description><link>https://forum.mango-os.com/post/11990</link><guid isPermaLink="true">https://forum.mango-os.com/post/11990</guid><dc:creator><![CDATA[v8dave]]></dc:creator><pubDate>Thu, 07 Jul 2016 01:38:31 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Thu, 07 Jul 2016 01:17:49 GMT]]></title><description><![CDATA[<p dir="auto">Thanks ,v8dave and Phil for your responses. Here is the document. Also to tell you about the device it  is fully web accessible and has setup pages including  a socket setting where you can configure<br />
Network Parameters setting(TCPB),<br />
Port ID<br />
Server address<br />
TCB Time out setting</p>
<p dir="auto"><a href="/forum/uploads/files/1467854214913-gpio-control-protocol-v1.8.pdf">0_1467854211947_GPIO control protocol V1.8.pdf</a></p>
]]></description><link>https://forum.mango-os.com/post/11987</link><guid isPermaLink="true">https://forum.mango-os.com/post/11987</guid><dc:creator><![CDATA[patd2020]]></dc:creator><pubDate>Thu, 07 Jul 2016 01:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Thu, 07 Jul 2016 01:09:18 GMT]]></title><description><![CDATA[<p dir="auto">If you can post a link to the manual it would help.</p>
]]></description><link>https://forum.mango-os.com/post/11985</link><guid isPermaLink="true">https://forum.mango-os.com/post/11985</guid><dc:creator><![CDATA[v8dave]]></dc:creator><pubDate>Thu, 07 Jul 2016 01:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO Controller command protocol on Wed, 06 Jul 2016 13:17:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi Patd,</p>
<p dir="auto">It definitely would take consulting the documentation to know what sort of advice to offer. I would bet that you'll be using the TCP/IP data source, or perhaps SSH. There're probably some sample protocol exchanges in the manual.</p>
]]></description><link>https://forum.mango-os.com/post/11969</link><guid isPermaLink="true">https://forum.mango-os.com/post/11969</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 06 Jul 2016 13:17:01 GMT</pubDate></item></channel></rss>