Skip to content

Commit 46c90e8

Browse files
XykonnjilremkPetePycom
authored
Pylife (#498)
* 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]>
1 parent a095a2a commit 46c90e8

File tree

3 files changed

+39
-8
lines changed

3 files changed

+39
-8
lines changed

content/pylife/fwupdate/_index.md

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,54 @@ The immediate firmware update resolves this issue, but if you do encounter pleas
4444

4545

4646
## 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
50-
* [PyGo1 firmware](https://software.pycom.io/manifest.json?sysname=pygo1&fwtype=pylife&current_ver=1.20.4)
51-
* [PyGo2 firmware](https://software.pycom.io/manifest.json?sysname=pygo2&fwtype=pylife&current_ver=1.20.4)
52-
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
50+
51+
![Pymakr Console](/gitbook/assets/pylife/fwupdate/pymakr.png)
52+
> 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.
57+
* [PyGo1 firmware](https://software.pycom.io/manifest.json?sysname=pygo1&fwtype=pylife&current_ver=1.20.4&download=true)
58+
* [PyGo2 firmware](https://software.pycom.io/manifest.json?sysname=pygo2&fwtype=pylife&current_ver=1.20.4&download=true)
59+
60+
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+
5364
3) On your computer, connect to the PyGo's access point:
5465
* SSID: PyCom_AP_Firmware_Update
5566
* Password: www.pycom.io
67+
5668
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+
```
5875
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-init"
5976
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-update"
6077
curl --request POST --data-binary @YOUR_FIRMWARE_HERE.bin http://192.168.4.1/update
6178
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-finish"
6279
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-verify"
6380
curl -v --request GET http://192.168.4.1/status -H "FW-Header-1: ota-reboot"
6481
```
65-
5) Check that all commands have run succesfully without error. Your PyGo is now upgraded.
6682

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.
3.77 KB
Loading
124 KB
Loading

0 commit comments

Comments
 (0)