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. Using GSM Module For TCP Connection With The Arduino Server Code

using GSM module for TCP connection with the Arduino server code

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 SmartRaysam , 7 February, 2021
Forums
General discussion

hi,
I want to use GSM Module sim808 for TCP connection on the meter using the Arduino server code
I have implemented the Auto-connect and I can equally see gxModemConfiguration and gxGPRSSetup, what is the function of these two objects?
do I still need to initialize the sim808 for the TCP connection using the AT commands or the gurux library has already taken care of it?

also on the physical connection.
Am I to use the Serial0 of the Arduino for the GSM module connection?

Thanks for your help.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

The stack will take care of the DLMS part. Example server doesn't implement AT commands and you need to implement that by yourself.

Serial port depends on what port you have connected the GSM module.

BR,
Mikko

SmartRaysam

5 years 4 months ago

In reply to Hi, by Kurumi

Thanks for your prompt

Thanks for your prompt response.
please do I need to implement these objects
gxAutoConnect
gxModemConfiguration
gxGPRSSetup

in other to use the GSM module for my TCP connection.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

Auto connect defines the target address and when to connect.
Modem configuration defines commands to initialize the modem. It's also good to implement.
GPRS Setup defines used PIN code and APN. It's good to implement to get status information from the GPRS connection.

BR,
Mikko

SmartRaysam

5 years 4 months ago

In reply to Hi, by Kurumi

hi.

hi.
I am connecting multiple meters to a remote client to read the meter data via a TCP connection using the GSM module.
Am I to configure the GSM module as a TCP server or as a TCP client.?
please I need insight on the best practice.

Profile picture for user Kurumi

Kurumi

5 years 4 months ago

Hi,

Hi,

You should read this:
http://gurux.fi/Gurux.DLMS.DynamicIP
Auto Connect connects TC/IP server that must listen to incoming connections and establish the DLMS connection. You don't need auto-connection if your meters are using static IP addresses. Auto-connection is used with dynamic IP addresses.

BR,
Mikko

zhoujunyan

4 years 7 months ago

how to enable auto connect

how to enable auto connect when meter use dynamic ip address?

zhoujunyan

4 years 7 months ago

GuruxDLMSServerExample2's

GuruxDLMSServerExample2's autoconnect doesn't work,GuruxDLMSServerExample2 can't connect to GuruxDLMSPushExample

Profile picture for user Kurumi

Kurumi

4 years 7 months ago

zhoujunyan,

zhoujunyan,

Please, create a new topic if you have a new question. I'll answer your question there.
http://gurux.fi/ForumRules

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