Replies: 9 comments 11 replies
-
The The
And since all BACnet objects could be present, but BACpypes does not support much of the required behavior of many of the types, so any implementation using them would be particularly lame. |
Beta Was this translation helpful? Give feedback.
-
Thanks Joel, |
Beta Was this translation helpful? Give feedback.
-
The simplest way to print out what function calls are being made and the contents of their parameters is to use the debugging tool, like adding Adding You can redirect the output of a logger to a file like |
Beta Was this translation helpful? Give feedback.
-
Please add this to the other imports you have: from bacpypes.local.object import CurrentPropertyListMixIn and then include the mixin class where you have defined your class RandomAnalogValueObject: class RandomAnalogValueObject(CurrentPropertyListMixIn, AnalogValueObject):
... That should fix it. In the The |
Beta Was this translation helpful? Give feedback.
-
When you run a Python application the # some debugging
_debug = 0
_log = ModuleLogger(globals()) You can also call it with the name of a BACpypes module or class, like |
Beta Was this translation helpful? Give feedback.
-
Joel, We are trying to bring the BACPYPES device into a Tridium Niagara JACE 8000 Because of its down status, we are not able to attempt a discover of other objects in the device (analog values etc) |
Beta Was this translation helpful? Give feedback.
-
Joel, I received a log error when my client buddy sent the 'add' to database. The pdf file is attached. I get an additional error when he pings my BACnet server. All other informational logs seem to indicate that everything else is fine. |
Beta Was this translation helpful? Give feedback.
-
It's looking for device object properties that you haven't provided. Starting at packet 126 you can see a series of ReadPropertyRequest PDUs coming in for objectName, objectList, protocolServicesSupported, vendorName, modelName, protocolRevision, firmwareRevision, applicationSoftwareVersion, and the critical one is probably systemStatus. Give these properties values when you create your device object and try again. The error at packet 578 implies they are asked for a property where BACpypes seems to be having trouble decoding what they sent. If you can attach a Wireshark capture file I can see the rest of the layers, otherwise text files are easier than PDFs. |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
I am the developer using the bacpypes. Someone on the network stated that my protocolServicesSupported is null. He confirmed it using wireshark. I am surprised that he needed that attribute because no one else has ever needed it. All of my analog-Inputs are RandomAnalogValueObject as you can see in the attachment pdf.
I can run the following code in the init method:
services_supported = this_application.get_services_supported()
print("services_supported:")
print(services_supported)
print(services_supported.value)
but when I try to assign services_supported.value to this_device.protocolServicesSupported, I get a writeAccessDenied exception.
Should bacpypes automatically assign this attribute and place it on the network? Not sure why I have to do this for him.
He also wants protocolObjectTypeSupported. I have not looked into this yet.
I have YABE on my Window laptop and everything appears to run fine.
I am using bacpypes.version = 1.18.1. with python 2.7. on a Linux computer running Debian.
BACnetService.pdf
Beta Was this translation helpful? Give feedback.
All reactions