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
* added assets
* feat: pylife documentation getting started, alerts, groups
* fix: moving to separate folders
* feat: add pylife to menu config
* feat: add static pictures
* fix: add static pictures, update device text
* added assets
* feat: pylife documentation getting started, alerts, groups
* fix: moving to separate folders
* feat: add pylife to menu config
* feat: add static pictures
* fix: add static pictures, update device text
* Update config.toml
* Create _index.md
Add template for firmware update instructions
* Update PyLife instructions and adding devices instructions
* Add warning and update menu to include firmware update
* Update the getting started and devices section
* Add firmware update instructions
* Add firmware update images
* Add messaging
* Move images to correct location
* fix: resolve suggestions
* Update PyLife documentation to clarify Devices, add more data, and improve the firmware update instructions
* Reduce size of age warning image so it isn't the whole screen on a computer
* Add the PC update section
* Fix a merge typo
* Resize images to be smaller on big monitors
* Add pin numbers to bottom view of PyGo
* Fix typo in instructions
* Expand manual fw update process from computer
Co-authored-by: njilrem <[email protected]>
Co-authored-by: njilrem <[email protected]>
Co-authored-by: Pete Allen <[email protected]>
Co-authored-by: PetePycom <[email protected]>
Copy file name to clipboardExpand all lines: content/pylife/fwupdate/_index.md
+39-8Lines changed: 39 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,23 +44,54 @@ The immediate firmware update resolves this issue, but if you do encounter pleas
44
44
45
45
46
46
## Manual firmware update from computer
47
-
For most people, firmware update through the app is the best option. However it is possible to update through a computer if you have the USB cradle or can connect to the PyGo's serial port through a computer.
48
-
If you want to do this, do the following:
49
-
1) Download the relevant firmware for your PyGo. Click on the relevant link below, and download the firmware in the URL field
2) Connect to your PyGo's serial terminal, and run `upgrade()`
47
+
For most people, performing the firmware update through the app is the best option. However, it is possible to update through a computer if you have the USB cradle or your device is already in upgrade mode.
48
+
49
+
If your device is not already in upgrade mode from a previous upgrade attempt, please install [Atom](https://docs.pycom.io/gettingstarted/software/atom/) or [Visual Studio Code](https://docs.pycom.io/gettingstarted/software/vscode/) and enter the REPL prompt in the Pymakr plugin. Alternatively you can use PuTTy or minicom as Terminal programs
> The above screenshot shows the usual startup messages from the PyGo when in application made. Wait for these commands to complete before issuing the `upgrade()` command.
53
+
54
+
Please follow these steps to upgrade your PyGo on your PC:
55
+
56
+
1) Download the relevant firmware for your PyGo. Click on the relevant link below which will initiate the firmware image download.
2a) If your PyGo is still in application mode, connect to your PyGo's REPL via Atom, Visual Studio Code, PuTTy or minicom, and run `upgrade()`
61
+
62
+
2b) If your PyGo is advertising a WiFi network with the name `PyCom_AP_Firmware_Update`, your PyGo is already in upgrade mode and you can continue to the next step.
63
+
53
64
3) On your computer, connect to the PyGo's access point:
54
65
* SSID: PyCom_AP_Firmware_Update
55
66
* Password: www.pycom.io
67
+
56
68
4) Open up a command prompt or terminal, navigate to the directory your downloaded firmware is in, and run the following, replacing YOUR_FIRMWARE_HERE with firmware you have downloaded:
57
-
```
69
+
70
+
Ensure that you run each command separately and check the output. You should see a line "Status: OK" in the output for commands that do a `--request GET`. Please note the ota-reboot command may not return a result and seem to hang. You can check if your PyGo is showing the usual start-up messages after the upgrade is complete.
71
+
72
+
Pushing the firmware binary to the device (command with `--request POST`) can take several minutes so please be patient.
73
+
74
+
```
58
75
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-init"
59
76
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-update"
60
77
curl --request POST --data-binary @YOUR_FIRMWARE_HERE.bin http://192.168.4.1/update
61
78
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-finish"
62
79
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-verify"
63
80
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-reboot"
64
81
```
65
-
5) Check that all commands have run succesfully without error. Your PyGo is now upgraded.
66
82
83
+
For example, if you're using MacOS with a PyGo1 and have download the current PyGo1 firmware to the ~/Downloads folder:
84
+
85
+
```
86
+
cd ~/Downloads
87
+
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-init"
88
+
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-update"
89
+
curl --request POST --data-binary @firmware_pygo1_1.20.4.r4-pylife.bin http://192.168.4.1/update
90
+
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-finish"
91
+
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-verify"
92
+
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-reboot"
93
+
```
94
+
95
+
> For Windows users, the curl command is included in Windows 10 since insider build 17063. For older versions of Windows, please download the curl application from https://curl.se/windows/
96
+
97
+
5) Check that all commands have run successfully without error. Your PyGo is now upgraded and you should see the startup messages as shown in the screenshot above.
0 commit comments