Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Reading Iskraemeco MT372 Using RS-485 To Ethernet Converter

Reading Iskraemeco MT372 using RS-485 to Ethernet converter

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By romjer , 2 September, 2021
Forums
Gurux.DLMS

Good day,

we have Iskraemeco MT372 meters connected to Moxa NPort 5130 rs-485 to ethernet converters. Serial port of the converters operates in "real com" mode, it means that we can mount remote serial port on the linux/windows workstation and read meters using Gurux.DLMS.Client.Example.python.

python main.py -S /dev/ttyr02 -c 100 -s 161 -a Low -P 12345678 -t Verbose
gurux_dlms version: 1.0.85
gurux_net version: 1.0.17
gurux_serial version: 1.0.14
Authentication: Authentication.LOW
ClientAddress: 0x64
ServerAddress: 0xa1
Standard: Standard.DLMS

Such setup works fine but looks unreliable because in the case of a large number of converters we have to mount a lot of serial ports and keep track of which ports correspond to which meters.
So we tried to change Moxa operation mode to "TCP Server mode" and read meters using tcp/ip mode. Mikko mentioned that such setup should work http://gurux.fi/comment/17821#comment-17821. We tried to use different command options but unfortunately we cannot get it to work.

python main.py -h 192.168.1.221 -p 4001 -iWRAPPER -c 100 -s 161 -a Low -P 12345678 -t Verbose
gurux_dlms version: 1.0.85
gurux_net version: 1.0.17
gurux_serial version: 1.0.14
Authentication: Authentication.LOW
ClientAddress: 0x64
ServerAddress: 0xa1
Standard: Standard.DLMS
TX: 21:28:02 7E A0 08 02 43 C9 93 A9 46 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 21:28:17
DisconnectRequest
Traceback (most recent call last):
File "main.py", line 104, in main
reader.readAll(settings.outputFile)
File "/root/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 504, in readAll
self.initializeConnection()
File "/root/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 308, in initializeConnection
self.readDLMSPacket(data, reply)
File "/root/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 119, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "/root/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 170, in readDLMSPacket2
raise e
File "/root/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 162, in readDLMSPacket2
raise TimeoutException("Failed to receive reply from the device in given time.")
gurux_common.TimeoutException.TimeoutException: Failed to receive reply from the device in given time.

Can someone help us understand what we are doing wrong ?

Profile picture for user Kurumi

Kurumi

4 years 9 months ago

Hi,

Hi,

WRAPPER is used when a plain TCP/IP connection is used for the meter. Remove that. You should be able to connect with the same settings as before. Check that your serial port settings are the same.

BR,
Mikko

romjer

4 years 9 months ago

Good day Mikko,

Good day Mikko,
Without WRAPPER all works just fine.
Thank you for prompt reply.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin