Comments (5)
This is actually issue #9, so I updated the title.
from bacpypes.
Check out the issue-9 branch. This is only a problem with py34, but was also a problem with LocalStation
addresses. If you can confirm it's fixed, I'll merge this with the master branch. This is exactly the kind of problem that good unit tests would fix!
from bacpypes.
I think it's ok
> whois
> pduSource = <Address 192.168.210.253>
iAmDeviceIdentifier = ('device', 210253)
maxAPDULengthAccepted = 1476
segmentationSupported = noSegmentation
vendorID = 245
pduSource = <RemoteStation 2:5>
iAmDeviceIdentifier = ('device', 5)
maxAPDULengthAccepted = 480
segmentationSupported = segmentedTransmit
> exit
Exiting...
from bacpypes.
Regarding unit test, we could think about reference PDUs that we would always create in our unittest... and make all the tests based on that "fake" PDUs
I'm thinking of complete ones similar to what we could receive from the network.
One MSTP, one IP... for example
from bacpypes.
Setting up a testing framework is going to be a challenge. I was expecting that the virtual network implementation in the vlan.py was going to be sufficient for the stack, and probably will be where the client and server are in the same application. The ultimate goal is for testing to match the ASHRAE Standard 135.1 Method of Test for Conformance to BACnet standard and could be applied to real devices. It seems like the client and server tests would be identical, they're all just sequences of PDU's.
:-)
I'm closing this issue before the thread gets too off-track.
from bacpypes.
Related Issues (20)
- inconsistent COV subscription response: noReponse vs timeout
- [Question] Proper BBMD.py usage HOT 3
- BACnet Services request notification
- asyncore removed from python 3.12 HOT 4
- Issue in dockerising an MSTP application using Misty and BACpypes HOT 1
- Problem with ConfirmedEventNotification in BACpypes Sample HOT 2
- BACnet device is not discoverable in Yabe HOT 4
- MAC Address from I-Am HOT 2
- Do we need to modify our code if we are prefering BACnet port as TCP over UDP? HOT 1
- Clearing / Releasing a priority HOT 2
- Dependency asyncore has been removed in python 3.12. HOT 2
- How do I alter the object properties' values while the simulator is running? HOT 1
- Remote network responds to WhoIsIAm but not ReadProperty HOT 5
- COV - how is Priority handled HOT 1
- COV subscription setting lifetime to 0 causes Error HOT 2
- Erroneous Day-of-week code in packet when building readRange log-buffer request with time-range HOT 6
- Upload GitHub release and PyPI archive HOT 2
- Python 3.12 Unsupported version of Python HOT 2
- Priority Array HOT 2
- External Device writing to one of My Objects HOT 7
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 bacpypes.