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. Dlms Tcp Ip

dlms tcp ip

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 benyamin.chesh… , 19 January, 2022
Forums
Gurux.DLMS

Hi sir
I started the client C library with stm32 and read meter with serial. Now I want to connect to AMI with gprs module. What should I do send and recieve data ami gurux? And how do I implement TCP?

benyamin.chesh…

4 years 4 months ago

The meters are connected to

The meters are connected to the serial port and must be read serially. According to what you said in the comments, I have to use an autoconnect(), but I have no idea how???????

Profile picture for user Kurumi

Kurumi

4 years 4 months ago

Hi,

Hi,

You can collect data from the meter and send it as a push message for the Gurux AMI.
You can use Arduino TCP/IP module to send the data using TCP/IP.

BR,
Mikko

benyamin.chesh…

4 years 4 months ago

In reply to Hi, by Kurumi

In fact, I want to read and

In fact, I want to read and send data every time I receive a request from the server
And do this with the autoconnetc()
?

Profile picture for user Kurumi

Kurumi

4 years 4 months ago

Hi,

Hi,

If you are using autoconnect your stm32 will establish the connection to the AMI at the given time. If you are using a dynamic IP address the server can't establish the connection for the meter. Autoconnect is used for dynamic connections.

BR,
Mikko

benyamin.chesh…

4 years 4 months ago

im use ip static,Can I define

im use ip static,Can I define it in Ardino client or do I have to integrate usury client and server?

Profile picture for user Kurumi

Kurumi

4 years 4 months ago

Hi,

Hi,

If I have understood this correctly there are two options.

1. Your stm32 works as a router and it sends data from AMI to meter and vice versa. It doesn't modify the data. This is easier to implement.

2. You add a server for the stm32. Your AMI can communicate with it. This is harder to implement, but AMI can communicate with WRAPPER for stm32, and stm32 communicates with HDLC with the meters.
You can also use different PDU sizes between the AMI and meter connection.

BR,
Mikko

benyamin.chesh…

4 years 4 months ago

meter ---- serial(HDLC )----

meter ---- serial(HDLC )---->arduino----tcp ip(WRAPPER) --->AMI
I want every time data comes from the server (tcp ip wrapper), Arduino recievedit and reads the command from the meter with the serial(HDCL) and sends the answer under WRAPPER to ami.

Profile picture for user Kurumi

Kurumi

4 years 4 months ago

Hi,

Hi,

You need to create a server and client for the stm32. Then server preRead you will ask this value from the meter and return the meter's reply to the AMI.

BR,
Mikko

  • 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