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

[Missing Feature]: Issue with PLC4J BACnet Driver - Active Connections Not Supported #1625

Open
2 of 16 tasks
zhucPPl opened this issue May 30, 2024 · 3 comments
Open
2 of 16 tasks
Labels
BACnet https://plc4x.apache.org/users/protocols/bacnet.html bug feature java Pull requests that update Java code

Comments

@zhucPPl
Copy link

zhucPPl commented May 30, 2024

What happened?

Content:
I have encountered an issue while using the plc4j-driver-bacnet (version 0.12.0). Upon creating a connection, I received the following error message: "Active connections not yet supported." Upon inspecting the source code, I discovered that the issue stems from the protocol being set to passive=false. Further investigation revealed that none of the supported transports (udp, tcp) are returning true, indicating that they do not support active connections. Additionally, when attempting to use the 'pcap' transport, I received the error message "Unsupported transport pcap," which has left me confused.

Here is the relevant code snippet:

java
String connectionString = "bacnet-ip:pcap://127.0.0.1:47808";
PlcConnection plcConnection = PlcDriverManager.getDefault().getConnectionManager().getConnection(connectionString);

I can confirm that the address used in the connection string is valid, as I have successfully implemented BACnet using bacnet4j. Currently, I have utilized plc4j to implement the modbus and knx protocols without issues, but encountered this problem while implementing the BACnet protocol. I would greatly appreciate any assistance in resolving this matter. Thank you.

Version

v0.12.0

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7
@zhucPPl zhucPPl added the bug label May 30, 2024
@chrisdutz
Copy link
Contributor

This is actually not a bug.
Active communication in Java has never been implemented.
The beginning of the bacnet driver was a paid gig, where I had to build a driver to passively observe a bacnet network.

Sebastian worked hard on an active version in go. Not quite sure about the state there.

Right now I have no plans to do the implementation of an active bacnet driver in Java.

Perhaps others can help here or you want to get your fingers dirty :-)

I think the heavy lifting of defining all the types is done and finished.

Chris

@zhucPPl
Copy link
Author

zhucPPl commented May 30, 2024

Thank you for your answer and for your hard work

@sruehl
Copy link
Contributor

sruehl commented May 31, 2024

BACnet in golang is not usable yet

@ottlukas ottlukas added java Pull requests that update Java code new feature feature labels Jun 15, 2024
@ottlukas ottlukas changed the title [Bug]: Issue with PLC4J BACnet Driver - Active Connections Not Supported [Missing Feature]: Issue with PLC4J BACnet Driver - Active Connections Not Supported Jun 15, 2024
@splatch splatch added the BACnet https://plc4x.apache.org/users/protocols/bacnet.html label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BACnet https://plc4x.apache.org/users/protocols/bacnet.html bug feature java Pull requests that update Java code
Projects
None yet
Development

No branches or pull requests

5 participants