<?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[Multiple Devices on one physical Device]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I use BACnet4j and want to run more than one LocalDevice on one physical Device. I tried to set another Port (first Device 0xBAC0, second Device 0xBAC1 for example) but the IAm from the second Device goes wrong because it's sending to Port 0xBAC1 instead of 0xBAC0. So other physical devices don't get the message. My solution for this (so far) is to send the IAm from Device 2 with Device 1 ("device1.sendGlobalBroadcast(device2.getIAM())" but i'm not sure if this is confusing for other physical Devices. Is there a better solution?</p>
]]></description><link>https://forum.mango-os.com/topic/1575/multiple-devices-on-one-physical-device</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 06:23:29 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1575.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Jun 2014 13:01:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiple Devices on one physical Device on Sat, 12 Jul 2014 11:43:11 GMT]]></title><description><![CDATA[<p dir="auto">Well, what shall I say... I tried it today without changing anything and there is no Exception and it does what it is supposed to.</p>
]]></description><link>https://forum.mango-os.com/post/8759</link><guid isPermaLink="true">https://forum.mango-os.com/post/8759</guid><dc:creator><![CDATA[rsb89]]></dc:creator><pubDate>Sat, 12 Jul 2014 11:43:11 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple Devices on one physical Device on Fri, 11 Jul 2014 14:14:41 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure now if my question isn't clear or if there is no solution for this problem yet. I need more than one BACnet-device on one physical-device (with the same IP). Or is this against the principle of BACnet?</p>
]]></description><link>https://forum.mango-os.com/post/8756</link><guid isPermaLink="true">https://forum.mango-os.com/post/8756</guid><dc:creator><![CDATA[rsb89]]></dc:creator><pubDate>Fri, 11 Jul 2014 14:14:41 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple Devices on one physical Device on Thu, 03 Jul 2014 14:11:00 GMT]]></title><description><![CDATA[<p dir="auto">I tried this now:</p>
<pre><code>
IpNetwork ipnet = new IpNetwork (IpNetwork.DEFAULT_BROADCAST_IP, 0xBAC1);
Transport transp = new Transport(ipnet);
LocalDevice device = new LocalDevice(deviceID, transp);

try
{
	device.initialize();
	device.sendUnconfirmed(new Address(IpNetwork.DEFAULT_BROADCAST_IP, IpNetwork.DEFAULT_PORT), device.getIAm());
} catch (Exception e)
{
	e.printStackTrace();
}

</code></pre>
<p dir="auto">In this case I get<br />
[list]java.lang.IllegalArgumentException: port out of range:-1[/list]</p>
<p dir="auto">Can anybody explain?</p>
]]></description><link>https://forum.mango-os.com/post/8732</link><guid isPermaLink="true">https://forum.mango-os.com/post/8732</guid><dc:creator><![CDATA[rsb89]]></dc:creator><pubDate>Thu, 03 Jul 2014 14:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple Devices on one physical Device on Wed, 02 Jul 2014 15:12:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the response, but it sadly doesn't solves my problem. So what I want to do is a device which manages some other software-devices. The software-devices should be able to send messages themselves using another port than 0xBAC0, because this port is already used  by the "main"-device. All incoming messages (also for the software-devices) are managed by the "main"-device (this works already fine with some modifications in the stack).</p>
]]></description><link>https://forum.mango-os.com/post/8728</link><guid isPermaLink="true">https://forum.mango-os.com/post/8728</guid><dc:creator><![CDATA[rsb89]]></dc:creator><pubDate>Wed, 02 Jul 2014 15:12:08 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple Devices on one physical Device on Tue, 01 Jul 2014 21:15:01 GMT]]></title><description><![CDATA[<p dir="auto">If you are on Windows, you could try adding another IP to your network card.</p>
<p dir="auto">This way, you could have:</p>
<p dir="auto">Device 1, 192.168.0.3:47808<br />
Device 2, 192.168.0.4:47808</p>
<p dir="auto">Playing with the ports if a little delicate, as some devices will only respond the port on which they are located.</p>
]]></description><link>https://forum.mango-os.com/post/8720</link><guid isPermaLink="true">https://forum.mango-os.com/post/8720</guid><dc:creator><![CDATA[Frozenlock]]></dc:creator><pubDate>Tue, 01 Jul 2014 21:15:01 GMT</pubDate></item></channel></rss>