Comments (2)
No, the FT1.2 transmission protocol itself is not concerned with KNX.
For Weinzierl, you can try the following utility:
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import tuwien.auto.calimero.Connection.BlockingMode;
import tuwien.auto.calimero.KNXException;
import tuwien.auto.calimero.serial.FT12Connection;
/**
* PEI check for Weinzierl FT1.2 cEMI support.
* Compile-time jar deps: calimero-core, calimero-rxtx+nrjavaserial, slf4j-api
*/
public final class WeinzierlFt12CemiSupport {
private static final int peiIdentifyReq = 0xa7;
private static final int peiIdentifyCon = 0xa8;
public static void main(final String[] args) throws KNXException, InterruptedException, TimeoutException {
if (args.length == 0)
System.err.println("supply FT1.2 communication port identifier");
else
System.out.println(supportsCemi(args[0]));
}
public static boolean supportsCemi(final String portId)
throws KNXException, InterruptedException, TimeoutException {
try (var conn = new FT12Connection(portId)) {
final var cemi = new CompletableFuture<Boolean>();
conn.addConnectionListener(frameEvent -> {
final var frame = frameEvent.getFrameBytes();
if ((frame[0] & 0xff) == peiIdentifyCon) {
// PEI_identify.con is 9 bytes, Weinzierl cEMI support is indicated by 2 extra bytes
cemi.complete(frame.length == 11);
}
});
conn.send(new byte[] { (byte) peiIdentifyReq }, BlockingMode.NonBlocking);
return cemi.get(1, TimeUnit.SECONDS);
}
catch (final ExecutionException na) { throw new AssertionError(); }
}
}
from calimero-core.
Thank you @bmalinowsky, I will check if I can make use of this.
from calimero-core.
Related Issues (20)
- [Feature Request] Add support for security proxy
- Datapoint type discovery HOT 1
- DPT8 missing in README.md HOT 1
- Mangamementclient no basic restart anymore with v2.5? HOT 3
- [Feature Request] "protected" for some fields and methods of ManagementClientImpl HOT 6
- Warnings from Calimero HOT 13
- Receiving a GroupValueResponse with DPT 1.001 fails due to missing data in the asdu HOT 2
- DPT 251.600 format should be consistent across platforms and locales HOT 3
- readBool maxASDULen should be ‘1’ ?,now is ‘0’ HOT 1
- Android project runtime FATAL EXCEPTION. HOT 5
- GO Diagnostics: Improve selection of surrogate HOT 10
- DPT 10.001 is wrongly parsed when "no day" is present HOT 2
- Throws Exception when EventListener catch one HOT 2
- Implement Transport Layer Connection-Oriented State Machine Style 3 HOT 2
- Throws `KNXTimeoutException` due to missing confirmation although the confirmation was received HOT 2
- Calimero GUI and KNX Virtual HOT 2
- Data Secure - Read Group Request management HOT 2
- Not able to connect to KNX USB RF module HOT 1
- Can not connect to serial port in tpuart monitor on Android 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 calimero-core.