-
Trying to set up my P1 Smart Meter with OBIS ascii interface. (based on docs here) Two questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 48 replies
-
Have a look on this: issue 10644 |
Beta Was this translation helpful? Give feedback.
-
there is definitely no support for very large strings in scripts. (max string size is 48) |
Beta Was this translation helpful? Give feedback.
-
ok tried a solution. since i do not have such a meter you may try this version. you must define this serial buffer size, it is default to 48 since this is times meters and meter is preset to you would loose 2,5k of RAM or else decrease the MAX_METERS then in the obis decoder try this: 1,0:98.1.0(@(0:1,Havi adat, KWh,havi1,3 e.g. the xpression (1: selects to skip one open bracket if it works ill do a pr EDIT: new version in issues |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Seems that when I try to read more than 10 or 12 values, errorneous values start appearing. I start getting values like 2 for voltage (which sould be around 230V) etc. |
Beta Was this translation helpful? Give feedback.
-
the max. Number of decode lines is set to 20 To start sml Mqtt after e.g. 10 seconds smlj=0 >S |
Beta Was this translation helpful? Give feedback.
-
Probably your total string length is to high? |
Beta Was this translation helpful? Give feedback.
-
Is it important to keep the order of the decoding in the script with the order the OBISes come in the data package? |
Beta Was this translation helpful? Give feedback.
-
ok testest your script. strange things happen and it took some time to find why. but i found a bug in the dump function that is now fixed, so dont rely on dump on the current version according to the serial buffer you need it as small as possible and as large as needed and it is meant per line (terminated with CRLF) and the order of decode lines does not need to follow the order of telegrams |
Beta Was this translation helpful? Give feedback.
-
yes 530 is OK. only 1 String per meter is supported with # decode key this script worked with all the bracket values you need no new tasmota version as long as you dont rely on dump mode sensor53 d1 |
Beta Was this translation helpful? Give feedback.
-
Still not working. Can you please check this for me? What am I doing wrong? I recompiled with buffer set to 530. Result is that the MQTT has missing values: See? It only contains |
Beta Was this translation helpful? Give feedback.
-
meanwhile i found the reason why it is unstable. I testet with 115200 and 9600 and with 115200 a lot of bytes are skipped because the system is not fast enough with 9600 no errors can you configure your meter to 9600 ? i am sure the esp8266 will not be able to handle 115200 with this driver without loosing characters. |
Beta Was this translation helpful? Give feedback.
-
ok i made the serial IRQ buffer size configurable |
Beta Was this translation helpful? Give feedback.
-
What I also did meanwhile was to remove all unneeded drivers from the build. Much like a tasmota-lite config, now the whole thing is small and snappy. I think this is ready to be pushed in to main code. I volunteer to complete documentation and samples at https://tasmota.github.io/docs/Smart-Meter-Interface/ if that's OK with you. |
Beta Was this translation helpful? Give feedback.
-
Another question: do you think it's possible to decode VBus data with this method? Could you have a look at this topic? |
Beta Was this translation helpful? Give feedback.
-
For the documentation, can you please write a few describing words for each of the below, and what's their default value:
|
Beta Was this translation helpful? Give feedback.
-
Just read this. There is a limit with raw Not tested the stuff talked above yet! |
Beta Was this translation helpful? Give feedback.
-
@gemu2015 , Looks like dump mode has problems now (latest git pull from tasmota repo):
Compiled with:
|
Beta Was this translation helpful? Give feedback.
ok i made the serial IRQ buffer size configurable
#define TMSBSIZ 1024
now it seems to work with 115200 if the gaps between the bursts are not too short.
xsns_53_sml.ino.zip