gpy modem upgrade alternative
-
While the instructions at https://docs.pycom.io/tutorials/lte/firmware/ work, I find the whole sd card/serial uart pathway for GPY modem upgrades cumbersome. Herewith an alternative approach;
- upgrade the gpy to the latest version with the Pycom firmware updater tool
- check your modem version with lte.send_at_cmd('ATI1').split('\r\n'), usually 33080 for most new GPYs
>>> import network; lte=network.LTE() >>> lte.send_at_cmd('ATI1').split('\r\n') ['', 'UE5.0.0.0d', 'LR5.1.1.0-33080', '', 'OK', '']- mod your project settings in Atom so that elf & dup extensions are in sync_file_types for uploads
"sync_file_types": [ "py", "txt", "log", "json", "xml", "html", "js", "css", "mpy", "pem", "cet", "crt", "key", "dup", "elf"- put updater.elf(only needed for 1st time modem upgrades) & upgdiff_33080-to-41065.dup files in your Atom
upload folder - click upload. Despite claims to the contrary they both fit in the gpy flash
- Do import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-41065.dup', '/flash/updater.elf') for 1st time modem upgrades or import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-39529.dup') for subsequents
>>> import sqnsupgrade; sqnsupgrade.run('/flash/upgdiff_33080-to-41065.dup', '/flash/updater.elf') <<< Welcome to the SQN3330 firmware updater [1.2.5] >>> >>> GPy with firmware version 1.18.2.r6 Attempting AT auto-negotiation... Session opened: version 1, max transfer 2048 bytes Sending 430284 bytes: [########################################] 100% Waiting for updater to load... Attempting AT wakeup... Session opened: version 1, max transfer 8192 bytes Sending 1658508 bytes: [########################################] 100% Waiting for modem to finish the update... <<<=== DO NOT DISCONNECT POWER ===>>> Resetting...... Your modem has been successfully updated. Here is the current firmware version: UE5.0.0.0d LR5.1.1.0-41065- Enjoy the fruits of your effort
>>> sqnsupgrade.info() <<< Welcome to the SQN3330 firmware updater [1.2.5] >>> >>> GPy with firmware version 1.18.2.r6 Your modem is in application mode. Here is the current version: UE5.0.0.0d LR5.1.1.0-41065 -
@kjm For people using Atom the this is a possible approach. But not all people do, and this approach makes quite a few assumptions, like that the image fits into flash. And there a lot if threads about problems with Atom and syncing. Your approach is an alternative, but people will too have issues with it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login