-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #784 from particle-iot/feature/kigen-esim-prov-tac…
…hyon Feature/kigen esim prov tachyon
- Loading branch information
Showing
17 changed files
with
1,226 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Provision a blank eSIM | ||
|
||
### Pre-req | ||
|
||
1. Input JSON (A JSON file that has a list of EIDs and their respective RSP URLs) | ||
2. Output (Folder where output logs will be stored. Defaults to `esim_loading_logs` if not set) | ||
3. lpa tool (lpa tool binary - differently built for mac and windows) | ||
4. binaries (Folder with the user binaries) | ||
|
||
## Setup | ||
|
||
### Local folder setup on computer | ||
|
||
Put your files in this structure (for example) | ||
|
||
``` | ||
/kigen-resources | ||
├── /binaries | ||
│ ├── esim-firmware-b5som.bin | ||
│ ├── esim-firmware-msom.bin | ||
├── input.json | ||
├── custom_output_folder/ | ||
├── lpa | ||
│ ├── mac | ||
│ ├── ├── lpa | ||
│ ├── windows | ||
│ ├── ├── lpa.exe | ||
``` | ||
|
||
### Device Setup | ||
|
||
1. Connect your device(s) to the computer | ||
2. Run this command | ||
``` | ||
particle.js esim provision --input /path/to/input.json --lpa /path/to/lpa-tool --binary /path/to/binaries --bulk true | ||
``` | ||
|
||
### Expected Outcome | ||
First, the device(s) are flashed. Once the download process starts on a given device, device will turn its LED into yellow. If the download worked, LED turns green. If the download failed, LED turns red. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const unindent = require('../lib/unindent'); | ||
|
||
module.exports = ({ commandProcessor, root }) => { | ||
const esim = commandProcessor.createCategory(root, 'esim', 'Download eSIM profiles (INTERNAL ONLY)'); | ||
|
||
commandProcessor.createCommand(esim, 'provision', 'Provisions eSIM profiles on a device', { | ||
options: Object.assign({ | ||
'lpa': { | ||
description: 'Provide the LPA tool path' | ||
}, | ||
'input': { | ||
description: 'Provide the input json file path' | ||
}, | ||
'output': { | ||
description: 'Provide the output folder path' | ||
}, | ||
'binary': { | ||
description: 'Provide the path to the binaries' | ||
}, | ||
'bulk': { | ||
description: 'Provision multiple devices' | ||
} | ||
}), | ||
handler: (args) => { | ||
const ESimCommands = require('../cmd/esim'); | ||
if (args.bulk) { | ||
return new ESimCommands().bulkProvisionCommand(args); | ||
} else { | ||
return new ESimCommands().provisionCommand(args); | ||
} | ||
}, | ||
examples: { | ||
'$0 $command': 'TBD' | ||
}, | ||
epilogue: unindent(` | ||
The JSON file should look like this: | ||
{ | ||
"TBD": "TBD" | ||
} | ||
TBD TBD | ||
`) | ||
}); | ||
return esim; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.