or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
DeviceOn Getting Started
DeviceOn Server Installation
Setup Standalone Version on Windows (On-premises)
Step 1: Install the DeviceOn Package on Your System
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Note: You can start a Windows command prompt and type “ipconfig” to retrieve your IP address(es) on this physical/virtual machine.
Strong Password Rules:
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Step 2: Launch DeviceOn Web Service Shortcut on Desktop
Setup Standalone Version on Linux (On-premises)
If you are interested in DeviceOn and used to Linux platform, On-Premise, we also provide an installer for Ubuntu Linux (one of the most popular Linux distribution). This section will guide you how to install DeviceOn on Ubuntu Linux. Note here that:
The DeviceOn Ubuntu Linux installer is named something like "DeviceOn_Server_Ubuntu 18.04_x64_4.7.x.run". To acquire the installer and ensure having the latest version, please contact us.
If you are running the installer with an account other than "root", you should use "sudo" command to obtain higher privileges, or the installation may fail at any step.
Step 1: Open a terminal
Step 2: Copy the installer to target host
Step 3: Set the installer as executable
Step 4: Running the installer
Step 5: Answering some questions
A. The password of user postgres to login PostgreSQL database.
When you run into this step the question shows like above. Just input the password you would like to use to login PostgreSQL database for “postgres” account.
B. The password of user “wisepaas” to login MongoDB database.
When you run into this step the question shows like above. Just input the password you would like to use to login MongoDB database for “wisepaas” account.
C. The valid IP or host name of the target host.
When you run into this step the question shows like above. Just input the IP address of the target host. A hostname (even a FQDN) is also acceptable if you are sure that agents can connect to via the name you provide.
D. If turn MongoDB capped functionality on or not.
When you run into this step the question shows like above. Just input “yes” or “no” to enable or disable “capped” functionality. If you answer “yes”, a subsequent question followed to ask you “how much capped size, in MB, to be used? “. Just input the size, in MB, you want to use in “capped” functionality in MongoDB database.
Capped collections are fixed-size collections that support high-throughput operations that insert and retrieve documents based on insertion order. Capped collections work in a way similar to circular buffers: once a collection fills its allocated space, it makes room for new documents by overwriting the oldest documents in the collection.
E. The password of user “root@advantech.com.tw” to login DeviceOn portal, and the rule should follow below guideline.
Strong Password Rules:
Minimum eight characters, at least one number, one lowercase letter, one uppercase letter, and one special character (Blank character, Backslash(\), Double quotes(") are prohibited)
When you run into this step the question shows like above. Just input the password you would like to use to login DeviceOn portal for “root@advantech.com.tw” account.
Finally, a workable DeviceOn server should be there the target host. Open a browser and input http://{IP-USED-IN-QUESTION-C}, you should see the DeviceOn login page.
Cloud Deployment from Azure/AWS
Deploy DeviceOn from Azure Marketplace
Step 1: Deploy DeviceOn from Azure Marketplace
Step 2: Access DeviceOn Web Service
Note: Please remember to modify your own password after log-in.
Deploy DeviceOn from AWS Marketplace
Step 1: Deploy DeviceOn from AWS Marketplace
Step 2: Login EC2 Virtual Machine
Step 3: Login DeviceOn Web Service
Note: Please remember to modify your own password after log-in.
Deploy Enterprise Version on Azure Kubernetes
Prerequisites
To achieve the goal to deploy DeviceOn, some resources have to be acquired and preconditions must be met as well.
Second option, if you don't want to install Azure CLI, you can also adopt Azure Cloud Shell, please refer to Microsoft documentation.
Step 1: Obtain the following three parameters for deployment
a). Sign into your Azure account through Azure CLI
Use any way you prefer to open a Command Prompt and enter
Note: If the CLI can open your default browser, it will do so and load a sign-in page. Otherwise, you need to open a browser page and follow the instructions on the command line to enter an authorization code after navigating to https://aka.ms/devicelogin in your browser. Sign in with your account credentials in the browser.
b). Select your Subscription
After you login, the terminal console will list all subscriptions, please select the subscription that you would like to deploy.
If you don’t know which subscriptions you have, you can use below command to list all the subscriptions, and determine whether the subscription has been selected according to isDefault.
c). Create a service principal
The last step to create a service principal and generate these parameters. (1. Application ID, 2. Password and 3. Tenant ID)
If you want to further limit the scope of service principle to resource group, please try to create the resource group, and then use the following command to limit.
Step 2: Deploy DeviceOn via Custom Template
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →a). Open the Azure Portal
This will open the Azure Portal (portal.azure.com) in your subscription and create the required resources.
b). Enter the following values:
c). Select Review + create
d). Validation and start to create.
e). Deployment Process
The entire deployment process takes about 30 minutes. After completion, you will receive a mail notification. The content of the mail includes the DeviceOn web Service IP and login Account password.
Assuming that your mail is intercepted/block or not received due to mail server filters, we will synchronously write this information to the Azure Blob Log container. Go to your resource group (you entered at the stage of deployment) storage account -> container -> Log -> ServerInformation.log. If the container has not been created, please wait a few minutes for initialization.
f). Result
There are two resource group generated on your subscription, one is you entered at the stage of deployment, which include the services such as: AKS, IoTHub, EventHub, Stream Analytics, CosmosDB, PostgreSQL…etc. Another resource group name prefix name starts with MC, that contains AKS VM node.
DeviceOn Agent Installation
Device Onboarding on Windows
Step 1: Onboarding Your Device to IoT Device Platform (DeviceOn)
a). Log in to the DeviceOn Cloud Service with Your Account and Password
b). Download DeviceOn Agent and Connection Configuration (Agent.config)
c). Set up Your Local Device
Quick Mode:
Advanced Mode:
d). Set up Your Local Device
e). Login to Agent Web Service
e). Grouping Your Devices
f). Start Device Management
Device Onboarding on Linux
Once your DeviceOn server installed, you could start to follow steps to onboarding your edge device.
a). Log in to the DeviceOn Cloud Service with Your Account and Password
b). Download DeviceOn Agent and Setup on your Device
c). Open a terminal
d). Copy the installer to target host
e). Set the installer as executable
f). Running the installer
g). Start DeviceOn Agent and Connect to DeviceOn
h). Start Device Management