# Error while performing OTA update

**URL:** https://forums.digi.com/t/error-while-performing-ota-update/22983
**Category:** XBee - DigiMesh
**Tags:** python, firmware-update, ota, digimesh, update
**Created:** [March 4, 2022, 10:14am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983 "2022-03-04T10:14:55Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [March 4, 2022, 10:14am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/1 "2022-03-04T10:14:55Z")

</div>

I want to perform OTA update micropython program to my digimesh devices. I generate public and private keys and put public keys to remote devices and i created on one of them fs.ota file (i used generated private key). In process i got error "Could not send ‘Image Notify’ packet \> transmit status was not received’ do not know what to do next with it.

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [March 4, 2022, 10:16am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/2 "2022-03-04T10:16:20Z")

</div>

Are you using API mode or transparent mode?

---

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [March 14, 2022, 8:56am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/3 "2022-03-14T08:56:30Z")

</div>

I am using API on the central node and transparent on the routers which i want to update. I cannot change it to API because it will disable Micropython i tested this on the central node and on the routers they go to transparent mode as soon as i activate micropython.

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [March 14, 2022, 9:59am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/4 "2022-03-14T09:59:57Z")

</div>

If you want to update a remote module via a Module that is already running Micro Python, then you need to disable the Micro Python app first. Then use standard API mode (API mode 1 and 2). Once the update is done, you can re-enable your Micro Python app.

---

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [March 15, 2022, 8:23am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/5 "2022-03-15T08:23:25Z")

</div>

So, how i can do that. This is my scenario:

- I have 50 elements of digimesh and all of them run the same micropython program and i want to update them all. Do I need to connect them individually to disable micropython or i can do this in smart way. Is there any AT command or anyhing that i can use?

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [March 15, 2022, 8:27am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/6 "2022-03-15T08:27:49Z")

</div>

If you are going to do it over the air, then you are going to have to do it one module at a time. What I would suggest is you use the over the air commands to disable Micro Python. Format the file system and then upload your Micro Python app. Finally enable the auto start.

---

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [March 15, 2022, 9:19am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/7 "2022-03-15T09:19:07Z")

</div>

What is the command to disable micropython? Can you please do it step by step (i already generated keys and made ota file)

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [March 15, 2022, 9:25am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/8 "2022-03-15T09:25:45Z")

</div>

These would be all API frames using remote AT Commands. I would suggest you use the API Frames Generator in XCTU to help you assemble your packets.

The commands would be AP0  
ATFS\_format\_confirm  
Send the image  
AP4

---

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [March 17, 2022, 8:19am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/9 "2022-03-17T08:19:03Z")

</div>

Ok, I still do not understand.  
I created remote AT command request with AT command field AP and leave parameter value empty. And this return success. And now how do I write in AT command ATFS\_format\_confirm?

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [March 17, 2022, 12:55pm UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/10 "2022-03-17T12:55:16Z")

</div>

7E 00 1D 17 01 00 00 00 00 00 00 00 00 FF FE 02 46 53 46 6F 72 6D 61 74 5F 63 6F 6E 66 69 72 6D 99

---

<div class="post-metadata">

### Author: ![Ceranthor](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Ceranthor](https://forums.digi.com/u/Ceranthor)
#### Post date: [April 6, 2022, 8:50am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/11 "2022-04-06T08:50:52Z")

</div>

7E 00 1D 17 01 00 13 A2 00 41 E0 E0 95 FF FE 02 46 53 46 6F 72 6D 61 74 5F 63 6F 6E 66 69 72 6D 4E  
And i got response 02 (Invalid command)

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [April 7, 2022, 9:06am UTC](https://forums.digi.com/t/error-while-performing-ota-update/22983/12 "2022-04-07T09:06:22Z")

</div>

Looks like you will need to issue the format locally instead of from a remote AT command.
