You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two packages available, one for the latest CAT-M1 firmware, and another for the latest NB-IoT firmware.
20
+
We are using CATM1-38638.zip and NB1-37781.zip as examples in this tutorial.
21
21
22
22
After unpacking the zip archive, you will find each firmware packages contains two files, one being the firmware file (`CATM1-38638.dup` or `NB1-37781.dup`) and the `updater.elf` file, which is required when using the "recovery" firmware update method or if a previous upgrade failed and the modem is in recovery mode.
23
23
@@ -28,8 +28,8 @@ Please note that the `updater.elf` file is only around 300K so you can also stor
28
28
To transfer the firmware files onto the SD card you have two options:
29
29
30
30
1. Format your SD card as with the FAT file system and then copy the files onto the card using your computer
31
-
2. Make sure your SD card has an MBR and a single primary partition, the format it directly on the module and mount it.
32
-
3. Transfer the firmware files onto the SD card using FTP. Please ensure the transfer is successful and that the file on the module has the same size as the original file.
31
+
32
+
2. Make sure your SD card has an MBR and a single primary partition, the format it directly on the module, mount it and transfer the firmware files onto the SD card using FTP. Please ensure the transfer is successful and that each file on the module has the same size as the original file on your PC.
33
33
34
34
```python
35
35
from machine importSD
@@ -42,14 +42,14 @@ os.listdir('/sd') # list its content
42
42
43
43
Once you copied/uploaded the firmware files on to the SD card you can flash the LTE modem using the following command:
44
44
45
-
To flash the CAT-M1 firmware onto your device:
45
+
To flash the CAT-M1 firmware onto your device using the recovery method:
To flash the NB-IoT firmware onto your device using the recovery method:
53
53
54
54
```python
55
55
import sqnsupgrade
@@ -97,7 +97,7 @@ SYSTEM VERSION
97
97
ZSP1 : 1.0.99-12341
98
98
```
99
99
100
-
Please note that the firmware update may seem to "stall" around 7-10% and again at 99%. This is not an indication of a failure but the fact that the modem has to do some tasks during and the updater will wait for these tasks to be completed. Unless the upgrade process is hanging for more than 5 minutes, **do not interrupt the process** as you will have to start again if you don't finish it.
100
+
Please note that the firmware update may seem to "stall" around 7-10% and again at 99%. This is not an indication of a failure but the fact that the modem has to do some tasks during and the updater will wait for these tasks to be completed. Unless the upgrade process is hanging for more than 5 minutes, **do not interrupt the process** as you will have to start again if you don't finish it. It may also take several minutes for the updater to load before responding to the AT wakeup command.
101
101
102
102
After you have updated your modem once using the recovery method, you can now flash your modem again using just the `CATM1-38638.dup` or `NB1-37781.dup` file without specifying the `updater.elf` file. However, should the upgrade fail, your modem may end up in recovery mode and you will need the `updater.elf` file again. The updater will check for this and prompt you if using the `updater.elf` file is necessary.
103
103
@@ -131,7 +131,7 @@ SYSTEM VERSION
131
131
132
132
### Via UART Serial Interface
133
133
134
-
If you can't use an SD card to hold the firmware images, you can use the existing UART interface you have with the board to load these firmware files from your Computer.
134
+
If you can't use an SD card to hold the firmware images, you can use the existing UART interface you have with the board to load these firmware files from your Computer.
135
135
136
136
You will need the following software installed on your computer:
137
137
@@ -140,14 +140,34 @@ You will need the following software installed on your computer:
140
140
141
141
You will also need to download the following Python scripts: https://github.com/pycom/pycom-libraries/lib/sqnsupgrade
142
142
143
-
First, you need to prepare your modem for upgrade mode by using the following commands:
143
+
**Important**: When upgrading your modem for the first time, even if you have updated it in the past with the old firmware update method, you **MUST** use the "recovery" upgrade method described below. Otherwise you will risk breaking your module
144
+
145
+
You can upload the updater.elf file to the module's flash file system rather than uploading it via uart directly to the modem, which will slightly increase the speed of the upgrade.
146
+
147
+
First, you need to prepare your modem for upgrade mode by using the following commands.
144
148
145
149
#### Commands to run on the Pycom module
146
150
151
+
To use the recovery method:
152
+
147
153
```python
148
154
import sqnsupgrade
149
155
sqnsupgrade.uart(True)
150
156
```
157
+
To use the recovery method using the updater.elf file on the module
158
+
159
+
```python
160
+
import sqnsupgrade
161
+
sqnsupgrade.uart(True,'/flash/updater.elf')
162
+
```
163
+
164
+
To use the normal method:
165
+
166
+
```python
167
+
import sqnsupgrade
168
+
sqnsupgrade.uart()
169
+
```
170
+
151
171
152
172
After this command is executed a message will be displayed asking you to close the port.
153
173
@@ -160,7 +180,9 @@ Going into MIRROR mode... please close this terminal to resume the upgrade via U
160
180
161
181
You must close the terminal/Atom or Visual Studio Code console to run the following commands from your computer:
162
182
163
-
Go to the directory where you saved the `sqnsupgrade` scripts run the following commands in terminal
183
+
Go to the directory where you saved the `sqnsupgrade` scripts and run the following commands in terminal:
184
+
185
+
When using the recovery method:
164
186
165
187
```python
166
188
$ python3
@@ -172,6 +194,20 @@ Type "help", "copyright", "credits" or "license" for more information.
Please note that the firmware update may seem to "stall" around 7-10%and again at 99%. This isnot an indication of a failure but the fact that the modem has to do some tasks during and the updater will wait for these tasks to be completed. Unless the upgrade process is hanging for more than 5 minutes, **do not interrupt the process**as you will have to start again if you don't finish it. It may also take several minutes for the updater to load before responding to the AT wakeup command.
210
+
175
211
### Retrying process
176
212
177
-
In case of any failure or interruption to the process of LTE modem upgrade you can repeat the same steps **after doing a hard reset to the board (i.e disconnecting and reconnecting power), pressing the reset button isnot enough.**
213
+
In case of any failure or interruption to the process of LTE modem upgrade you can repeat the same steps **after doing a hard reset to the board (i.e disconnecting and reconnecting power), pressing the reset button isnot enough.**
0 commit comments