Hello.
I am trying to connect using GXDLMSDirector or Gurux DLMS For Python to the ISKRA MT880 powermeter, but still unsuccessful. What server address do I use last double digit SN + 16.
python3 main.py -S /dev/ttyUSB0:9600:8None1 -c 1 -s 41 -l 1 -t Verbose
gurux_dlms version: 1.0.149
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x1
ServerAddress: 0xaf
Standard: Standard.DLMS
TX: 19:02:59 03 00 0A 7E A0 08 02 5F 03 93 45 51 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 19:03:14
DisconnectRequest
Please can you advise me where the error could be?
Best regards
Palo
Hi Palo, Try with this. If…
Hi Palo,
Try with this. If it fails, it might be that the baud rate is something else.
python3 main.py -S /dev/ttyUSB0:9600:8None1 -c 1 -s 145 -t Verbose
BR,
Mikko
Hi Mikko. I connected two…
Hi Mikko.
I connected two RS485 converters to the electricity meter on one line, and the values from the first converter are displayed on the RX. Below is the command sent and the response that will be returned. Thank you very much for contacting me.
python3 main.py -S /dev/ttyUSB0:9600:8None1 -c 1 -s 145 -t Verbose
gurux_dlms version: 1.0.149
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x1
ServerAddress: 0x91
Standard: Standard.DLMS
TX: 12:19:47 7E A0 08 02 23 03 93 3E 74 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 12:20:17 A0 79 FB B9 F9 36 B0 34 00 A0 79 FB B9 F9 36 B0 34 00 A0 79 FB B9 F9 36 B0 34 00
DisconnectRequest
python3 main.py -S /dev/ttyUSB2:9600:8None1 -c 1 -s 145 -t Verbose
gurux_dlms version: 1.0.149
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x1
ServerAddress: 0x91
Standard: Standard.DLMS
TX: 12:21:17 7E A0 08 02 23 03 93 3E 74 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 12:21:32
DisconnectRequest
Hi, My bad. For some reason,…
Hi,
My bad. For some reason, I ignored that you are using RS-485.
Start GXDLMSDirector and select "New Manufacturer Settings Available" from the top menu. Then create a new device and Select Address Type to serial number. Update the serial number.
After you can connect with GXDLMSDirector you can see the current command line arguments for the meter.
BR,
Mikko
Hi. I added New device with…
Hi.
I added New device with Address Type serial number. But after saving and trying to connect, the connection did not happen. I have tried various setting changes with no success.
Hi, Please, don't add…
Hi,
Please, don't add pictures. They don't say anything. Add hex trace if there are problems. It will tell more.
Make sure that your interface type is HDLC. Make also sure that your baud rate is 9600 8None1. Sometimes is set to 19200.
BR,
Mikko
Hi. OK. I will not send the…
Hi.
OK. I will not send the picture again. I feel that I have tried all possible communication speeds. Also server and client numbers with no response. Including Consereth. The owner of the electricity meter states: Communication through these interfaces is based on IEC62056-46 (HDLC) and allows the customer to read all profiles and measured data at any time. The customer has authorizations provided by security level "Authentication key 1". Communication speed is 9600 Bd, 8 data bits, no parity, 1 stop bit. The HDLC physical address for communication is 16 larger than the last digit of the serial number. That's 31+16=47. Access password "12345678".
It is strange that the gurux library writes TX: 15:36:22 03 00 09 7E A0 07 5F 03 93 CC 37 7E, but when I scan the given port using another device and the serial library, it does not show me any data that should be using the gurux library on port sent.
The Gurux library sends data…
The Gurux library sends data to the port. The serial library will not print them until I send data from the serial library to the port. Subsequently, the serial library will list the data sent from both gurux and serial. The listing looks like this: b'?\x03\x00\t~\xa0\x07_\x03\x93\xcc7~\x03\x00\t~\xa0\x07_\x03\x93\xcc7~\x03\x00\t~ \xa0\x07_\x03\x93\xcc7~/?!hello\r\n'
Hi, It seems that you are…
Hi,
It seems that you are adding Consereth bytes before HDLC frame. Gurux libraries don't add this because this is Iskraemeco propriority protocol. Your server address is also broadcast.
03 00 09 7E A0 07 5F 03 93 CC 37 7E
Check your settings. I believe it will help.
BR,
Mikko
Hi. Consereth added based on…
Hi. Consereth added based on information from this forum. Without Consereth, the request looks like this:
7E A0 07 5F 03 93 CC 37 7E
Thanks
BR
Palo
Hi Palo, HDLC is used with…
Hi Palo,
HDLC is used with RS-485. Consereth protocol runs over TCP/IP protocol and enables transparent sending of any sort of messages through TCP/IP networks.
I believe that your HDLC frame should look like this:
7E A0 08 02 23 C9 93 E4 43 7E
Logical address:1
Physical address:0x11
BR,
Mikko
Hi Mikko. The meter is…
Hi Mikko.
The meter is already responding. The error was in the connection under the seal, which I could not get to today.
The answer goes like this:
TX: 16:58:49 7E A0 08 02 5F 03 93 45 51 7E
RX: 16:58:49 7E A0 1F 03 02 5F 73 A7 28 81 80 12 05 01 9A 06 01 9A 07 04 00 00 00 01 08 04 00 00 00 01 CC A2 7E
TX: 16:58:49 7E A0 45 02 5F 03 10 80 5A E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 31 32 33 34 35 36 37 38 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF A9 FD 7E
RX: 16:58:49 7E A0 38 03 02 5F 30 75 08 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1E 1D 05 00 00 07 5B BA 7E
TX: 16:58:49 7E A0 1A 02 5F 03 32 0E 47 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 16:58:49 7E A8 A4 03 02 5F 52 1C 20 E6 E7 00 C4 02 C1 00 00 00 00 01 00 82 04 F4 01 82 05 E8 02 04 12 00 08 11 00 09 06 00 00 01 00 00 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 03 00 02 03 0F 03 16 03 00 02 03 0F 04 16 01 00 02 03 0F 05 16 03 00 02 03 0F 06 16 03 00 02 03 0F 07 16 03 00 02 03 0F 08 16 03 00 02 03 0F 09 16 01 00 01 06 02 02 0F 01 16 01 02 02 0F 02 16 01 02 02 0F 03 16 01 02 02 0F 04 16 01 02 02 0F 05 16 01 02 02 0F 06 16 01 02 04 12 00 1B 11 01 09 06 00 00 02 00 00 FF 4F 1E 7E
TX: 16:58:49 7E A0 08 02 5F 03 51 5B B4 7E
RX: 16:58:50 7E A8 A4 03 02 5F 54 2A 45 02 02 01 04 02 03 0F 01 16 01 00 02 03 0F 02 16 03 00 02 03 0F 03 16 03 00 02 03 0F 04 16 03 00 01 00 02 04 12 00 1D 11 02 09 06 00 00 02 01 00 FF 02 02 01 06 02 03 0F 01 16 01 00 02 03 0F 02 16 03 00 02 03 0F 03 16 03 00 02 03 0F 04 16 03 00 02 03 0F 05 16 03 00 02 03 0F 06 16 03 00 01 01 02 02 0F 01 16 01 02 04 12 00 1C 11 02 09 06 00 00 02 02 00 FF 02 02 01 07 02 03 0F 01 16 01 00 02 03 0F 02 16 03 00 02 03 0F 03 16 03 00 02 03 0F 04 16 03 00 02 03 0F 05 11 0D 7E
The meter is already responding. The error was in the connection under the seal, which I could not get to today.
The answer goes like this:
Can you please guide me how to get a response only from, for example, the OBIS code 1-0:1.8.0.255 or 1-0:2.8.0.255
Thank you very much.
BR
Palo
Could there be an error in…
Could there be an error in authorization?
-------- Reading 8 0.0.1.0.0.255 Ch. 0 Clock object #1
TX: 21:18:24 7E A0 1A 02 5F 03 16 28 20 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 01 00 08 30 7E
RX: 21:18:25 7E A0 08 03 02 5F 1F 51 05 7E
Error! Index: 1 Access Error : Unknown error.
Access Error : Unknown error.
BR
Palo
Hi Palo, You need to check…
Hi Palo,
You need to check if the clock object is in the association view. Can you see the clock object in GXDLMSDirector after you have established the connection?
If you can't see it, it might be that you need to use a different authentication level.
BR,
Mikko
Hi Mikko. I was unable to…
Hi Mikko.
I was unable to establish a connection using GXDLMSDirector. The meter responds to the query with the following command: python3 main.py -S /dev/ttyUSB0 -c 1 -s 47 -l 1 -a Low -P 12345678 -t Verbose . Is it possible to verify whether the electricity meter provides any information at the authentication level Low?
Hi, Select Iskramerco as a…
Hi,
Select Iskramerco as a manufacturer. Select the correct serial port and set a password. Or is the problem that you can't use Windows?
It's not usually possible to ask for information from the other authentication levels from the code. That is usually defined on the meter documentation.
BR,
Mikko
Hi Mikko. Reading with…
Hi Mikko.
Reading with GXDLMSDirector ends with an error: Access Error: Device reports Read-Write denied. The meter reads a list of registers, but no values.
In the case of an attempt to use High Authentication, meter is not connected and displays the error: Failed to receive reply from the device in given time.
Thanks.
BR
palo
Hi Mikko. I am already…
Hi Mikko.
I am already reading the values via GXDLMSDirector.
Thank you very much for your help.
BR
Palo