Customer Stories
Blog
How to Buy
Contact Us
About Digi
Leadership
Locations
Awards
Export Policy
Environment
Careers
Investor Relations
IoT Products and Services
Embedded Systems
Digi XBee Ecosystem
Digi XBee RF Modules
Digi XBee Cellular Modems
Digi XBee Gateways
Digi XBee Tools
System-on-Modules
Single Board Computers
Networking
Cellular Routers
Gateways
Console Servers
Serial Connectivity
USB Connectivity
IoT Software and Services
Digi Remote Manager
Digi Foundations
Wireless Design Services
Professional Services
TrustFence Security Framework
Featured
XCTU
Digi XBee
Zigbee
4G LTE
AnywhereUSB
Routers
//
See all keywords
Digi TrustFence
/
Built-in security framework for the IoT
SmartSense
Industries
Energy
C&I Metering
Demand Response
Digital Oil Field
Renewable Energy
Smart Grid
Tank Monitoring
Smart Cities
Traffic Management
Intelligent Lighting
Water & Wastewater
Security
Medical
Components for Medical Devices
Outpatient Care Devices
Industrial
Precision Agriculture
Manufacturing Automation
Retail
Branch Office Networking
Digital Signage and Kiosk
Gaming
Secure ATM
Transportation
Fleet
Heavy Machinery
Public Transit
Rail
Resources
Documentation
Resource Library
Standards and Technology
Blog
Videos
News
Global Events
Certifications
Security Center
GitHub Repository
Examples and Guides
Project Gallery
Customer Stories
Support
Support Services
Support Forum
Product Returns (RMA)
Warranty Registration
Expert Support Login
Knowledge Base
Drivers
Firmware Updates
Documentation
Diagnostics, Utilities & MIBS
Embedded Patches
Sample Applications
Search
Remember
Register
Home
/
Support
/
Support Forum
/
OTA Update of Python Code
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Device Cloud
(309)
Python
(887)
RF Solutions and XBee
(7,465)
Device Cloud-enabled RF Gateways
(86)
XBee3
(139)
IEEE 802.11 (Wi-Fi)
(260)
IEEE 802.15.4
(1,593)
ZigBee PRO Featureset (and legacy ZNet 2.5)
(1,463)
ZigBee Smart Energy Profile 1.1
(101)
DigiMesh Proprietary Mesh Networking
(702)
Multipoint Proprietary
(188)
XLR PRO
(14)
XStream
(40)
XTend
(121)
XCite
(4)
XPress
(8)
Miscellaneous Hardware and Software
(481)
XBee Programmable Development
(728)
XBee Cellular
(84)
MicroPython
(25)
Digi TransPort
(629)
Digi Connect Cellular
(383)
Embedded Devices
(3,933)
Rabbit
(3,081)
Console Servers
(325)
Modbus and Industrial Automation
(224)
Realport
(555)
Serial Servers
(794)
Satellite Modules
(23)
USB
(1,165)
Serial Cards
(707)
ConnectPort Display
(51)
Feedback/Wish List
(82)
Other/Legacy
(279)
OTA Update of Python Code
+1
vote
Using Xbee3 Cellular Modem.
Is it possible to update python code over the air? Is this something Digi Remote Manager can handle?
Thanks
P.S. The "Upload Python Files" option is not available under the "More" menu for the device.
xbee
python
update
asked
Sep 26, 2018
in
XBee Cellular
by
skeller
New to the Community
(
1
point)
recategorized
Oct 11, 2018
by
skeller
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
This is scheduled for an upcoming release of the XBee Cellular firmware.
Edit: This feature (transfer files to device via Remote Manager) is in the current XBee/XBee3 Cellular firmware releases.
answered
Oct 27, 2018
by
TomCollins
Veteran of the Digi Community
(
1,459
points)
edited
Jul 16
by
TomCollins
Is there any timeline for that upcoming release?
When can we expect this to happen? I do not want to go through the Digi Remote manager server.
The feature exists in Digi Remote Manager. You could use the urequests module to download content to the file system from a web server if you're looking for a way to download code over-the-air.
Is there any proper implementation of this ?
Given that the device can only run main.py or main.mpy file located in the flash.
Is there a sample code where a file was successfully downloaded using urequests ?
For a simple sample code like the following:
import urequests
url = '
https://www.python.org/static/opengraph-icon-200x200.png'
# download the url contents in binary format
r = urequests.get(url)
# open method to open a file on your system and write the contents
with open("python1.png", "wb") as code:
code.write(r.content)
I am getting:
TypeError: function takes 2 positional arguments but 4 were given
It sounds like you aren't using Digi's version of urequests. Try uploading this one to your device -- your test code worked for me.
https://github.com/digidotcom/xbee-micropython/tree/master/lib/urequests
Thanks a lot for your kind reply. I wasted a day on this :(
Sorry to hear that. :-(
Please take a look at the PyCharm plugin (described in the README from that GitHub project) for developing code on the XBee3 products. The GitHub project includes libraries ported to the version of MicroPython on XBee modules. In this case, the TLS/SSL interface is slightly different than other MicroPython products.
Please
log in
or
register
to add a comment.
...