Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to read or discover a Device via Router #42

Open
2 tasks
m2b opened this issue Apr 5, 2024 · 4 comments
Open
2 tasks

Not able to read or discover a Device via Router #42

m2b opened this issue Apr 5, 2024 · 4 comments

Comments

@m2b
Copy link

m2b commented Apr 5, 2024

Node Version: 16.15.0

Node BACstack Version: 0.2.4

  • Bug Report
  • Feature Request
  • [X ] Question

Note: Make sure you have read the FAQs
before logging this issue.

Feature Request / Question

How does one specify the id and address of a device such as shown in the attached imaged.

Current Behaviour (Bug Report)

I tried discovery and read examples. There is a scenario that I cannot get either to work for. I use Yabe to discover the device and the attached image is what it shows. It discovers it and shows a device ID but I cannot get Node BACStack to read or discover this device.

Expected Behaviour (Bug Report)

Should at least be able to read its properties if one specifies its address and deviceID.
RoutedDevice

Steps to reproduce Issue (Bug Report)

The device is routed via a Moxa gateway that acts as a BACNet router. This issue is also happening when a router is involved.

@Apollon77
Copy link
Collaborator

Yes thats exactly one case I never was able to simulate (because also I never found any od the bacnet simulators that support routers) and because of never having such devices it is very hard to find reasons here. We had such a report before but never got more details, so we were never able to look into it.

So I would propose the following:

  • enable all debug log modes in the library and gather infos of the router and devcie and such and post full log incl. all details and messages and such here
  • If you have a tool or bacnet browser (windows) tool or such (as I assume seeing the screenshot) also try to check if they expose communication logs - the more low level the better :-) post anything here ... do not limit or obfruscate it (sorry) because else we miss crucial infos

Without having such a device this would be the only way to try to check that the lib is currently doing and compare to what it should do.

Alternative is that you jump on that and provide a PR to add correct bevahvior.

@m2b
Copy link
Author

m2b commented Apr 8, 2024

I tried a Python library and it does see the nodes when you set an option: globalBroadcast=True. The device it finds has a strange address (not a Bacnet person myself). I am able to read using that address on their library. That address (1000:0xc0a808730001) is rejected by Bacstack.

2024-04-08 11:17:13,221 - INFO | Use BAC0.log_level to adjust verbosity of the app.
2024-04-08 11:17:13,221 - INFO | Ex. BAC0.log_level('silence') or BAC0.log_level('error')
2024-04-08 11:17:13,221 - INFO | Starting TaskManager
2024-04-08 11:17:13,221 - INFO | Using ip : 192.168.8.233 on port 47808 | broadcast : 192.168.8.255
2024-04-08 11:17:13,249 - INFO | Starting app...
2024-04-08 11:17:13,249 - INFO | BAC0 started
2024-04-08 11:17:13,249 - INFO | Registered as Simple BACnet/IP App
2024-04-08 11:17:13,249 - INFO | Device instance (id) : 3056734
2024-04-08 11:17:13,251 - INFO | Update Local COV Task started (required to support COV)
[('brenes_lorawan', 'Multi-Tech Systems, Inc.', '192.168.8.230', 12000), ('MGate BACnet', 'Moxa Inc.', '192.168.8.115', 10001), ('MariosBrainWaves', 'Moxa Inc.', '1000:0xc0a808730001', 101001)]
<class 'list'>
[(23.847400665283203, 'presentValue'), ([0, 0, 0, 0], 'statusFlags'), ('noUnits', 'units')]
[(-9.583598136901855, 'presentValue'), ([0, 0, 0, 0], 'statusFlags'), ('noUnits', 'units')]
[(-14.263803482055664, 'presentValue'), ([0, 0, 0, 0], 'statusFlags'), ('noUnits', 'units')]

@Apollon77
Copy link
Collaborator

Does that lib also have a DEBUG log mode? ;-) and ... which python lib you tried?

@m2b
Copy link
Author

m2b commented Apr 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants