Comments (5)
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.
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.
@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.
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.
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)
- Decoding datetime objects - error on some devices
- Wrong text for reject code 9
- ReadPropertyAsync on OBJECT_CHARACTERSTRING_VALUE with MS/TP transport silently truncates data HOT 1
- problem with 'shared port' in bacnet ip/udp module HOT 1
- OutOfRangeException when sending big request HOT 3
- Setting up a notification class
- Trouble Publishing Due to Out-Of-Date Dependencies HOT 1
- Throws exception when parsing 'BacnetAddress' structure with broadcast mac address HOT 1
- IndexOutOfRangeException when calling BacnetClient.ReadPropertyResponse
- Setting `.DontFragment` on `UdpClient` on MacOS fails with an exception HOT 1
- SEGMENTATION NOT SUPPORTED WHEN REQUESTING DEVICE WITH MANY OBJECT PROPERTIES HOT 5
- Secure Bacnet (BACnetSC)
- BasicReadAndWrite Example got Nullreference exception when reading Analog input HOT 1
- Is it Possible to Create a BACnet/IP to BACnet/MSTP Router using This Library?
- VS2022 Compile issues with BasicReadWrite Example
- YABE compatibility
- ExceptionSchedule Property - Write
- Notification Class not receiving all notifications in .Net 6.0 Windows/Linux
- Problem in Discovering devices in a network from docker container running in Ubuntu 18 HOT 2
- Decode error when reading PROP_ACTIVE_COV_SUBSCRIPTIONS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bacnet.