<?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[Not able to create local device using port 47809]]></title><description><![CDATA[<p dir="auto">Hi,<br />
With BACnet4J library, I am trying to create a new object of the local device using port 47809 and initialize it.<br />
<strong>Code snippet::</strong></p>
<p dir="auto">static LocalDevice initializeLocalDevice() {<br />
LocalDevice device = null;<br />
try {<br />
device = new LocalDevice(localDeviceId, new DefaultTransport(new IpNetworkBuilder().withPort(47809).build()));<br />
device.initialize();			<br />
} catch (Exception e) {<br />
System.err.println("Error in initializeLocalDevice: " + e);<br />
e.printStackTrace();<br />
}<br />
return device;<br />
}</p>
<p dir="auto">But, got below error while executing the above code.<br />
<strong>Error:</strong><br />
Error in initializeLocalDevice: java.lang.IllegalArgumentException: Either withBroadcast or withSubnet must be called.<br />
java.lang.IllegalArgumentException: Either withBroadcast or withSubnet must be called.<br />
at com.serotonin.bacnet4j.npdu.ip.IpNetworkBuilder.build(IpNetworkBuilder.java:129)</p>
<p dir="auto">Please provide any solution for the same.</p>
<p dir="auto">Thanks,<br />
Vihangi</p>
]]></description><link>https://forum.mango-os.com/topic/4491/not-able-to-create-local-device-using-port-47809</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 14:44:17 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4491.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Sep 2019 04:11:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Tue, 01 Oct 2019 04:04:34 GMT]]></title><description><![CDATA[<p dir="auto">Still not able to read Log buffer values.<br />
Got same Error:<br />
ErrorAPDU(errorClass=property, errorCode=invalid-data-type,errorClass=property, errorCode=invalid-data-type) Error: ErrorAPDU(errorClass=property, errorCode=invalid-data-type,errorClass=property, errorCode=invalid-data-type), originalInvokeId=18</p>
<p dir="auto">Please help me with this.</p>
]]></description><link>https://forum.mango-os.com/post/23755</link><guid isPermaLink="true">https://forum.mango-os.com/post/23755</guid><dc:creator><![CDATA[Vihangi]]></dc:creator><pubDate>Tue, 01 Oct 2019 04:04:34 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Mon, 30 Sep 2019 05:51:32 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I have tried to trigger it and it will work. But, with " logging-type Value = polled", it was not able to get a trend log.</p>
<p dir="auto">With polling, it will generate below error:<br />
ErrorAPDU(errorClass=property, errorCode=invalid-data-type,errorClass=property, errorCode=invalid-data-type) Error: ErrorAPDU(errorClass=property, errorCode=invalid-data-type,errorClass=property, errorCode=invalid-data-type), originalInvokeId=18</p>
<p dir="auto">Read the output of log buffer property:<br />
Error: ErrorAPDU(errorClass=property, errorCode=read-access-denied,errorClass=property, errorCode=read-access-denied)</p>
<p dir="auto">Is there any configuration issue?</p>
]]></description><link>https://forum.mango-os.com/post/23749</link><guid isPermaLink="true">https://forum.mango-os.com/post/23749</guid><dc:creator><![CDATA[Vihangi]]></dc:creator><pubDate>Mon, 30 Sep 2019 05:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Fri, 27 Sep 2019 17:29:11 GMT]]></title><description><![CDATA[<p dir="auto">Did you attempt to figure this out before you asked? Are you attempting to read the log buffer property? <a href="https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/obj/TrendLogObject.java#L233" rel="nofollow ugc">https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/obj/TrendLogObject.java#L233</a></p>
<p dir="auto"><a href="https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/obj/logBuffer/LogBuffer.java#L8" rel="nofollow ugc">https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/obj/logBuffer/LogBuffer.java#L8</a></p>
]]></description><link>https://forum.mango-os.com/post/23741</link><guid isPermaLink="true">https://forum.mango-os.com/post/23741</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 27 Sep 2019 17:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Fri, 27 Sep 2019 11:57:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi Phildunlap,</p>
<p dir="auto">I am getting below error while reading log record of <strong>TrendLog Object</strong>.</p>
<p dir="auto"><strong>Error:</strong><br />
Error: ErrorAPDU(errorClass=property, errorCode=read-access-denied,errorClass=property, errorCode=read-access-denied)</p>
<p dir="auto"><strong>Other Property Values are as below:</strong><br />
Property:: acked-transitions	 Value :: EventTransitionBits [to-offnormal=true, to-fault=true, to-normal=true]<br />
Property:: align-intervals	 Value :: true<br />
Property:: buffer-size	 Value :: 50<br />
Property:: client-cov-increment	 Value :: ClientCov [entry=2.0]<br />
Property:: cov-resubscription-interval	 Value :: 200<br />
Property:: description	 Value :: EventEnrollment Object<br />
Property:: event-enable	 Value :: EventTransitionBits [to-offnormal=false, to-fault=true, to-normal=false]<br />
Property:: event-state	 Value :: normal<br />
Property:: event-time-stamps	 Value :: [TimeStamp [choice=DateTime [date=Date [year=255, month=UNSPECIFIED, day=255, dayOfWeek=UNSPECIFIED], time=255:255:255.255]], TimeStamp [choice=DateTime [date=Date [year=255, month=UNSPECIFIED, day=255, dayOfWeek=UNSPECIFIED], time=255:255:255.255]], TimeStamp [choice=DateTime [date=Date [year=255, month=UNSPECIFIED, day=255, dayOfWeek=UNSPECIFIED], time=255:255:255.255]]]<br />
Property:: interval-offset	 Value :: 100<br />
Property:: last-notify-record	 Value :: 1064<br />
Property:: log-device-object-property	 Value :: DeviceObjectPropertyReference [objectIdentifier=analog-output 12, propertyIdentifier=present-value, propertyArrayIndex=null, deviceIdentifier=device 105]<br />
Property:: enable	 Value :: true<br />
Property:: log-interval	 Value :: 100<br />
Property:: logging-type	 Value :: polled<br />
Property:: notification-class	 Value :: 19<br />
Property:: notification-threshold	 Value :: 100<br />
Property:: notify-type	 Value :: event<br />
Property:: object-identifier	 Value :: trend-log 26<br />
Property:: object-name	 Value :: EventEnrollment-Object<br />
Property:: object-type	 Value :: trend-log<br />
Property:: profile-name	 Value :: Default<br />
Property:: record-count	 Value :: 50<br />
Property:: records-since-notification	 Value :: 26<br />
Property:: start-time	 Value :: DateTime [date=Date [year=119, month=SEPTEMBER, day=27, dayOfWeek=FRIDAY], time=4:0:0.0]<br />
Property:: stop-time	 Value :: DateTime [date=Date [year=119, month=OCTOBER, day=4, dayOfWeek=FRIDAY], time=6:30:0.0]<br />
Property:: stop-when-full	 Value :: false<br />
Property:: total-record-count	 Value :: 1094</p>
<p dir="auto">Please help me with this.<br />
As I want to poll and read trend logs.</p>
]]></description><link>https://forum.mango-os.com/post/23739</link><guid isPermaLink="true">https://forum.mango-os.com/post/23739</guid><dc:creator><![CDATA[Vihangi]]></dc:creator><pubDate>Fri, 27 Sep 2019 11:57:29 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Fri, 27 Sep 2019 11:42:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, Phildunlap !!</p>
]]></description><link>https://forum.mango-os.com/post/23738</link><guid isPermaLink="true">https://forum.mango-os.com/post/23738</guid><dc:creator><![CDATA[Vihangi]]></dc:creator><pubDate>Fri, 27 Sep 2019 11:42:56 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Thu, 26 Sep 2019 17:36:08 GMT]]></title><description><![CDATA[<p dir="auto">Per the BACnet specification all devices on a network must be on the same port. So, to bridge networks you need a BBMD, which could be a BACnet router. The IpNetwork class does have support for behaving as a BBMD, but as Mango does not expose this functionality I have little experience with it. You can see there is an enableBBMD method, though: <a href="https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/npdu/ip/IpNetwork.java#L991" rel="nofollow ugc">https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/npdu/ip/IpNetwork.java#L991</a></p>
]]></description><link>https://forum.mango-os.com/post/23727</link><guid isPermaLink="true">https://forum.mango-os.com/post/23727</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 26 Sep 2019 17:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Thu, 26 Sep 2019 05:31:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi Phildunlap, Thanks for the reply.</p>
<p dir="auto">My error is resolved by doing below changes:<br />
new DefaultTransport(new IpNetworkBuilder().withPort(47809).withBroadcast(broadcastAdd, 24).build()</p>
<p dir="auto">Can we implement BACnet router to do communication between two devices with the different ports?</p>
<p dir="auto">For example:<br />
One device with port 47808 and another one with 47809</p>
<p dir="auto">Is it possible to do this with BACnet4J library?</p>
]]></description><link>https://forum.mango-os.com/post/23720</link><guid isPermaLink="true">https://forum.mango-os.com/post/23720</guid><dc:creator><![CDATA[Vihangi]]></dc:creator><pubDate>Thu, 26 Sep 2019 05:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to Not able to create local device using port 47809 on Wed, 25 Sep 2019 17:21:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi Vihangi, welcome to the forum.</p>
<p dir="auto">The answer is right there in the exception. If you're going to be developing with BACnet4J you will need to be able to read in the code why the exception has occurred if its message is not clear to you: <a href="https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/npdu/ip/IpNetworkBuilder.java#L128" rel="nofollow ugc">https://github.com/infiniteautomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/npdu/ip/IpNetworkBuilder.java#L128</a></p>
]]></description><link>https://forum.mango-os.com/post/23716</link><guid isPermaLink="true">https://forum.mango-os.com/post/23716</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 25 Sep 2019 17:21:14 GMT</pubDate></item></channel></rss>