Wenn dies dein erster Besuch hier ist, lies bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Du musst dich vermutlich registrieren, bevor du Beiträge verfassen kannst. Klicke oben auf 'Registrieren', um den Registrierungsprozess zu starten. Du kannst auch jetzt schon Beiträge lesen. Suche dir einfach das Forum aus, das dich am meisten interessiert.
Ankündigung
Einklappen
Keine Ankündigung bisher.
How to convert a 4 byte value into EIS 11 (DPT13 - Energy)
KNX/EIB
How to convert a 4 byte value into EIS 11 (DPT13 - Energy)
We like to use an SIM-KNX module with an Arduino MicroController to develop a device to send Energy information from a dutch energysmartmeter to a KNX installation.
Do anyone know how to convert a 4 byte value into EIS 11 (DPT13 - Energy)?
This is funny. DPT 13.013 is a plain 32 bit signed integer, that is on the bus encoded and transmitted just as it is done in C#. It would not need any conversion at all...
So, if you have energy data in your module and it's encoded as a signed 32 bit integer and the unit is kWh, then it's good as it is.
What is exactly the problem?
Don't let the Busmonitor mislead you ... I have the impression that the HEX-value is correct, but that the Busmonitor thinks that it is a 4 octet float value instead of a 4 octet signed integer. I assume that's why it shows 1,43493E-42 instead of 1024.
Don't let the Busmonitor mislead you ... I have the impression that the HEX-value is correct, but that the Busmonitor thinks that it is a 4 octet float value instead of a 4 octet signed integer. I assume that's why it shows 1,43493E-42 instead of 1024.
Yes its a little bit weird. In the busmonitor i set its an 4 byte signed integer, but it looks like it goes wrong in the c# code.
Maybe it has something todo that i execute the code on a 64bit machine.
When i display the bus values in Domovea (Hager visualization), i have also weird values and not the one i send with my c# code.
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar