Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 19 11:01
    ChristianTremblay commented #327
  • May 19 10:23
    AmauryLFc closed #327
  • May 19 10:23
    AmauryLFc commented #327
  • May 19 10:16
    ChristianTremblay commented #327
  • May 19 08:17
    AmauryLFc commented #327
  • May 18 20:39
    ChristianTremblay commented #327
  • May 18 20:33
    ChristianTremblay commented #326
  • May 18 20:32
    ChristianTremblay commented #325
  • May 18 15:34
    jetran01 commented #327
  • May 18 15:33
    jetran01 commented #327
  • May 18 13:34
    jetran01 commented #325
  • May 18 10:26
    jetran01 commented #325
  • May 18 09:04
    AmauryLFc opened #327
  • May 16 02:49
    github-actions[bot] labeled #318
  • May 16 02:49
    github-actions[bot] commented #318
  • May 13 17:54
    ninjas005 opened #326
  • May 09 12:11
    jetran01 commented #325
  • May 09 09:37
    jetran01 opened #325
  • May 09 09:33
    jetran01 commented #323
  • May 08 04:46
    77anS commented #146
Safrone
@Safrone
image.png
for bacnet = BAC0.connect(ip='192.168.1.225', port=47807)
the address gets encoded as the hex instead of the ip:port which the Address doesn't like
Christian Tremblay
@ChristianTremblay
Is that the definition of an edge case ? ;-) wow !
Amirreza Heidari
@AmirrezaHeida13_twitter
May I ask if you have any recommendation regarding my question above?
Thanks
Christian Tremblay
@ChristianTremblay
In your screen shot, bac0 lower case. Can you try BAC0.log_level(“silence”) ?
Amirreza Heidari
@AmirrezaHeida13_twitter
Hi @ChristianTremblay , I tried with upper case BAC0 but it does not solve the issue. In my Python script I have imported BAC0 as bac0 that's because I have used lower case
Christian Tremblay
@ChristianTremblay
Can you share your script ?
Amirreza Heidari
@AmirrezaHeida13_twitter
@ChristianTremblay Sure, I sent it to your PV
zhude01
@zhude01
I am new to BAC0. Is there a simple way in BAC0 to get the object present value from the Point value? e.g. my device has a Point value = "57.20 degreesFahrenheit" and I only want the real number. Thanks.
Christian Tremblay
@ChristianTremblay
dev['point'].value
zhude01
@zhude01
Thanks a lot. @ChristianTremblay
zhude01
@zhude01

I got tear down error like this:
image.png

I use BAC0 '21.12.03', python 3.10.2 under Windows 10. What package should I update?

zhude01
@zhude01
Here is my simple script (pytest 7.0.1) :
image.png
zhude01
@zhude01
The above tear down errors are gone after I removed the .bin and .db then rerun.
Christian Tremblay
@ChristianTremblay
I suspect the device changed. The test are meant to be run on a fresh repo (on GitHub actions) so I didn’t considered this. Maybe I should have.
oets
@oets
image.png
Hi, I'm trying to define instances for a couple of objects, but I somehow can't get it to work. Doesn't matter what instance number I define, it always starts at 0. I'm using BAC0 Lite.
oets
@oets
image.png
got it working with objectfactory :)
Ben Bartling
@bbartling
Hey Christian, BAC0 is synchronous code right? Will BAC0 stay the same as BACpypes updates? Isn't BACpypes going more asyncio? Maybe it is or always has been!
Is the world going BACnet Secure any time soon? Are you doing any of that with BAC0?
Christian Tremblay
@ChristianTremblay
Eventually. Maybe. bacpypes3 will be (is) async … but it means a lot of work so we’ll see. Could we merge BAC0 inside it ? Future will tell.
Ben Bartling
@bbartling
Wow cool that would be awesome. Sort of reminds of Keras & Tensorflow. They ended up just merging the wrapper code inside the entire Tensorflow library with all the same features. Without a wrapper there's NO WAY I would be able to use any of it hahah
Francesco Anselmo
@pisuke
Hi all, nice to find that there is a chat room for BAC0! I've just added this issue ChristianTremblay/BAC0#319 It is about not getting data for a BACnet discovery device scan. Maybe I'm missing something about how to use BAC0 properly?
Francesco Anselmo
@pisuke
I've checked the same code on a windows machine and it finds the devices after a discover, while it doesn't on my mac and linux boxes. Is there anyone using BAC0 on linux or mac who has experienced a similar behaviour?
Christian Tremblay
@ChristianTremblay
It should work. Any network configuration difference ?
All traffic for BACnet uses UDP 47808 by default.
All Whois and Iam messages used broadcast which means that for them to work, it’s better to be in the same subnet.
Things to check. Subnet mask, firewall
Running in docker is a challenge.
Wire shark is very helpful when network issues arrive.
Joel Bender
@JoelBender
@pisuke When running in a container with 47808:47808/udp mapping set up, unicast traffic has no trouble (traffic going specifically to the host is redirected to the container) but the host might not be listening for broadcast traffic to be redirected as well, and I get different host behavior on different platforms.
oets
@oets
image.png
Hi, does anyone know if bac0 supports structured_view? As in can I put my own objects in "folders"?
Christian Tremblay
@ChristianTremblay
This is not something I implemented.
PR welcome
ltcarl
@ltcarl
I verified that I am using 21.12.03, but I am still seeing 100% cpu usage. I saw an issue that said this was resolved in 2020. Is anyone else seeing this?
Christian Tremblay
@ChristianTremblay
I don’t remember what it was….
Can you relate your issue to the same cause ?
ltcarl
@ltcarl
ChristianTremblay/BAC0#231 it was that, which didn't go into what their issue was
Christian Tremblay
@ChristianTremblay
Are you using the BAC0.lite or connect ? (Connect will try to start a web server that you may not need)
ltcarl
@ltcarl
Just using lite
Christian Tremblay
@ChristianTremblay
What Python version ?
Can you share your code ?
trappes786
@trappes786
Code.JPG
image.png
Can anyone tell me why the first reading always takes a longer time to read than the second one ?
Christian Tremblay
@ChristianTremblay
Probably the time for bacpypes to first find the way to the point (route). Once this route is found, we know where to look.
Christian Tremblay
@ChristianTremblay
that said, if you know what you are looking for, you should think about readMultiple....
AAmitkc
@AAmitkc

I used following syntax to update presentValue of a BACnet Ananlog Object with priority 8
"bacnet.write('169.254.233.18 analogValue 3000028 presentValue 10 - 8')"

can any one please tell me how can I reset the priority back to default 16 of the same point

oets
@oets
Try "bacnet.write('169.254.233.18 analogValue 3000028 presentValue null - 8')"
1 reply