• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Failure to communicate with BACnet server simulator

    BACnet4J general discussion
    1
    3
    3.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vincent
      last edited by

      Hi,

      I have recently approached BACnet technology and I have succesfully tested demo applications presents in BACnet stack C library with one windows laptop mounting a linux virtual machine. I was able to launch a BACnet server simulator on my virtual machine and communicate with it through a client running on my host machine.

      Last week I have tested BACnet4J and on my host machine with a Java application with BACnet4J I have managed to read and write property on my BACnet server simulator in C running on my virtual machine.

      Today, come back from the week end, the same BACnet4J code cannot find my BACnet server (running on virtual machine) no more. I have spent several hours today trying to understand the cause but without success. On my host machine with C BACnet stack clients, I can read properties on my server, but with BACnet4J, the server doesn't respond not even to WhoIs request.

      This is the code from Test2.java. After sending WhoIsRequest() the application doesn't receive any Iam message.

      
              LocalDevice localDevice = new LocalDevice(1968, new Transport(new IpNetwork()));
      
              localDevice.getEventHandler().addListener(new Listener());
              localDevice.initialize();
      
              try {
                  localDevice.sendGlobalBroadcast(new WhoIsRequest());
                  Thread.sleep(2000);
      
         
                  getObjectList(localDevice, new Address(2001, new byte[] { 0x3a }), new OctetString("192.168.0.68", 0xBAC0),
                          76058);
      
              }
              finally {
                  localDevice.terminate();
              }
      
          static class Listener extends DeviceEventAdapter {
              @Override
              public void iAmReceived(RemoteDevice d) {
                  System.out.println("IAm received" + d);
              }
          }
      
      

      Someone could help me with this problem? What could be the reason why I get no answer not even to WhoIs request with my BACnet4J application?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • V
        Vincent
        last edited by

        This morning it works again. Still don't understand why... Is this a bug? There something I'm missing?

        Thank you.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post