
Get started with Digi Remote Manager
Configure Remote Manager features by scheduling tasks
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
56
Example: Update MicroPython from Remote Manager using XML
You can use the API Explorer in Remote Manager to create a schedule that enables you to update the
MicroPython application. In this example, you want to add FTP client capability to the MicroPython
application. You will need to add the library
uftp.py
and then update the
main.py
application.
This example is done following these steps:
to Remote Manager,
with the tasks that you want to perform,
, and then
to upload the files onto your device.
Note
You must upgrade your device to the latest firmware for all features to be available. See
.
Note
Digi Remote Manager requires TCP and will not work with NB-IoT, unless the carrier supports
TCP.
Step 1: Upload the MicroPython files
1.
.
2. Click
Data Services > Data Files
.
3. Upload the MicroPython application
main.py
file.
a. Click
New Folder
. The
New Folder
dialog displays.
b. In the
Folder name
field, enter a descriptive name, such as "MicroPython."
c. Click
Create
. The new file is added to the list of files.
d. Find the "MicroPython" folder in the folder list.
e. Click
Upload Files
. The
Upload Files
dialog displays.
f. Browse for the
main.py
file. Check with your system administrator for the location of the
application file.
g. Click
OK
.
4. Upload the MicroPython library
uftp.py
file.
a. Find the "MicroPython" folder in the folder list.
b. Click
Upload Files
. The
Upload Files
dialog displays.
c. Browse for the
uftp.py
file. The library
uftp.py
file is found on the GitHub repository:
https://github.com/digidotcom/xbee-micropython
d. Click
OK
.
Step 2: Create an XML file with the tasks that you want to perform
This XML file will contain a list of commands for the operation that you will schedule in
.
Note
The RCI commands to
set_settings
in the task may fail to execute because of disconnects after
changing the value for
MO
.
1. Open the editor of your choice.
2. Create a new file named
updatemicropython.xml
.
3. Copy the XML below and paste it into the new file.
4. Save the file.