-
Notifications
You must be signed in to change notification settings - Fork 2
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 #581 from TheTechCompany/staging
Staging
- Loading branch information
Showing
126 changed files
with
1,747 additions
and
359 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
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 |
---|---|---|
|
@@ -11,4 +11,9 @@ dist/ | |
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
!.yarn/versions | ||
|
||
*stack | ||
|
||
|
||
*.key |
Binary file added
BIN
+63.2 KB
.yarn/cache/@hexhive-crypto-npm-1.0.2-beta.82-9570622cd8-891b058d85.zip
Binary file not shown.
Binary file renamed
BIN
+23.1 KB
...m-1.0.2-beta.70-b79fc759b2-7d9f3f212a.zip → ...m-1.0.2-beta.82-f95129152f-5169334d6f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,32 @@ | ||
# Device onboarding | ||
|
||
Prerequisites | ||
|
||
- [IO Mapping](./program-io.md) | ||
|
||
## Stages | ||
|
||
1. Device creation | ||
2. Token setup | ||
3. Provisioning | ||
4. Runtime setup | ||
|
||
### Device Creation | ||
|
||
In the deployments menu click the add button, provide a site level name describing where this device will be, customise the ID if required and select the Program from the dropdown. | ||
|
||
### Token Setup | ||
|
||
Click the more button and select settings for the device you are trying to setup. | ||
|
||
Click the add button and provide a name for the token you are trying to generate, click next and a token will be generated for this installation. | ||
|
||
### Provisioning | ||
|
||
Install the required client library for your installation, for a headless installation the [CLI Client](https://npmjs.com/@hive-command/cli-client) is probably the right choice, for a manned installation the [Native App](https://github.com/TheTechCompany/HiveCommand/releases) is a better choice. | ||
|
||
Start the client and provide the provisoning code, after fetching the required context from the discovery server and installing the drivers data transmission should begin. | ||
|
||
### Runtime setup | ||
|
||
Power outages, maintenance and other things can cause the client to crash so it's a good idea to either set it up as a Windows service or run with a watchdog like forever |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
# Getting Started | ||
# Getting Started | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,43 @@ | ||
# Program IO | ||
|
||
Communication is maintained by a series of driver libraries [(found here)](/packages/drivers/) each one is responsible for a single protocol and when instantiated is responsible for a long term connection to a single instance of the opposing server/client. | ||
|
||
Values are included in a program through Tags and Types, Tags are top level mappings of name, datatype and location (which driver instance). Tags datatypes are basic primitives (string, number, boolean) and Types. | ||
|
||
Types are re-usable mappings of tags that allow for mapping logical types e.g. Valves and Pumps. | ||
|
||
## Driver setup | ||
|
||
To setup a new driver in a program go to the System page in the program editor and click the add button | ||
|
||
![Image](./images/data-scopes.png) | ||
|
||
Select the driver type from the dropdown in the modal | ||
|
||
![Image](./images/data-scopes-modal.png) | ||
|
||
Finally configure the driver options to match the local configuration | ||
|
||
![Image](./images/data-scopes-config.png) | ||
|
||
## Tag setup | ||
|
||
Tags are mapped to the local values by the drivers and each may implement this differently. | ||
|
||
For Ethernet/IP the tags are fetched only from the global tag list and are batched in to small workloads fetched cyclicly | ||
|
||
For OPC-UA the tags are fetched with a prefix applied from the driver configuration and are batched in to smaller workloads based on the OPC-UA serverside configuration. | ||
|
||
Multiple different drivers can be combined through the tag list to make a new HMI top level tag list | ||
|
||
To add new tags select Tags from the Editor menu. | ||
|
||
Drivers can be configured from the driver dropdown on each tag row | ||
|
||
![Image](./images/tag-scope.png) | ||
|
||
Datatypes can be configured from the type dropdown | ||
|
||
![Image](./images/tag-datatypes.png) | ||
|
||
Changes are saved automatically as items are changed |
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 |
---|---|---|
|
@@ -13,5 +13,5 @@ | |
"packages/types/*" | ||
], | ||
"npmClient": "yarn", | ||
"version": "1.4.15-alpha.309" | ||
"version": "1.4.15-alpha.313" | ||
} |
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
Oops, something went wrong.