<?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[Talking to devices without discovery]]></title><description><![CDATA[<p dir="auto">I have a bunch of devices I want to talk to occasionally that's behind a firewall.  Messages to/from port 47808 pass fine, but broadcasts do not work.</p>
<p dir="auto">The device is a Wattstopper digital lighting control segment manager that sits on ethernet.  Behind it are four MS/TP segments.</p>
<p dir="auto">I figured out that I can do the following:</p>
<pre><code>
 int instanceNumber = 1234;   /* not the real instance id of the gateway/segment manager */
Address segmentManagerAddress = new Address("10.1.2.3", 47808);  /* not the real IP address */
OctetString segmentManagerLinkService = null;
RemoteDevice segmentManager = new RemoteDevice(instanceNumber, segmentManagerAddress, segmentManagerLinkService);
segmentManager.setSegmentationSupported(Segmentation.noSegmentation);
segmentManager.setMaxAPDULengthAccepted(1476);
Encodable descr = RequestUtils.sendReadPropertyAllowNull(localDevice,
                segmentManager,
                remoteRequestOid,
                PropertyIdentifier.description);

</code></pre>
<p dir="auto">this gets me a description so it works.</p>
<p dir="auto">My next step is to figure out how to talk to the devices that are on the networks BEYOND the gateway/segment manager.  Each one has its own network ID and a bunch of devices.</p>
<p dir="auto">Without using broadcast discovery, how do I configure a RemoteDevice that can talk to these devices?</p>
]]></description><link>https://forum.mango-os.com/topic/1548/talking-to-devices-without-discovery</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 05:45:57 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1548.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 May 2014 22:20:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Talking to devices without discovery on Thu, 22 May 2014 00:38:08 GMT]]></title><description><![CDATA[<p dir="auto">Glad to hear you don't expose your BACnet port!</p>
<p dir="auto">I'm a little rusty on the discovery process.<br />
When answering a WhoIs, isn't the gateway supposed to send you the list of devices it knows about?</p>
<p dir="auto">As a patch, perhaps you could 'scan' for these devices every once in a while to make sure you have all of them.<br />
Say all device from ID 0 to 99 (or whatever is their ID range).</p>
]]></description><link>https://forum.mango-os.com/post/8598</link><guid isPermaLink="true">https://forum.mango-os.com/post/8598</guid><dc:creator><![CDATA[Frozenlock]]></dc:creator><pubDate>Thu, 22 May 2014 00:38:08 GMT</pubDate></item><item><title><![CDATA[Reply to Talking to devices without discovery on Thu, 22 May 2014 00:21:16 GMT]]></title><description><![CDATA[<p dir="auto">Not in my case, but I have noticed that a lot of folks aren't particularly careful about this.  I find it very troubling.</p>
<blockquote>
<p dir="auto">Perhaps you could send the WhoIs directly to the device instead of using a broadcast?</p>
</blockquote>
<p dir="auto">Yeah.  That lets me see interesting things about the gateway ... but I haven't figured out how to make it tell me about ("discover") things BEYOND the gateway.  If I known the network #, device ID, and MAC of the MS/TP device (as an example) then I can talk to it.  I feel like this is fragile, though - like what if the power recycles and all these devices come up and arbitrate for new MAC addresses?  How do I prevent my software from getting confused by this?</p>
]]></description><link>https://forum.mango-os.com/post/8597</link><guid isPermaLink="true">https://forum.mango-os.com/post/8597</guid><dc:creator><![CDATA[wz2b]]></dc:creator><pubDate>Thu, 22 May 2014 00:21:16 GMT</pubDate></item><item><title><![CDATA[Reply to Talking to devices without discovery on Thu, 22 May 2014 00:14:27 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps you could send the WhoIs directly to the device instead of using a broadcast?</p>
<p dir="auto">On a semi-related note, you are communicating with a remote device behind a firewall...<br />
Does it mean you exposed the port 47808 to the Internet?  :shock:</p>
]]></description><link>https://forum.mango-os.com/post/8596</link><guid isPermaLink="true">https://forum.mango-os.com/post/8596</guid><dc:creator><![CDATA[Frozenlock]]></dc:creator><pubDate>Thu, 22 May 2014 00:14:27 GMT</pubDate></item></channel></rss>