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. How To Specify Logical Server and Physical Server In GxSerial Java

How to specify logical server and physical server in GxSerial Java

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 pramodahanya , 1 October, 2020
Forums
Gurux DLMS for Java

Hello, For our meter to connect via the serial interface (RS485/Optical) we would have to specify the logical server and physical server which is based on the serial number. We could successfully connect to the meter using GXDLMSDirector as there is an option for specifying for these but couldn't manage to connect using GXDLMS java serial interface. I have checked the code and the methods in GXSerial and GXDLMSClient but didn't find anything to mention these. Could you please do let me know how can I pass these parameters while establishing a connection? I have attached the GXDlmsDirector configuration screenshot.

Best Regards
Pramod

Image
Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

You can set server address using pfysical and logical address like this:

client.setServerAddress(GXDLMSClient.getServerAddress(16, 62);

Client example is updated and the command line parameter for client example is:

-s 62 -l 16

BR,

Mikko

BR,
Mikko

pramodahanya

6 years ago

Thank you, Mikko. It wokred

Thank you, Mikko. It wokred

bayasgalan

5 years 12 months ago

how to set logical server

how to set logical server address on c client?

Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi bayasgalan,

Hi bayasgalan,

Please, create a new topic f you have a new question. We are testing cl_getServerAddress for ANSI C at the moment. We are releasing it the latest on Monday.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Eric@li
  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin