Code Monkey home page Code Monkey logo

esp-smartmeter-netznoe's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esp-smartmeter-netznoe's Issues

Testdaten

Hallo,

Ich habe Deinen Code etwas vereinfacht (Display und Wifi entfernt) und mit der Arduino IDE erfolgreich kompiliert. Ich möchte diesen Code als Beispielcode für die Einbindung von Stromzählern für einen eigenen MBUS Slave Feather Wing verwenden.

Leider komme ich aus Deutschland und bei uns sind die Stromzähler mit RS485 ausgestattet. Deshalb meine Frage. Gibt es irgndwo Testdaten (mit dem dazugehörigen Key) mit denen man die Software testen kann? Oder gar einen Simulator für den Zähler?

LG

Hartmut

20230815_115252

VKW - Invalide Daten

Bekomme leider nur invalide Daten.
Mir scheint die Länge ist zu kurz, kann das sein?
Was kann ich machen um dem Problem auf die Schliche zu kommen?
Kann ich diese Datenwurst irgendwie händisch oder mit einem Tool entschlüsseln?
Den Entschlüsselungskey habe ich heute bekommen.
Bin wirklich um jede Hilfe dankbar!
Habe einen VKW MA309MH4 Smartmeter.

Laut Code müsste es hier fehlschlagen:

if (plaintext[0] != 0x0F || plaintext[5] != 0x0C)
{
     Serial.println("Packet was decrypted but data is invalid!");
     receive_buffer_index = 0;
     return;
}

14:26:17.366 -> 68FAFA6853FF000167DB084B464D1020043BD78201552100004483B42D5539F7DC88C9573AFB79C56C3C7A9D86BC3E5845A99FAE35C4CC93EB3247939D73D7EF31DF33BC169026B14B0B0F83225B18E5FC455CDCBB165AB649532E33869A74159289480BFF892769D8BF6C1279CF35CA04839A4A6387374B7610F5AFD57065D0CCF9FEAF2D61AF52AD08F314E20559283E102CB78043275B83A3439B6274F85FD3733768125DADF33D45B27AE6C98E521FE65B5CAFB8BF1BDBF6A478DEB7AC7D5D944C8382E10164FB0BD8B6AB86D9E1A9D22A7EDC3C2FBB8F625E654F322A932FA8CDA73DD0E0B687203A8799A8EC827DF50B685439452B8BDDF019D8202316 Packet was decrypted but data is invalid!
14:26:25.287 -> 68FAFA6853FF000167DB084B464D1020043BD78201552100004484BBF8DFACEF4578719FE6319FEC5F7DED2211FF8136E109033C4E83109DD974A4BABF3F47F66647C46FAC4E721C05DAEA46E714B6E1581FD9994857DE98B694D422C5CADC99D459483D72CF752BAD155D5C6F1C489ADD1F57FDC61901FA70A161DC0C2E8055796631B6C64586B264041078BF856EA3ABE9FCE6F80F29B77DFB4A9FB29A76BF8EDB0CA334D78EF3FBB7FFEE5BC118D3CA04316733DF41CB4561F91B6FAA5BDFD8CBC007A54FFFB918278F8FA122334607D080D012CB898A66806C6DF8C7D47DEEAB9A0CE51C5FAE168042EAB628D90ECD4B0133C0F57384A2C37A2333832B16 Packet was decrypted but data is invalid!
14:26:31.320 -> 68FAFA6853FF000167DB084B464D1020043BD78201552100004486AAC97CCE1C3291DEB08ECAA2AE8E71E87387F96A31C5CB231070E0BBF20FACD1C6BDC727ACF2DF0BCF66CFFB6DD407C22C51706864705CD409C6157024D1639BCFA78257F7BA34AB1DC9C5970A1608D4DAB7953AE8DD1516E2B1993C5D16047071AC6B8DC66FEF4E5DE1AB09EB04263FCAC700BA70BBF206153AC677B8841918B8302F26EC4F559B2F31A133D3E763196E68204F0AB6025A76DA8F1EFFF8DB2AB97B59F0A2415F9CBD34C9F56A464334B249AA710FC9857DD0AC564CC1415CFC7327FB8BB65F88278AB54AF6DFD5C84FCDDB8D8AA393444B6F9D88026C6C05A2FABCB6A116 Packet was decrypted but data is invalid!

Code auf Arduino verwenden

Hallo,

versuche den Code auf einem Arduino zu verwenden kannst du mir dabei helfen ich hänge beim entschlüsseln.....

Mfg

Sagemcom T210-D how to fix Power-Factor (cosphi) not working

Hallo,
Der Code funktioniert auch beim Sagemcom T210-D, nur der Power-Factor geht nicht.
Fehlerbehebung:
Der "obis_data_type" vom Power-Factor ist nicht 0x12 sondern 0x10
Ich habe in main.cpp "case DATA_LONG_UNSIGNED2:" hinzugefügt
und im obis.h "#define DATA_LONG_UNSIGNED2 0x10".
Siehe Screenshots:
main-cpp
obis-h

Setup EVN Key

Hi,

maybe i overread it. but how i setup the EVN Key?
The EVN sends me a Key with a length of 32.

the unsigned char KEY[] in the config.h has a length of 16...

How to Convert the EVN key?

I'm confused...

thanks for help!

greets

time conversion does not take daylight saving time into account

The Problem:
We receive the correct timestamp from the Smartmeter, which already considers time zones, but the function mktime() always assumes a UTC time. That is why we have to substract 1 or 2 hours depending on summer/winter time.

Possible Solutions:

  • get timezone from NTP client so it takes daylight saving time automatically into account
  • omit the timestamp completely and use -1 as timestamp parameter, see graphite docs

    timestamp is the number of seconds since unix epoch time. Carbon-cache will use the time of arrival if the timestamp is set to -1.

When using the last approach, consider that each metric will have a slight delay and not the same timestamp.

https://github.com/mitsubishievo99/esp-smartmeter-netznoe/blob/6b2d2c7ca1f2359c54c7edd122f97d3adf947f2f/src/main.cpp#L146

Anpassung an TiNetz

Hallo,
Ich würde deinen Code gerne für meinen TiNetz-Anschluß verwenden.
Ich hab jetzt deinen Code mal für mich angepasst und um MQTT erweitert. Es wird der selbe Kaifa-SM verwendet aber dadurch das sich die Provider-Kennung unterscheidet komme ich da irgendwie nicht weiter.
Ich komme immer bei "Serial.println("Packet was decrypted but data is invalid!");" raus.
Ich hab hier ein Python-Script am laufen bei dem man den Provider einstellen muß.
So schaut da im Script der Code aus:
class Supplier:
name = None
frame1_start_bytes_hex = '68fafa68'
frame1_start_bytes = b'\x68\xfa\xfa\x68' # 68 FA FA 68
frame2_end_bytes = b'\x16'
ic_start_byte = None
enc_data_start_byte = None

class SupplierTINETZ(Supplier):
name = "TINETZ"
frame2_start_bytes_hex = '68727268'
frame2_start_bytes = b'\x68\x72\x72\x68' # 68 72 72 68
ic_start_byte = 23
enc_data_start_byte = 27

class SupplierEVN(Supplier):
name = "EVN"
frame2_start_bytes_hex = '68141468'
frame2_start_bytes = b'\x68\x14\x14\x68' # 68 14 14 68
ic_start_byte = 22
enc_data_start_byte = 26

Kannst du mir sagen wo ich das anpassen kann bei deinem Code?
Grüsse und Danke schonmal!!

MQTT statt Graphite zum senden der Daten?

Hallo Florian,
seit geraumer Zeit versuche ich die Daten in eine Influxdb2 Datenbank zu bekommen - leider erfolglos.
ich versuchte den Code so abzuändern, dass die Daten per MQTT gesendet werden - leider auch erfolglos.
Hast du einen Ansatz wie ich die "Graphite"-Daten in influxdb2 auslesen kann?
In Telegraf habe ich ein Inputplugin configuriert - dieses leider auch nicht funktioniert.
Wäre es keine gute idee die Daten optional in MQTT zu senden?
LG
Soundrico

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.