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. Fail To Upload Firmware Image

Fail to upload firmware image

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 AndreasAtPowel , 23 September, 2019
Forums
Gurux.DLMS

We're trying to upload a firmware image to Star meters using low level security, which should be supported according to Star. Even using High level security we get same error.
We're following your example on how to upload an image.

Below is the sequense:
- Check that image transfer is enabled.
Write 21 bytes, 000100010005000DC00141001200002C0000FF0500
Received 14 bytes, 0001000500010006C40141000301

- Read image block size.
Write 21 bytes, 000100010005000DC00141001200002C0000FF0200
Received 17 bytes, 0001000500010009C401410006000000C8

- Initiate the Image transfer process.
Write 35 bytes, 000100010005001BC30141001200002C0000FF01010202090556303230310600024A86
Received 13 bytes, 0001000500010005C701410000

- Transfers ImageBlocks.
Write 136 bytes, 0001000100050080C30141001200002C0000FF020100000000016D020206000000000981C8AE91000000005A660CD2023E8AFA732F0FCAE7CD1ACDB9A9C2E46F5CCF905746725A0DCD543FB26C4B36F00F90A97C0C4467A781CECE6369099A99640624E071711EED89B9F39F3FF8205639EDE0A10F257C46817D5A4FF4A42F777B4F72CE6446332E
Received 13 bytes, 0001000500010005C70141FA00

Write 10 bytes, 00010001000500026200
Received 31 bytes, 00010005000100176315800100BE10040E0800065F1F0400001A1D00800007

When translating the failing 136 bytes block I get this from your translator, no method parameters:
<ActionRequest>
<ActionRequestNormal>
<!--Priority: NORMAL ServiceClass: CONFIRMED invokeID: 1-->
<InvokeIdAndPriority Value="65" />
<MethodDescriptor>
<!--IMAGE_TRANSFER-->
<ClassId Value="18" />
<!--0.0.44.0.0.255-->
<InstanceId Value="00002C0000FF" />
<MethodId Value="2" />
</MethodDescriptor>
<MethodInvocationParameters>
<None />
</MethodInvocationParameters>
</ActionRequestNormal>
</ActionRequest>

Any sugestions on what wer're doing wrong?

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

Hi,

Hi,

Are you doing this with Java or C#? We'll check this.

BR,
Mikko

AndreasAtPowel

6 years 10 months ago

C#

C#

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

Hi,

Hi,

Are you using ImageTransferInitiate and ImageBlockTransfer -methods of GXDLMSImageTransfer to send the image or are you generating Transfers ImageBlocks by your self?

BR,

Mikko

AndreasAtPowel

6 years 10 months ago

Yes,we're following your

Yes,we're following your example code, from our code:

var target = new GXDLMSImageTransfer(firmwareImageTransferLogicalName);
var readData = _guruxPacketHandler.GxDlmsClient.Read(target, TRANSFER_ENABLED_ATTRIBUTE);
var reply = _guruxPacketHandler.SendAndReceive(readData);
_guruxPacketHandler.GxDlmsClient.UpdateValue(target, TRANSFER_ENABLED_ATTRIBUTE, reply.Value);

readData = _guruxPacketHandler.GxDlmsClient.Read(target, BLOCK_SIZE_ATTRIBUTE);
reply = _guruxPacketHandler.SendAndReceive(readData);
_guruxPacketHandler.GxDlmsClient.UpdateValue(target, BLOCK_SIZE_ATTRIBUTE, reply.Value);

readData = target.ImageTransferInitiate(_guruxPacketHandler.GxDlmsClient, imageIdentifier, imageData.Length);
reply = _guruxPacketHandler.SendAndReceive(readData);

readData = target.ImageBlockTransfer(_guruxPacketHandler.GxDlmsClient, imageData, out var imageBlockCount);
reply = _guruxPacketHandler.SendAndReceive(readData);

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

Hi,

Hi,

Image block size if 200. When you write the first image block it's size is much smaller.
Can you send AARQ/AARE messages to me by email?

Send also Gurux.DLMS.dll version number.

BR,
Mikko

AndreasAtPowel

6 years 10 months ago

email sent to gurux@gurux.org

email sent to [Email removed by admin].

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • ArthurDaype
  • hirenec11mic
  • Yeyen
  • Virtual
  • joesa4
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin