<?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[Slave and virtual device on same system]]></title><description><![CDATA[<p dir="auto">Hi, I'm wondering if it's possible to have both a virtual device and a slave device on the same computer.</p>
<p dir="auto">I have a server setup with 2 physical network interfaces on the same network. I would like my virtual device to be tied to one network interface (say eth0) and my slave device, running periodic scans of the bacnet network runnong on the other device (eth1).</p>
<p dir="auto">I've tried setting up bacnet4j with the appropriate broadcast and IP address to try and force it to bind to a specific network interface. Every time I try this the code simply fails to do anything. That is, no errors are generated, but the software never receives any responses.</p>
<p dir="auto">So, is it possible to actually run two different bacnet4j processes on the same computer, with two different interfaces?</p>
<p dir="auto">Thanks,<br />
Jason</p>
]]></description><link>https://forum.mango-os.com/topic/1020/slave-and-virtual-device-on-same-system</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 06:10:11 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1020.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jun 2012 21:15:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Slave and virtual device on same system on Tue, 12 Jun 2012 22:53:57 GMT]]></title><description><![CDATA[<p dir="auto">Good to know.</p>
]]></description><link>https://forum.mango-os.com/post/6457</link><guid isPermaLink="true">https://forum.mango-os.com/post/6457</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 12 Jun 2012 22:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Slave and virtual device on same system on Tue, 12 Jun 2012 22:51:37 GMT]]></title><description><![CDATA[<p dir="auto">Certainly.</p>
<p dir="auto">Taking the SlaveDeviceTest.java line 58</p>
<p dir="auto">If I do:</p>
<pre><code>
LocalDevice localDevice = new LocalDevice(1968, "172.16.0.255"); // works

</code></pre>
<pre><code>
LocalDevice localDevice = new LocalDevice(1968, "172.16.0.255", "172.16.0.4"); // does not work 

</code></pre>
<p dir="auto">For what it's worth, I understand the issue now. I'm running on Linux. On Linux, if you bind to a specific address you will not receive broadcast UDP messages unless you are running as root with a raw socket and SO_BINDTOINTERFACE set.</p>
<p dir="auto">The issue is discussed from a Java on Linux perspective here: <a href="http://www.java.net/node/695514" rel="nofollow ugc">http://www.java.net/node/695514</a> and from a Linux C perspective here: <a href="http://developerweb.net/viewtopic.php?id=5722" rel="nofollow ugc">http://developerweb.net/viewtopic.php?id=5722</a>.</p>
<p dir="auto">Thanks,<br />
Jason</p>
]]></description><link>https://forum.mango-os.com/post/6456</link><guid isPermaLink="true">https://forum.mango-os.com/post/6456</guid><dc:creator><![CDATA[lefticus]]></dc:creator><pubDate>Tue, 12 Jun 2012 22:51:37 GMT</pubDate></item><item><title><![CDATA[Reply to Slave and virtual device on same system on Tue, 12 Jun 2012 18:53:50 GMT]]></title><description><![CDATA[<p dir="auto">Can you provide an example of how you are doing that?</p>
]]></description><link>https://forum.mango-os.com/post/6455</link><guid isPermaLink="true">https://forum.mango-os.com/post/6455</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 12 Jun 2012 18:53:50 GMT</pubDate></item><item><title><![CDATA[Reply to Slave and virtual device on same system on Sun, 10 Jun 2012 04:50:00 GMT]]></title><description><![CDATA[<p dir="auto">The only scenario that does not work is specifying the broadcast and IP address when constructing the LocalDevice. If I do not specify the IP address it works fine.</p>
<p dir="auto">-Jason</p>
]]></description><link>https://forum.mango-os.com/post/6440</link><guid isPermaLink="true">https://forum.mango-os.com/post/6440</guid><dc:creator><![CDATA[lefticus]]></dc:creator><pubDate>Sun, 10 Jun 2012 04:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Slave and virtual device on same system on Sat, 09 Jun 2012 04:08:31 GMT]]></title><description><![CDATA[<p dir="auto">I can't say that i've tried this scenario, nor do i have resources available at the moment to do so. Have you verified that the the interfaces work individually, i.e. in the absence of the other?</p>
]]></description><link>https://forum.mango-os.com/post/6439</link><guid isPermaLink="true">https://forum.mango-os.com/post/6439</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Sat, 09 Jun 2012 04:08:31 GMT</pubDate></item></channel></rss>