<?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[BacNet IP not connected]]></title><description><![CDATA[<p dir="auto">Hello, I'm starting to mess with BacNet IP devices and I'm facing some problems.</p>
<p dir="auto">In the part of Backnet Local Devices I put the IP of the Linux server that is running the Mango (192.168.0.23)</p>
<p dir="auto"><img src="https://camo.nodebb.org/bd53be3ccc61e334cfda700719d037f89409dc75?url=https%3A%2F%2Fi.imgur.com%2FtJOmGs8.png" alt="0_1533317127020_666.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">So I went to configure Data Soucer but it does not connect and does not find the points</p>
<p dir="auto"><img src="https://camo.nodebb.org/7645bb5beaedc7ed2ae86854d82bf199dbbbf457?url=https%3A%2F%2Fi.imgur.com%2FCehbGaf.png" alt="0_1533317112337_777.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">I tried both with the ip of the server mango (192.168.0.23) and the Ip of the BacNet-enabled device (182.168.0.241) and neither of them connected.</p>
<p dir="auto">Following is information from my Bacnet device:</p>
<p dir="auto"><img src="https://camo.nodebb.org/b201d6cf8bbef58727301703cc12bf36f5cb903e?url=https%3A%2F%2Fi.imgur.com%2FbV3gps8.png" alt="0_1533317101547_888.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/topic/3689/bacnet-ip-not-connected</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 01:15:31 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3689.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Aug 2018 17:22:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BacNet IP not connected on Tue, 07 Aug 2018 21:00:17 GMT]]></title><description><![CDATA[<p dir="auto">You want to read the logBuffer property, I guess.</p>
<p dir="auto">I didn't test this script (I don't have a BACnet device with a trend log on hand), but I adapted it from this thread to print the LogRecord objects in the 'logBuffer' property of Trend Log object number 1: <a href="https://forum.infiniteautomation.com/topic/3117/bacnet-scheduler" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3117/bacnet-scheduler</a></p>
<pre><code>//Get the local device config from a configured bacnet data source.
//Edit DS XID
var localDeviceConfig = com.serotonin.m2m2.db.dao.DataSourceDao.instance.getByXid("DS_354e2188-4867-431b-9051-bca39b011ed7").getLocalDeviceConfig();
localDeviceConfig = com.serotonin.ma.bacnet.device.LocalDeviceDwr.getLocalDevice(localDeviceConfig);
var listener = new com.serotonin.ma.bacnet.ScriptableDeviceEventListener();

listener.registerListenerExceptionHandler( function(excp) { print("Listener Exception"); });
listener.registerIAmReceivedHandler( function(removeDevice) {print("Remote device");});
listener.registerAllowPropertyWriteHandler( function(from, obj, pv) {print("Allow property write");});
listener.registerPropertyWrittenHandler( function(from, obj, pv) {print("Property written");});
listener.registerIHaveReceivedHandler( function(removeDevice, removeObject) {print("I have received");});
listener.registerCovNotificationReceivedHandler( function(subIdentifier, initDeviceIdentifier, monitoredObjectIdentifier,
	timeRemaining, listOfValues) {print("COV notification");});
listener.registerEventNotificationReceivedHandler( function(processIdentifier, initDeviceIdentifier, eventObjectIdentifier, timestamp,
	notificationClass, priority, eventType, messageText, notifyType, ackRequired, fromState, toState, eventValues) 
	{print("Register event notification received");});
listener.registerTextMessageReceivedHandler( function(textMessageSourceDevice, messageClass, messagePriority, message) 
    {print("Text message received");});
listener.registerSynchronizeTimeHandler( function(from, dateTime, utc) {print("Sync time received");});
listener.registerRequestReceivedHandler( function(from, service) {print("Request received");});

var localDevice = com.serotonin.ma.bacnet.device.LocalDeviceFactory.getLocalDevice(localDeviceConfig, listener);
//print(localDevice);

try {
    //Create the read request... See com.serotonin.bacnet4j.type.enumerated.ObjectType for object types
    var objectIdentifier = new com.serotonin.bacnet4j.type.primitive.ObjectIdentifier(com.serotonin.bacnet4j.type.enumerated.ObjectType.trend    Log, 1); //EDIT: object instance number
    var propertyIdentifier = com.serotonin.bacnet4j.type.enumerated.PropertyIdentifier.logBuffer;
    var readRequest = new com.serotonin.bacnet4j.service.confirmed.ReadPropertyRequest(objectIdentifier, propertyIdentifier);

    //Get the remote device and send the request, edit the remote device number
    var remoteDevice = localDevice.getRemoteDeviceBlocking(123);

    var result = localDevice.send(remoteDevice, readRequest).get();
	//result should be a read service ack that we can hopefully get a com.serotonin.bacnet4j.type.constructed.BACnetArray of com.serotonin.bacnet4j.type.constructed.LogRecord from
	var logRecords = result.getValue(); //now iterate this list and do what
	for(var k = 0; k &lt; logRecords.size(); k+=1) {
		print(logRecords.get(k).toString());
	}
} finally {
    com.serotonin.ma.bacnet.device.LocalDeviceFactory.releaseLocalDevice(localDevice, listener);
}
</code></pre>
<p dir="auto">You may need to edit the data source xid, object instance number, and remote device id, as noted in the comments.</p>
]]></description><link>https://forum.mango-os.com/post/19469</link><guid isPermaLink="true">https://forum.mango-os.com/post/19469</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 07 Aug 2018 21:00:17 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Tue, 07 Aug 2018 11:47:33 GMT]]></title><description><![CDATA[<p dir="auto">It would be to read device historical values. It does not present "presentValue" for some data types.</p>
]]></description><link>https://forum.mango-os.com/post/19452</link><guid isPermaLink="true">https://forum.mango-os.com/post/19452</guid><dc:creator><![CDATA[leoboeng]]></dc:creator><pubDate>Tue, 07 Aug 2018 11:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Mon, 06 Aug 2018 17:51:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leoboeng" aria-label="Profile: leoboeng">@<bdi>leoboeng</bdi></a></p>
<p dir="auto">Mango does not support polling Trend Log points as one would an analog value. You can probably read any property on those objects, either through the API (takes some effort) or through a scripting data source (get the local device, figure out from the BACnet4J code how to send read property requests)..</p>
<p dir="auto">What property would you be trying to read from a trend log object? They do not have a 'presentValue' property like the other readable points do.</p>
]]></description><link>https://forum.mango-os.com/post/19432</link><guid isPermaLink="true">https://forum.mango-os.com/post/19432</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 06 Aug 2018 17:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Mon, 06 Aug 2018 14:17:13 GMT]]></title><description><![CDATA[<p dir="auto">Did setting the local device address to 0.0.0.0 fix your connectivity problems ?</p>
]]></description><link>https://forum.mango-os.com/post/19427</link><guid isPermaLink="true">https://forum.mango-os.com/post/19427</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Mon, 06 Aug 2018 14:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Mon, 06 Aug 2018 11:21:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leoboeng" aria-label="Profile: leoboeng">@<bdi>leoboeng</bdi></a> Any suggestion ?</p>
]]></description><link>https://forum.mango-os.com/post/19425</link><guid isPermaLink="true">https://forum.mango-os.com/post/19425</guid><dc:creator><![CDATA[leoboeng]]></dc:creator><pubDate>Mon, 06 Aug 2018 11:21:49 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Fri, 03 Aug 2018 18:02:36 GMT]]></title><description><![CDATA[<p dir="auto">ok thank you, I tried with all but 0.0.0.0.</p>
<p dir="auto">I started to mess with bacnet now and I'm kind of lost, but thank you !!</p>
<p dir="auto">Would not it be possible to pull the value of a TrendLog type variable?</p>
<p dir="auto"><img src="https://camo.nodebb.org/8342702acc29b82f74336ab8a9d0b7597e68f278?url=https%3A%2F%2Fi.imgur.com%2FcI1k3XP.png" alt="0_1533319579683_999.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/19411</link><guid isPermaLink="true">https://forum.mango-os.com/post/19411</guid><dc:creator><![CDATA[leoboeng]]></dc:creator><pubDate>Fri, 03 Aug 2018 18:02:36 GMT</pubDate></item><item><title><![CDATA[Reply to BacNet IP not connected on Fri, 03 Aug 2018 17:35:44 GMT]]></title><description><![CDATA[<p dir="auto">I'm pretty sure you want your local bind address to be 0.0.0.0, did you try that?</p>
]]></description><link>https://forum.mango-os.com/post/19410</link><guid isPermaLink="true">https://forum.mango-os.com/post/19410</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Fri, 03 Aug 2018 17:35:44 GMT</pubDate></item></channel></rss>