Read (dutch) smart meter with ser2net - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Read (dutch) smart meter with ser2net (/showthread.php?tid=2623) |
Read (dutch) smart meter with ser2net - mischa - 02.05.2020 I want to read the dutch smart meter, the p1 meter script is perfect for that. but the only thing is the my LM is not near the smart meter. I have a raspberry-pi next to the smartmeter with ser2net installed. how can I change this part of the script to use the ser2net? Code: lastchar = '!' Mischa RE: Read (dutch) smart meter with ser2net - mischa - 03.05.2020 Figured out that it is not gonna work properly with ser2net to the LM When starting a terminal, I get data but there is data missing. When starting terminal at the PI all data is present. So ser2net would be fine for some commands, but i guess not for every second telegrams. Mischa RE: Read (dutch) smart meter with ser2net - admin - 03.05.2020 I see no reason why it should not work. But since you already have pi there it might be easier to write a reader there and send parsed data to LM via http. Or use ser2net via tcp, there are many examples here on how to use tcp client. RE: Read (dutch) smart meter with ser2net - Erwin van der Zwart - 03.05.2020 Hi, You could also use a Plugwise Smile P1 (aprox 90 euro) at the smart meter and read this device from LM over ethernet. See https://openrb.com/read-plugwise-smile-p1-meter-data-with-http-requests/ BR, Erwin RE: Read (dutch) smart meter with ser2net - mischa - 03.05.2020 (03.05.2020, 09:24)Erwin van der Zwart Wrote: Hi, Hi Erwin, Thanks going to take a look at that. BR, Mischa RE: Read (dutch) smart meter with ser2net - KoBra - 13.01.2021 If i want to use the P1 meter script described in the first post. What port should be used? 232? and what is the max cable length? RE: Read (dutch) smart meter with ser2net - Erwin van der Zwart - 13.01.2021 No you can't use RS232 direct as the signal of the P1 port is TTL so you need a TTL converter in any case, i always use (advise) this USB cable where the converter is build-in: https://www.robbshop.nl/slimme-meter-kabel RE: Read (dutch) smart meter with ser2net - KoBra - 13.01.2021 ok thanks, the problem is the smart meter is around 100m from the logic machine, no wifi signal either. I have a spare cat6 connection there. Would it work if i hookup the P1 to the RJ45 cat 6, patch it to the outlet near the LM and than use this converter? RE: Read (dutch) smart meter with ser2net - Erwin van der Zwart - 13.01.2021 No, that will never work over that distance as the P1 is a serial port, the only way to do this in your scenario is by using the Plugwise Smile P1 and conmnect it to the IP network with the spare cat6 cable you have. RE: Read (dutch) smart meter with ser2net - KoBra - 13.01.2021 (13.01.2021, 09:39)Erwin van der Zwart Wrote: No, that will never work over that distance as the P1 is a serial port, the only way to do this in your scenario is by using the Plugwise Smile P1 and conmnect it to the IP network with the spare cat6 cable you have. not a big fan of plugwise because i don't want to connect to their cloud. But Can i get all the data as the script is only fairly limited on the datapoints. RE: Read (dutch) smart meter with ser2net - Erwin van der Zwart - 13.01.2021 This device can be used as a cloud solution but is not needed to config it like that, the device just reads the P1 data and exposes it as a .xml that can be read locally from the device.. The data is not limited by the plugwise, as this is a sample of the full DSMR data set: Code: * string: /ISk5\2ME382-1003 RE: Read (dutch) smart meter with ser2net - KoBra - 13.01.2021 (13.01.2021, 11:25)Erwin van der Zwart Wrote: This device can be used as a cloud solution but is not needed to config it like that, the device just reads the P1 data and exposes it as a .xml that can be read locally from the device.. Tnx, i will take a look at it! RE: Read (dutch) smart meter with ser2net - KoBra - 20.12.2022 (13.01.2021, 13:54)KoBra Wrote:@Erwin,(13.01.2021, 11:25)Erwin van der Zwart Wrote: This device can be used as a cloud solution but is not needed to config it like that, the device just reads the P1 data and exposes it as a .xml that can be read locally from the device.. 2 questions:
|