Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update firmware binaries fails on parse #231

Closed
haeferer opened this issue Jun 30, 2017 · 2 comments
Closed

update firmware binaries fails on parse #231

haeferer opened this issue Jun 30, 2017 · 2 comments

Comments

@haeferer
Copy link

the versionResponse from github

Fails to find the start pattern... '| 0 '

(from update-firmware-binaries.js)

versionResponse = _context3.sent;
          versionText = new Buffer(versionResponse.content, 'base64').toString();
          startIndex = versionText.indexOf('| 0 ');
          endIndex = versionText.indexOf('\n\n', startIndex);
          data = versionText.substring(startIndex, endIndex).replace(/\s/g, '').split('|');
          mapping = [];

answer is

"## System Module Numbers and Semver Releases

| Bootloader Module Version | System Module Version | Release Version | Comments |
|:---:|:---:|:------|:---|
|     |   0 | 0.4.0 | |
|     |   1 | 0.4.1 | |
|     |   2 | 0.4.2 | |
|     |   3 | 0.4.3 | |
|     |   4 | 0.4.4-rc.1 - 0.4.4-rc.6 | |
|     |   5 | 0.4.4 | |
|     |   6 | 0.4.5 | |
|     |   7 | 0.4.6 | |
|     |   8 | 0.4.7 | |
|     |   9 | 0.4.8-rc.1 |         (2nd release to MFG for Photon) |
|     |  10 | 0.4.8-rc.6 |         (Electron MFG Release) |
|     |  11 | 0.4.9 | |
|     |  12 | 0.5.0-rc.1 |         (Core, Photon, P1, Electron) |
|     |  13 | 0.5.0-rc.2 / 0.5.0 | (Core, Photon, P1, Electron) |
|     |  14 | 0.5.1-rc.1 |         (Core, Photon, P1, Electron) |
|     |  15 | 0.5.1-rc.2 / 0.5.1 | (Core, Photon, P1, Electron) |
|     |  16 | 0.5.2-rc.1 |         (Core, Photon, P1, Electron) |
|     |  17 | 0.5.2 |              (Core, Photon, P1, Electron) |
|     |  18 | 0.5.3-rc.1 |         (Core, Photon, P1, Electron) |
|     |  19 | 0.5.3-rc.2 |         (Core, Photon, P1, Electron) |
|     |  20 | 0.5.3-rc.3 |         (Core, Photon, P1, Electron) |
|     |  21 | 0.5.3 |              (Core, Photon, P1, Electron) |
|     | 100 | 0.6.0-rc.1 |         (Core, Photon, P1, Electron) |
|     | 101 | 0.6.0-rc.2 |         (Core, Photon, P1, Electron) |
|     | 102 | 0.6.0 |              (Core, Photon, P1, Electron) |
|     | 103 | 0.6.1-rc.1 |         (Core, Photon, P1, Electron) |
|     | 104 | 0.6.1-rc.2 |         (Core, Photon, P1, Electron) |
|     | 105 | 0.6.1 |              (Core, Photon, P1, Electron) |
|     | 106 | 0.6.2-rc.1 |         (Core, Photon, P1, Electron) |
|     | 107 | 0.6.2-rc.2 |         (Core, Photon, P1, Electron) |
|  11 | 108 | 0.6.2 |              (Core, Photon, P1, Electron) |
| 100 | 200 | 0.7.0-rc.1 |         (Core, Photon, P1, Electron) |

To find out the release version of system firmware currently installed, in listening mode,
connect to serial and send `v` to print the release version string.

To get version details on system firmware releases prior to 0.4.4, see https://community.particle.io/t/determining-the-version-of-system-firmware-on-a-photon-p1/13324
"
@haeferer
Copy link
Author

haeferer commented Jun 30, 2017

The Format has changed 15 days ago. I dont understand why this happens now (and not 15 day before) . But there is a new Column (bootloader) and some reformating

@haeferer
Copy link
Author

PR including a patch for this bug

Brewskey/spark-protocol#127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants