<?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[Timeout error when call getExtendedDeviceInformation]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm having problem with discovery devices when using method 'getExtendedDeviceInformation'. The application stops and after some time I got a timeout error.<br />
To test the BACnet I use VTS application. The VTS respond 4 times but it looks like the BACnet4j doesn't see the responses.</p>
<p dir="auto">P.S.<br />
Also the VTS can see 'Iam' message so it's not a communication issue.</p>
<pre><code>    public static void main(String[] args) throws Exception {
         LocalDevice localDevice = new LocalDevice(12, "192.168.254.255");         
        localDevice.getEventHandler().addListener(new Listener());
        localDevice.initialize();

        localDevice.sendBroadcast(47808, new WhoIsRequest());

        // Wait a bit for responses to come in.
        Thread.sleep(1000);
        
        // Get extended information for all remote devices.
        for (RemoteDevice d : localDevice.getRemoteDevices()) {            
      	
        	localDevice.getExtendedDeviceInformation(d);        	
            
            List&lt;ObjectIdentifier&gt; oids = ((SequenceOf&lt;ObjectIdentifier&gt;) localDevice.sendReadPropertyAllowNull(d, d
                    .getObjectIdentifier(), PropertyIdentifier.objectList)).getValues();

            PropertyReferences refs = new PropertyReferences();
            for (ObjectIdentifier oid : oids)
                addPropertyReferences(refs, oid);

            PropertyValues pvs = localDevice.readProperties(d, refs);
            
            System.out.println(pvs);
            System.out.println(d);
        }

        localDevice.terminate();
        
    }

    private static void addPropertyReferences(PropertyReferences refs, ObjectIdentifier oid) {
        refs.add(oid, PropertyIdentifier.objectName);

        ObjectType type = oid.getObjectType();
        if (ObjectType.accumulator.equals(type)) {
            refs.add(oid, PropertyIdentifier.units);
        }
        else if (ObjectType.analogInput.equals(type) || ObjectType.analogOutput.equals(type)
                || ObjectType.analogValue.equals(type) || ObjectType.pulseConverter.equals(type)) {
            refs.add(oid, PropertyIdentifier.units);
        }
        else if (ObjectType.binaryInput.equals(type) || ObjectType.binaryOutput.equals(type)
                || ObjectType.binaryValue.equals(type)) {
            refs.add(oid, PropertyIdentifier.inactiveText);
            refs.add(oid, PropertyIdentifier.activeText);
        }
        else if (ObjectType.lifeSafetyPoint.equals(type)) {
            refs.add(oid, PropertyIdentifier.units);
        }
        else if (ObjectType.loop.equals(type)) {
            refs.add(oid, PropertyIdentifier.outputUnits);
        }
        else if (ObjectType.multiStateInput.equals(type) || ObjectType.multiStateOutput.equals(type)
                || ObjectType.multiStateValue.equals(type)) {
            refs.add(oid, PropertyIdentifier.stateText);
        }
        else
            return;

        refs.add(oid, PropertyIdentifier.presentValue);
    }

    static class Listener extends DefaultDeviceEventListener {
        @Override
        public void iAmReceived(RemoteDevice d) {
            System.out.println("IAm received" + d);
        }
    }

</code></pre>
]]></description><link>https://forum.mango-os.com/topic/1222/timeout-error-when-call-getextendeddeviceinformation</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 03:49:33 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1222.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Dec 2012 04:05:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Timeout error when call getExtendedDeviceInformation on Fri, 04 Jan 2013 19:52:25 GMT]]></title><description><![CDATA[<p dir="auto">Can you get a trace of the request and response, i.e. the byte streams?</p>
]]></description><link>https://forum.mango-os.com/post/7339</link><guid isPermaLink="true">https://forum.mango-os.com/post/7339</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Fri, 04 Jan 2013 19:52:25 GMT</pubDate></item></channel></rss>