Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Image transfer identification

Image transfer identification

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 bartoszszczepanik, 8 April, 2020
Forums
Gurux DLMS for Java

Hello

In example client code for performing firmware update i can see line:
readDataBlock(Client, Media, target.imageTransferInitiate(Client, Identification, data.length), reply);
and the Identification variable puzzles me. is it hex signature of a file ? propably manufacturer specific, are there any general guidlines how to find it ?

Profile picture for user Kurumi

Kurumi

2 years 11 months ago

Hi,

Hi,

It depends on the meter. It's a string that identifies the image file. For some meters it can be anything, and for some meters the structure must be valid.

BR,
Mikko

lrd2

2 months ago

In reply to Hi, by Kurumi

Hello, I've problem with…

Hello,

I've problem with step 2 of firmware update process from code below, I'm passing imageIdentifier as recommended by the meter manufacturer
and following errors are thrown
'gurux.dlms.GXDLMSException, message: Access Error : Other Reason.. '
when passed identifier without file extension and
'gurux.dlms.GXDLMSException, message: Access Error : Invalid error code 34'
when with file extension

Can you explain what these errors can mean?
Do you know if there is any way to create this identifier that will work for most meters ?

GXReplyData reply = new GXReplyData();
GXDLMSImageTransfer target = new GXDLMSImageTransfer("0.0.44.0.0.255");
//Check that image transfer ia enabled.
meterReader.readDataBlock(meterClient.read(target, 5), reply);
meterClient.updateValue(target, 5, reply.getValue());
if (!target.getImageTransferEnabled()) {
throw new Exception("Image transfer is not enabled");
}

//Step 1: Read image block size.
meterReader.readDataBlock(meterClient.read(target, 2), reply);
meterClient.updateValue(target, 2, reply.getValue());

// Step 2: Initiate the Image transfer process.
meterReader.readDataBlock(target.imageTransferInitiate(meterClient, imageIdentifier.getBytes(), data.length), reply);

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 03/24/2023 - 14:22
gurux.dlms.c 20230324.1
Thu, 03/23/2023 - 11:01
GXDLMSDirector 9.0.2303.2301
Thu, 03/23/2023 - 09:10
Gurux.DLMS.Python 1.0.142
Wed, 03/22/2023 - 13:51
Gurux.DLMS.Net 9.0.2303.2201
Wed, 03/22/2023 - 10:15
gurux.dlms.c 20230322.1

Open bugs

Gurux.DLMS.AMI4
1
Gurux.DLMS.Android
1
gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin