A Dutch P1-port telegram parser for the verion 2A

Hi Guys,

I am willing to put in some time en energy ;-) to investigate if it is possible to create something(soft or hard) that makes it possible to use the version 2A to read out a P1 smart meter port.

What would be a good plan for this?

Does anyone have a suggestion how this can be done?

tx for any feedback


gebhardm's picture

There are two things to handle:
1) The 2A has on port 6 a RS-485 input capability; it is quite easy to transform a RS-232 signal (especially with fixed baudrate) to RS-485 (see https://github.com/gebhardm/energyhacks/tree/master/RS232-RS485-Converter - here I used some little protocol shifter to interface RS485 of an SMA inverter to a PC's serial port).
2) The second part is then digging into the software part on how actually to interpret the P1 protocol; the 2B here has an advantage that this is done within the dragoino part only - in the 2A there seems some intermediate software also in the AVR needed (baud rate of RS485 is fixed higher than needed for P1) that maps then to the dragoino code that may be directly taken from the 2B-version - issue is of course that configuration is different, thus the interfacing to the web frontend...
This seems quite some effort, but not impossible - and you want to do a hobby hack, don't you?
Just quick thoughts, regards

hugo's picture

ok so now I am thinking it would be an option to get a RaspberryPi (http://www.raspberrypi.org/) for 35 USD and interface the P1 port to the Pi and then from the Pi to the flukso? Seems a bit heavy but the pi has a lot of options. See this link how to read the P1 port from a RaspberryPi... Looks like the P1 is just a serial port. Why do I need a converter? Can I not read the signal directly from my flukso port 6?



gebhardm's picture

@HUGO: RS232 from P1 (9600 7E1 fixed) not equal to RS485 of FLM (115200 baud fixed); even though the transported data protocol may be identical, the physical connection is not... (but it's rather simple to convert the physical layer - therefore the converter; with a RasPi you still need to solve that; btw: with a RasPi you can easily program all the needed directly in Python and make your own web server; no FLM needed at all)
See FLM schematics on how to get data physically into port 6 - then you can think about the software layer; as I wrote, being in port 6 you are in the AVR section, then your still need to get into the web server/protocol section...

icarus75's picture

One of the main features of the FLM02B is hard- and software support for Dutch P1 port read-out. Adapting the A-version to make it P1-compatible is not impossible, but it will be a hassle to do so.