• 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

    Case for bacnet4j run on Linux

    BACnet4J general discussion
    4
    7
    2.1k
    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.
    • N
      Nuc_sun
      last edited by

      Hi, Dear All,

      I use bacnet4j to develop a program, it can run normally on Windows, but can not run normally on virtual Linux(Ubuntu 16.04 and CentOS7).
      Using Eclipse debug this program, find that the IpNetwork's socket has sent the broadcast msg i.e. who is router. but the socket never receive the DatagramPacket and block on it. ( #IpNetwork.java line 328).
      Why this?

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        I'm not a bacnet expert, but going on simple laws of network rules, the port is open for incoming requests, even if it is on a local port? It could be blocked is what I'm saying.

        Secondly, ensure the port is open and running using netstat -l

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • N
          Nuc_sun
          last edited by

          Thank MattFox,
          The port 47808 is open and run.

          0_1581215363400_7c7ea2fe-fa2e-4386-ae75-18e383b96ec2-image.png

          1 Reply Last reply Reply Quote 0
          • MattFoxM
            MattFox
            last edited by

            Ok, my next advice would be checking if that error corresponds with the version of java running on your system. Compare with windows.
            That's all I can think of.
            Best of luck. I trust one of the infinite chaps here will be far more helpful.

            Fox

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

            1 Reply Last reply Reply Quote 0
            • terrypackerT
              terrypacker
              last edited by

              I would look at the bind address you are using as I believe broadcast messages may behave differently in Windows vs Linux. For example

              0.0.0.0
              

              Vs your local ip of:

              192.168.1.2
              
              1 Reply Last reply Reply Quote 0
              • N
                Nuc_sun
                last edited by

                Thanks terrypacher.
                Yes, may pc address is 192.168.254.177. Use the 0.0.0.0 for LocalBindAddress can run normally.
                But why can not use local address to bind for linux, I will think it and try to find the answer.

                1 Reply Last reply Reply Quote 0
                • D
                  dong
                  last edited by

                  Hi Nuc_sun,

                  have you find the answer?

                  I think the topic title may make people confused. You can run BACnet4J on Linux physical machine, it runs OK! The problem you encountered is BACnet4J run on Linux in virtual machine. The network settings of the virtual machine is not suitable for BACnet4J, I think!

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