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 8 months ago

Hi,

Hi,

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

BR,
Mikko

AndreasAtPowel

6 years 8 months ago

C#

C#

Profile picture for user Kurumi

Kurumi

6 years 8 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 8 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 8 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 8 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

  • 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