JoelBender / BACpypes3

BACnet communications library
33 stars 7 forks source link

Whois command with details #8

Closed lcharpenwi6labs closed 9 months ago

lcharpenwi6labs commented 10 months ago

Hello. I am new in Bacnet. I used to visualize data with Yabe. I created a dummy network. Yabe sends a broadcast whois when a session starts. Here is how it is diplayed :

image

Some information like the name of the device are displayed.

When I send the same request with BACpypes3, I have the response:

python3 -m bacpypes3 --address 172.18.0.1/16:47809 --bbmd 172.18.255.255 172.18.255.255 
>whois
260001 172.18.0.2
260002 2710:0x03f7a2

Is there a way with BACpypes to have the same kind of information ?

Thanks for your help.

JoelBender commented 9 months ago

After the Who-Is is sent and the I-Am's are received, Yabe is using Read-Property to get the device name for the display. You can do the same thing in your applications, maybe starting out with the discover-devices.py sample and adding a call to app.read_property() for the object-name property of the device object like there is one for the description.