Enable Image transfer

2 posts / 0 new
Last post
taher_alfalah
Enable Image transfer

Hi,

I am trying to update the image firmware over the ZIV meter, the first step when we checked if the image transfer is enabled the result was false. now we are trying to enable the image transfer by changing the value to true and getting this message"UndefinedObject"
below are my code and trace values.

Code:

readDataBlock( mClient.read(target, 5), reply);
mClient.updateValue(target, 5, reply.getValue());

readDataBlock( mClient.method(target,5,true,DataType.BOOLEAN), reply);

Trace:
<- 08:03:52.787 7E A0 1A 02 21 0B 32 0D 19 E6 E6 00 C0 01 C1 00 12 00 00 2C 00 00 FF 05 00 73 FC 7E
-> 08:03:52.856 7E A0 13 0B 02 21 52 10 E0 E6 E7 00 C4 01 C1 00 03 00 3A EB 7E
<- 08:03:52.865 7E A0 1C 02 21 0B 54 A5 24 E6 E6 00 C3 01 C1 00 12 00 00 2C 00 00 FF 05 01 03 01 4B 51 7E
-> 08:03:52.936 7E A0 12 0B 02 21 74 60 AF E6 E7 00 C7 01 C1 04 00 9C D3 7E

BR

Kurumi
Kurumi's picture

Hi,

You need to write the value, not call the method. Like this:
readDataBlock( mClient.write(target,5), reply);

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi