Giter VIP home page Giter VIP logo

Comments (8)

gralin avatar gralin commented on June 28, 2024

Hi @dibrony, you are correct, by default the library will use any local interface to send the requests (at least for broadcasts but for unicast it will choose the right interface, so it shouldn't mix it). But if you specify the localEndpointIp for the transport, then you should limit it to that particular interface.

As to why it's blocking BACShark, it's because you are trying to use two apps and have them listen on the same port (47808). This is possible using Yabe and custom app using this library, becuase the original author has created a special mode where there is a shared connection for multiple applications to use, so you can also run multiple instances of Yabe when you don't change the Yabe settings to use exclusive port. If you just want to check if the communication is running fine, just use Wireshark and filter the traffic to bacnet.

BTW, what is BACShark? I couldn't find it with quick Google search. Is that some BACnet client I could download and test?

from bacnet.

dibrony avatar dibrony commented on June 28, 2024

Hi,

Thank you @gralin for the above info, I have also checked your answer on my other issue (#66). I will try them within few hours.
However, I noticed something yesterday while trying my code: the data I sent through BACnet is reained locally, the other guy is not able to see them on his PC via the server (as he can see other machines parameters...). Do you think setting the useExclusivePort to true will solve this problem ?

As for the BACShark, I can share it with you for testing, it is around 4MB, how can I send it to you ?

Regards

from bacnet.

dibrony avatar dibrony commented on June 28, 2024

Hi again,

Also there is something called network number (if i am not mistaken), we need it to be 100. How can I set it please ?
Just found your email, I will send you the program now.

Regards

from bacnet.

gralin avatar gralin commented on June 28, 2024

Also there is something called network number (if i am not mistaken), we need it to be 100. How can I set it please ?

The API of this library is a bit tricky, that's something I didn't change and it's inherited from the original implementation inside YABE. So you declare the network value in the BacnetAddress which you later provide as agument to read/write values from remote objects.

var address = new BacnetAddress(BacnetAddressTypes.IP, "192.168.1.100", network: 100);

the other guy is not able to see them on his PC via the server (as he can see other machines parameters...). Do you think setting the useExclusivePort to true will solve this problem ?

Yes, could be, the other device might ignore packets coming from different port than 0xBAC0. Best way to verify is to run Wireshark on the server, filter by bacnet and see if the UDP packets are being received. There might also be some firewall issues along the way.

As for the BACShark, I can share it with you for testing

Thanks, I will take a look at it later.

from bacnet.

dibrony avatar dibrony commented on June 28, 2024

Hi,

Thank you for your support, it seems to be working now.

However it is not sending the Alarm notification to the monitor, i think it is related to the receipient list property (Bacnet type: Destination). I am not able to add this property.

Can you help in this ? any example please ?

Regards

from bacnet.

gralin avatar gralin commented on June 28, 2024

Hi @dibrony can you please clarify, do you want to receive alarm notification in your code or do you want to send it?

from bacnet.

dibrony avatar dibrony commented on June 28, 2024

Hi @gralin,

I want to send an alarm notification to the server (according to an input I have).
Device instance=200 (server)

Note that my code is based on you example Bacnet.Room.Simulator

Thank you
Rony

from bacnet.

gralin avatar gralin commented on June 28, 2024

Ok and you are interested in

  1. client.Notify() - sends change of value notification
  2. client.SendUnconfirmedEventNotification() - sends event notification

from bacnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.