Comments (7)
Hi @ReiminkB, can you post the part where you call ReadPropertyRequest and tell me what kind of object and property you want to read from?
from bacnet.
Closing due to lack of feedback
from bacnet.
from bacnet.
@ReiminkB thanks for the feedback. Could you please try the latest beta (1.0.19) and see if you get a more human friendly message? Abort code 4 means that segmentations is not supported. Your device has too many objects and you can't read them due to lack of segmentation support (read more about it here). You need to read one object at a time using indexes.
Try this (I just typed it here so no guarantee it works but you will get the idea):
var propertyId = BacnetPropertyIds.PROP_OBJECT_LIST;
client.ReadPropertyRequest(device.Ip, objectId, propertyId, out value_list, arrayIndex: 0);
var objectCount = value_list.First().As<int>();
for (uint i = 1; i <= objectCount; i++)
{
client.ReadPropertyRequest(device.Ip, objectId, propertyId, out value_list, arrayIndex: i);
object_list.AddLast(value_list.First().As<BacnetObjectId>());
}
from bacnet.
@gralin thanks for the answer. I replace 1.0.13 for 1.0.19-beta and got indeed the message: "Abort from device, reason: SEGMENTATION_NOT_SUPPORTED"
Thanks for the useful information from that link.
I adjusted my code by reading the properties one by one, as you suggested, when trying to read the complete list fails.
I tested the code and now it works for that device as well.
Thanks!
from bacnet.
@ReiminkB I'm glad it works for you! If you find this lib useful please give it a star 😇 I'm planning a rewrite of the API so it's more user friendly, so stick around for v2 in near future.
from bacnet.
So, is there no way to read more than one object at a time, let's say, read in chunks of 10 objects?
from bacnet.
Related Issues (20)
- 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
- False negative address comparison for some BACnet Devices HOT 1
- Error on notification class reception
- Failed to read property PROP_OBJECT_LIST
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.