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. Command Line Usage

Command line usage

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 TP , 4 March, 2021
Forums
General discussion

Hello,
I would like to know if it's possible to use Gurux director from command line?
Based on what I saw it's not, but I would like to be sure.
Thank you.
Kind regards,
Tijana

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi Tijana,

Hi Tijana,

There is a very limited set of features that you can use from the command line, mostly run unit tests. If you need to do anything more sophisticated you can use the client example as a base for what you want to do.

TP

5 years 3 months ago

Hi Mikko,

Hi Mikko,

Thank you for your fast respond.
My goal is to see if I read parameters from my meter in Jenkins pipeline. For the moment I don't have whole picture and requirements, but idea was to make some CI/CD and perform some test on meter and read data....Where I can find list of commands that can be used from command line?

Best regards,
Tijana

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

The command-line parameters are VERY limited. If you run GXDLMSDirector with -h parameter you can get a list from the command line parameters.
Try with this:
%userprofile%\Desktop\GXDLMSDirector.appref-ms -h

BR,
Mikko

TP

5 years 3 months ago

Hi Mikko,

Hi Mikko,
Thank you.
Now, I have some questions about exceptions. I have tried to read some objects, but even if meter is connected I get exception. Can you check log file and let me know if this is already knows problem?
I was not able to attach logs due to upload limitations. If you need I can send it over to you directly?
Thanks.
BR,
Tijana

Image
Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

Please, don't add pics. Reading bytes from plain text is easier.
Can you add the text again?

BR,
Mikko

TP

5 years 3 months ago

Hi Mikko,

Hi Mikko,

Here is the text from logs:

06:34:56 Initializing serial connection.
6:34:58 AM Send SNRM request.
7E A0 08 02 23 03 93 3E 74 7E
6:34:58 AM
7E A0 21 03 02 23 73 AA C4 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
06:34:58 Parsing UA reply succeeded.
6:34:58 AM Send AARQ request.
7E A0 45 02 23 03 10 FB 7F 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
6:34:58 AM
7E A0 38 03 02 23 30 11 51 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 1A 1D 04 C8 00 07 14 7A 7E
06:34:58 Parsing AARE reply succeeded.
6:35:13 AM Send Keep Alive
7E A0 1A 02 23 03 32 75 62 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 01 00 F9 79 7E
6:35:13 AM
7E A0 19 03 02 23 52 D0 7A E6 E7 00 C4 01 C1 00 09 06 00 00 28 00 00 FF B6 6E 7E
6:35:28 AM Send Keep Alive
7E A0 1A 02 23 03 54 45 64 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 01 00 F9 79 7E
6:35:28 AM
7E A0 19 03 02 23 74 E4 3E E6 E7 00 C4 01 C1 00 09 06 00 00 28 00 00 FF B6 6E 7E
6:35:43 AM Send Keep Alive
7E A0 1A 02 23 03 76 55 66 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 01 00 F9 79 7E
6:35:43 AM
7E A0 19 03 02 23 96 F8 FA E6 E7 00 C4 01 C1 00 09 06 00 00 28 00 00 FF B6 6E 7E
6:35:48 AM Access Request
7E A0 6D 02 23 03 98 0A 4D E6 E6 00 D9 C0 00 00 01 00 08 01 00 08 00 00 01 00 00 FF 02 01 00 08 00 00 01 00 00 FF 03 01 00 08 00 00 01 00 00 FF 04 01 00 08 00 00 01 00 00 FF 05 01 00 08 00 00 01 00 00 FF 06 01 00 08 00 00 01 00 00 FF 07 01 00 08 00 00 01 00 00 FF 08 01 00 08 00 00 01 00 00 FF 09 08 00 00 00 00 00 00 00 00 75 FB 7E
6:35:48 AM
7E A0 10 03 02 23 B8 E0 63 E6 E7 00 D8 01 02 A7 71 7E
Gurux.DLMS.GXDLMSExceptionResponse: Exception response. "Service not allowed"-exception. Service not supported
at Gurux.DLMS.GXDLMS.HandleExceptionResponse(GXReplyData data)
at Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data, GXDLMSClient client)
at Gurux.DLMS.GXDLMS.GetData(GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data, GXReplyData notify, GXDLMSClient client)
at Gurux.DLMS.GXDLMSClient.GetData(GXByteBuffer reply, GXReplyData data, GXReplyData notify)
at GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, Int32 tryCount, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[][] data, String text, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.AccessRequest(DateTime time, List`1 list)
at GXDLMSDirector.MainForm.Read(Object sender, GXAsyncWork work, Object[] parameters)

Kind regards,
Tijana

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

You try to use the Access service and the meter doesn't support it. You can't use the Access service and you need to read all items using the normal read.

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