diff --git a/package-lock.json b/package-lock.json index b6b3c4551..d7682f039 100644 --- a/package-lock.json +++ b/package-lock.json @@ -455,8 +455,7 @@ "assertion-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", - "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", - "dev": true + "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=" }, "async": { "version": "1.5.2", @@ -1962,14 +1961,15 @@ "optional": true }, "binary-version-reader": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/binary-version-reader/-/binary-version-reader-0.4.0.tgz", - "integrity": "sha1-S1QdZQVBXrjJO/vzuHNaW7EHYvU=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/binary-version-reader/-/binary-version-reader-0.6.1.tgz", + "integrity": "sha512-kYB0yAfFi0o7s3w6sa5NDjhPK5TyKbrpvcoMCQQqhE6/yy80Kl/C8vLU9Iulia6lp/TVY9CVA747KEI3mWw8cA==", "requires": { - "buffer-crc32": "0.2.13", - "h5.buffers": "0.1.1", - "when": "3.7.8", - "xtend": "4.0.1" + "buffer-crc32": "^0.2.5", + "chai": "^3.5.0", + "h5.buffers": "^0.1.1", + "when": "^3.7.3", + "xtend": "^4.0.0" } }, "binaryextensions": { @@ -2087,7 +2087,6 @@ "version": "3.5.0", "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", - "dev": true, "requires": { "assertion-error": "1.0.2", "deep-eql": "0.1.3", @@ -2982,7 +2981,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", - "dev": true, "requires": { "type-detect": "0.1.1" }, @@ -2990,8 +2988,7 @@ "type-detect": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", - "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true + "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=" } } }, @@ -9595,8 +9592,7 @@ "type-detect": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", - "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", - "dev": true + "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=" }, "typedarray": { "version": "0.0.6", diff --git a/package.json b/package.json index fa69b2c7a..01360aa4e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ } ], "dependencies": { - "binary-version-reader": "^0.4.0", + "binary-version-reader": "^0.6.1", "chalk": "^1.0.0", "cli-spinner": "^0.2.1", "cli-table": "^0.3.1", diff --git a/src/cmd/cloud.js b/src/cmd/cloud.js index 0260ae515..25c329c2c 100644 --- a/src/cmd/cloud.js +++ b/src/cmd/cloud.js @@ -27,9 +27,12 @@ const PLATFORMS = extend(utilities.knownPlatforms(), { 'e': 10, 'pi': 31, 'raspberry-pi': 31, + 'a': 12, + 'b': 13, + 'x': 14, 'o': 82, 'd': 88, - 'b': 103, + 'bl': 103, 'bg': 269, 'bb': 270 }); diff --git a/src/cmd/constants.js b/src/cmd/constants.js index 43fdb5ee8..4e51e544a 100644 --- a/src/cmd/constants.js +++ b/src/cmd/constants.js @@ -17,6 +17,9 @@ const platformsById = { 6: 'Photon', 8: 'P1', 10: 'Electron', + 12: 'Argon', + 13: 'Boron', + 14: 'Xenon', 31: 'Raspberry Pi', 88: 'Duo', 103: 'Bluz' diff --git a/src/lib/deviceSpecs/specifications.js b/src/lib/deviceSpecs/specifications.js index 4bf84ca9e..0ba9b4ff7 100644 --- a/src/lib/deviceSpecs/specifications.js +++ b/src/lib/deviceSpecs/specifications.js @@ -329,6 +329,80 @@ const specs = { 'wifi', ], }, + '2b04:d00c': { + productName: 'Argon', + tcpServerKey: { + address: '2082', + size: 512, + format: 'der', + alt: '1', + alg: 'rsa', + addressOffset: 384, + portOffset: 450 + }, + tcpPrivateKey: { + address: '34', + size: 612, + format: 'der', + alt: '1', + alg: 'rsa' + }, + userFirmware: { + address: '0x000D4000', + alt: '0' + }, + systemFirmwareOne: { + address: '0x00030000', + alt: '0' + }, + knownApps: { + + }, + serial: { + vid: '2b04', + pid: 'c00c', + serialNumber: 'Particle_Argon' + }, + defaultProtocol: 'tcp', + productId: 12, + }, + '2b04:d00d': { + productName: 'Boron', + tcpServerKey: { + address: '2082', + size: 512, + format: 'der', + alt: '1', + alg: 'rsa', + addressOffset: 384, + portOffset: 450 + }, + tcpPrivateKey: { + address: '34', + size: 612, + format: 'der', + alt: '1', + alg: 'rsa' + }, + userFirmware: { + address: '0x000D4000', + alt: '0' + }, + systemFirmwareOne: { + address: '0x00030000', + alt: '0' + }, + knownApps: { + + }, + serial: { + vid: '2b04', + pid: 'c00d', + serialNumber: 'Particle_Boron' + }, + defaultProtocol: 'tcp', + productId: 13, + }, '2b04:d00e': { productName: 'Xenon', tcpServerKey: { @@ -347,6 +421,10 @@ const specs = { alt: '1', alg: 'rsa' }, + userFirmware: { + address: '0x000D4000', + alt: '0' + }, systemFirmwareOne: { address: '0x00030000', alt: '0' diff --git a/src/lib/utilities.js b/src/lib/utilities.js index a73066994..83c40a40b 100644 --- a/src/lib/utilities.js +++ b/src/lib/utilities.js @@ -568,6 +568,9 @@ const utilities = { 'p1': 8, 'electron': 10, 'raspberrypi': 31, + 'argon': 12, + 'boron': 13, + 'xenon': 14, 'oak': 82, 'duo': 88, 'bluz': 103,