Skip to content

Commit

Permalink
Merge pull request #451 from particle-iot/ch12585/verify-cloud-relate…
Browse files Browse the repository at this point in the history
…d-commands-work-with-mesh

Add support for mesh flash and DFU
  • Loading branch information
monkbroc authored Sep 28, 2018
2 parents c5c7e13 + 7142fbc commit b9d6493
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 17 deletions.
26 changes: 11 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/cmd/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
3 changes: 3 additions & 0 deletions src/cmd/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
78 changes: 78 additions & 0 deletions src/lib/deviceSpecs/specifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -347,6 +421,10 @@ const specs = {
alt: '1',
alg: 'rsa'
},
userFirmware: {
address: '0x000D4000',
alt: '0'
},
systemFirmwareOne: {
address: '0x00030000',
alt: '0'
Expand Down
3 changes: 3 additions & 0 deletions src/lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ const utilities = {
'p1': 8,
'electron': 10,
'raspberrypi': 31,
'argon': 12,
'boron': 13,
'xenon': 14,
'oak': 82,
'duo': 88,
'bluz': 103,
Expand Down

0 comments on commit b9d6493

Please sign in to comment.