I would like to update the simulated smart meter over serial port.
Has this feature been implemented by now?
If not, which example is the best to get started with for image update from the client side?
For the server side I saw that the Nordic example also uses mcuboot.
Is the update process from mcuboot fully implemented?
Meaning, if I upload that it will automatically swap the images?
(or swap according to the setting I put in the image header)
I have set up the GXDLMSDirector and successfully connected my device to it and read the values.
Is it possible to upload a new image through the GXDLMSDirector?
How would I do that, just like updating any other value by writing the binary to the value field?
On the server side I am using the nordic example for nrf9160.
According to that I assume that the uploaded image must be an mcuboot bootable image, right?
Ok, so which is the best example to get started for image update on the nrf9160 over serial port (server side)?
Is it best to implement it for the nordic example or start with another example?
Ok, thanks for the answer. I'll give it a go.
I have never worked with DLMS before and I am trying to figure out how big of a task this is.
Can you give me an estimation?
Adding the image transfer object and sending the new firmware is not a big task. Saving it to the flash and verifying it before booting is taking a longer time. I can't give any estimation because I don't know your experience.
I am able to generate the imageTransfer object and I can read it in the DLMS director. but I am not able to send/update the firmware. The director does not allow me to do that. It says the Image transfer has not been initiated. (cannot choose the update button and select an image). Is this something I have to change on the server side (access rights etc.) or on the client side?
I did not yet implement the part where it saves the image to the flash, but I think this should be independent of being able to send the image, right?
You need to allow methods (actions) If you read association view and select current association (0.0.40.0.0.255), you can see are Method Access allowed for Image Transfer. See pic below.
Image transfer
Dear Sir,
You can find instructions from here:
http://www.gurux.fi/Gurux.DLMS.Client
Topic is: Image updating. GXDLMSDirector is not support image updating at the moment, but that is on work list.
BR,
Mikko
Hi,
Hi,
I would like to update the simulated smart meter over serial port.
Has this feature been implemented by now?
If not, which example is the best to get started with for image update from the client side?
For the server side I saw that the Nordic example also uses mcuboot.
Is the update process from mcuboot fully implemented?
Meaning, if I upload that it will automatically swap the images?
(or swap according to the setting I put in the image header)
Cheers,
ziml
Hi,
Hi,
From client-side Use GXDLMSDirector. There is UI and it's easy to use.
What example you are using on the server-side?
BR,
Mikko
Hi,
Hi,
I have set up the GXDLMSDirector and successfully connected my device to it and read the values.
Is it possible to upload a new image through the GXDLMSDirector?
How would I do that, just like updating any other value by writing the binary to the value field?
On the server side I am using the nordic example for nrf9160.
According to that I assume that the uploaded image must be an mcuboot bootable image, right?
Cheers,
ziml
Hi,
Hi,
There is an Image transfer object that you can use to update the image bit current example for Nordic Semiconductor doesn't support Image transfer.
BR,
Mikko
Hi,
Hi,
Ok, so which is the best example to get started for image update on the nrf9160 over serial port (server side)?
Is it best to implement it for the nordic example or start with another example?
ziml
Hi,
Hi,
You need to add image transfer object. Then you need to save received data blocks to the flash.
You can check this from the server example.
https://github.com/Gurux/GuruxDLMS.c/blob/e166957e2adabc61c0a8b263ef01c…
BR,
Mikko
Ok, thanks for the answer. I
Ok, thanks for the answer. I'll give it a go.
I have never worked with DLMS before and I am trying to figure out how big of a task this is.
Can you give me an estimation?
Hi,
Hi,
Adding the image transfer object and sending the new firmware is not a big task. Saving it to the flash and verifying it before booting is taking a longer time. I can't give any estimation because I don't know your experience.
BR,
Mikko
Hi,
Hi,
That already helped, thank you.
ziml
Hey Mikko,
Hey Mikko,
I am able to generate the imageTransfer object and I can read it in the DLMS director. but I am not able to send/update the firmware. The director does not allow me to do that. It says the Image transfer has not been initiated. (cannot choose the update button and select an image). Is this something I have to change on the server side (access rights etc.) or on the client side?
I did not yet implement the part where it saves the image to the flash, but I think this should be independent of being able to send the image, right?
Cheers,
ziml
Hi,
Hi,
You need to allow methods (actions) If you read association view and select current association (0.0.40.0.0.255), you can see are Method Access allowed for Image Transfer. See pic below.
BR,
Mikko
Ok. Can I change method
Oh ok, and the method access for image transfer is not allowed if authentication is none or low.
Hi,
Hi,
Yes, that is correct.
BR,
Mikko