Giter VIP home page Giter VIP logo

Comments (5)

gralin avatar gralin commented on June 28, 2024

Thanks @cemremengu. So did setting event enrollment work? If so you should start receiving events from your device. Best way to debug is to use Wireshark with bacnet filter. This way you will see if you are sending the enrollment, if it's being set and if you receive any events. You can also post your code here or PM me and I will take a look.

from bacnet.

cemremengu avatar cemremengu commented on June 28, 2024

0Great, it was the simulator not producing event I think. It works on a real controller. Is there any way to get the presentValue property in the EventData?

For EventEnrollment it would also be good to seet the monitored object/property in EventData

from bacnet.

gralin avatar gralin commented on June 28, 2024

@cemremengu, I took a look at the code and decoding of some notification data is missing, take a look here:

https://github.com/ela-compil/BACnet/blob/master/Serialize/Services.cs#L870

Lower in that part of code you can see that encoding of the values is implemented so if you send, let's say notification of tyoe BacnetEventTypes.EVENT_CHANGE_OF_VALUE, the changed value will be encoded and sent to the recipient. So we are missing the implementation of the decoding. As a workaround I suggest that you read the present value whenever you get an event, or make a pull request to fix the missing part 😄

from bacnet.

cemremengu avatar cemremengu commented on June 28, 2024

Thanks for the suggestions! I will probably go for a PR :) The problem with sending a read request is that if the event is initiated by an event enrollment object, it does not tell me what the monitored object was so I have no information to query the value (unless I am missing something)

from bacnet.

gralin avatar gralin commented on June 28, 2024

PR is always welcome :) In event data you have two properties:

public struct BacnetEventNotificationData
{
    public BacnetObjectId initiatingObjectIdentifier;
    public BacnetObjectId eventObjectIdentifier;
...

Is neither of these your monitored object id? If not, then you are right, you have to decode the missing part...

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.