跳至主要内容

Onboard Your Device

This tutorial guides you through onboarding an Advantech edge device to the WEDA framework. The process involves registering your organization and device on WEDA Core (the central management service) and provisioning WEDA Node (the client daemon) on your physical edge hardware.

Prerequisites

  1. Confirm your target edge device meets the system requirements detailed in the Prerequisites & Basics guide.
  2. Download and import the WEDA Postman Collections: 0-WiseSso, 1-Org&ClientCrend, 2-Provisioning&Activation, and 3-Telemetry.
  3. Select your active Postman environment and confirm that the required variables (e.g., domain, tenantPath, appPath, login, and password) are filled out.

Workflow Overview

Onboarding is a coordinated sequence of actions between WEDA Core and WEDA Node:

Quick Navigation

  1. Retrieve Access Token
  2. Create an Organization
  3. Retrieve Hardware Metadata
  4. Register the Device
  5. Launch WEDA Node & Verify Connection
  6. Get Device Telemetry Data

1. Retrieve Access Token (WEDA Core)

Before invoking WEDA Core APIs, you must authenticate through the WiseSSO Identity Service to retrieve a Bearer Token.

Postman Collection: 0-WiseSso

Execute the five requests in sequence to establish your identity context. Postman scripts will automatically clear cookies, manage redirects, and extract the accessToken variable.

  1. External Login 302
  • Method: GET
  • URL: {{domain}}/{{tenantPath}}/portal/external-login?returnUrl={{domain}}/{{tenantPath}}/{{appPath}}
  • Description: Initializes the identity federation redirect flow and parses the query parameters to set client_id, tenantId, and redirect_uri environment variables.
  • Result: WEDA Cloud returns 302. External Login
  1. Account Login
  • This step submits your account credentials to authenticate the user with the identity service.
  • Expected result: WEDA Cloud returns 200, accepts the login, and updates the authenticated session context. Account Login
  1. External Login 200
  • This call completes the tenant-aware login return flow and confirms the correct tenant context.
  • Expected result: WEDA Cloud returns 200 with the expected tenant context. External Login 200
  1. Signin Oidc
  • This step uses the authenticated session cookie to perform OIDC (OpenID Connect) sign-in and obtain exchangeable identity tokens.
  • Expected result: WEDA Cloud returns 302 and redirects with the OIDC exchange context. Signin Oidc
  1. WEDA Token
  • This final request exchanges the OIDC result for the WEDA access token used by subsequent API requests.
  • Expected result: WEDA Cloud returns 201 with a valid WEDA access token for subsequent API calls. Access Token

2. Create an Organization (WEDA Core)

Organizations isolate devices, telemetry rules, and containers within a tenant on WEDA Core.

Postman Collection: 1-Org & ClientCrend

Execute the following requests to establish your organization space. This collection automatically injects the {{accessToken}} Bearer token into all requests.

  • Org Create: Create a new organization with a unique name.
  • Method: POST
  • URL: {{apibaseurl}}/orgs
  • Payload:
{
"name": "someOrgName"
}
  • Description: Creates a unique organization associated with your login account. On success (HTTP 201 Created), Postman extracts the ID and saves it to your environment as org_id.
備註

If the organization name already exists, WEDA Cloud returns 409.

postman org create

Example Request: Curl
curl --location --request POST 'https://{domain}/{tenantPath}/{appPath}/api/v1/orgs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}' \
--data '{
"name": "new_org"
}'
Example Response
{
"name": "new_org",
"orgId": "26ba6f6e-8454-4778-a69a-100d852fdc71",
"parentOrgId": null,
"description": null,
"admins": [
{
"userId": "019ea502-04c5-7382-b4df-fb31a00fb002",
"orgRole": "admin",
"name": "Alvin Wang"
}
],
"dateCreated": "2026-06-09T09:46:19.3412009Z",
"dateModified": null
}

Key parameters:

  • orgId: The organization ID returned after creating the organization. You will use it again in the device creation step.
    • Example: In the response above, 26ba6f6e-8454-4778-a69a-100d852fdc71 is the orgId.

Other APIs in the 1-Org & ClientCrend collection:

  • Org List: Get the list of organizations.
  • Org Delete: Delete an organization by its ID.
  • Client-Cred Create: Create a new client credential.
  • Client-Cred List: Get the list of client credentials.
  • Client-Cred Delete: Delete a client credential by its ID.
  • Connect Token: Exchange clientId and clientSecret for a client access token (grant_type=client_credentials), typically used for service-to-service API access.

Note: The client credential is an API key required for service integrations. For example, requesting data from WEDA Core as a data source for Grafana visualizatons.

3. Retrieve Hardware Metadata (WEDA Node)

To register your edge device, WEDA Core requires its unique MAC address and hardware profile name.

  1. Access your physical edge hardware.
  2. Follow the steps in WEDA Node Activator to download and setup the Activator.
  3. Launch the WEDA Node Activator utility, a shortcut is created on your desktop after setup.
  4. Copy the metadata details from the Activator GUI (see below):
  • Device (deviceId): The device's primary MAC address formatted as a lowercase, continuous string with no colons or hyphens (e.g. cc827f50f406).
  • Model (hwModel): The local system model name retrieved from /etc/board (e.g., MIC-710 or UNO-2484v2).
  1. Save these values directly to your Postman environment under the variables deviceId and hwModel. activator_initial
  • deviceId: Find this value in the Device field.
  • hwModel: Find this value in the Model field.

4. Register the Device (WEDA Core)

Bind your physical hardware credentials to your WEDA Core organization.

Postman Collection: 2-Provisioning&Activation

  1. Node Register: Create a new device under the organization.
  • Method: POST
  • URL: {{apibaseurl}}/orgs/{{org_id}}/devices
  • Payload:
{
"deviceId": "{{deviceId}}",
"hwModel": "{{hwModel}}",
"deviceName": "{{hwModel}}-{{deviceId}}"
}
  • Expected result: WEDA Cloud returns 201 and provides the registered device information. At this stage, WEDA Core recognizes the identity of your device. Its status remains Registered until the WEDA Node client daemon is launched and activated on the physical edge.

postman create device

Example Request: Curl
curl --location --request POST 'https://{domain}/{tenantPath}/{appPath}/api/v1/orgs/{orgId}/devices' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}' \
--data '{
"deviceId": "cc827f50f406",
"hwModel": "ADVANTECH-EDGE",
"deviceName": "ADVANTECH-EDGE-cc827f50f406"
}'
Example Response
{
"deviceId": "cc827f50f406",
"hwModel": "ADVANTECH-EDGE",
"orgId": "26ba6f6e-8454-4778-a69a-100d852fdc71",
"status": "Registered",
"deviceName": "ADVANTECH-EDGE-cc827f50f406"
}

Key parameters:

  • deviceId: Must be a MAC address (lowercase letters and numbers only, no symbols).
  • hwModel: Hardware model of the device, for example MIC-710 or ADVANTECH-EDGE.
  • orgId: The organization ID from the previous step — supplied in the URL path, not the request body.
  • status: At this stage, the device is only registered in WEDA Cloud. If WEDA Node is not connected yet, the status remains Registered.
  • deviceName: Optional at registration. If omitted, WEDA Core auto-generates it as {hwModel}-{deviceId} — the Postman request pre-fills {{hwModel}}-{{deviceId}}; you can customize it.

Other APIs in the 2-Provisioning&Activation collection:

  • Node Activation: Get device auth info used for activation (encrypted auth payload/file) (see Appendix).
  • Node List: Get a paginated device list. You should see the newly created device in the list.
  • Node List Under Org: Get the list of devices under the organization.
  • Token Refresh: Get a new access token using the refresh token.
  • Node Deactivate: Deactivate a device by its ID. status: deactivate
  • Node Remove: Delete a device by its ID.

The collection also includes a DataSource+DataObjects subfolder for inspecting what data a device exposes once it is activated and syncing:


5. Launch WEDA Node and Verify Connection (WEDA Node)

Finalize connecting your device to WEDA Core

Finish provisioning your Advantech edge hardwdare for remote management.

Step 1: Run WEDA Node Activator

step1

  1. Run WEDA Node Activator on the edge device, accessible from the desktop shortcut.
  2. Select Setup WEDA Node

Step 2: Accept License Agreement

step2

Review the End-User License Agreement (EULA). Press Space to scroll and confirm consent.


Step 3: Select Credential Source

step2


You will be prompted to select how this device securely pulls down its central synchronization keys:

Ideal for internet-connected standard devices. It directly links the local WEDA Node to the public WEDA Core service over HTTPS using pre-built master keys bundled with the Activator. Select this option and press Enter.

Expected result: The device will automatically provisioned on the public WEDA Core service on upon starting the Activator.


Option B: Use Local Credential File

For private, offline, or local networks (LAN). If selecting this method, fetch your key file from WEDA Core using the Node Activation API request.

Optional Path

If you need to register by local credential file, follow Appendix: Register by Local Credential File.


Step 4: Confirm Configuration Settings

step9

Verify the displayed installation targets, target endpoints, network interfaces, and parameters, then confirm configuration.


Step 5: Finish Service Connections

The installer pulls the WEDA Node container images, sets up secure network boundaries, and spawns the WEDA Core client services. This takes roughly 2–5 minutes depending on network bandwidth. Do not close the console window or press Ctrl + C, which can interrupt this terminal process. step9


Expected result: Container images downloaded, started, and services running.

Step 6: WEDA Node Installation Complete

afterinstall

Once completed, the Activator launches the live WEDA Node Service Dashboard.

Service Dashboard

Status icons:

  • green — running / connected / registered
  • grey — stopped / unknown
  • red — failed / disconnected

Connection box color:

  • Green border — device connected to WEDA server
  • Red border — REG_FAILED or container not found
  • Grey border — intermediate states

The dashboard auto-refreshes every 5 seconds.

Management Actions

ActionDescription
Update Authentication CredentialsReplace the master key or credential file without reinstalling
Restart ServiceStop and restart all WEDA Node Docker containers
Remove WEDA NodeUninstall containers, volumes, and configuration (type REMOVE to confirm)

Verify WEDA Node Connection from WEDA Core

Postman Collection: 2-Provisioning&Activation -> Node List Under Org

  • Node List Under Org: Get the list of devices under the organization.
    • Method: GET
    • URL: {{apibaseurl}}/orgs/{{org_id}}/devices
    • Description: This request queries the devices under orgId and is used to verify whether the WEDA Node has connected successfully from the Cloud side.
    • Expected result: WEDA Cloud returns 200, and the response includes your deviceId, hwModel, and current status.
    • Connection check: when the node is online and activated, the device status should become Activated. img-nodelistunderorg

6. Get Device Telemetry Data

Once the WEDA Node client daemon is running and authorized, telemetric updates automatically flow from WEDA Node to WEDA Core.

Postman Collection: 3-Telemetry

  • Data Points Latest Get by User Token
    • Method: GET
    • URL: {{apibaseurl}}/devices/{{deviceId}}/data-objects/values/latest
    • Description: This request returns the latest values of device data objects, including system status and onboard sensor measurements.
    • Expected result: WEDA Cloud returns 200 and provides the latest telemetry data for the specified deviceId.

postman get latest datapoint

Example Request: Curl
curl --location --request GET 'https://{domain}/{tenantPath}/{appPath}/api/v1/devices/{deviceId}/data-objects/values/latest' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access-token}'
Example Response
{
"deviceId": "cc827f50f406",
"time": "2026-06-13T19:27:21.9064265Z",
"dataObjects": {
"hwinfo_motherboard": "",
"gpio_isSupported": false,
"disk_root_total": 129826357248,
"disk_root_available": 61717356544,
"disk_root_used": 68109000704,
"disk_root_usage_percent": 52.46,
"cpu_load_5m": 1.53,
"cpu_load_15m": 0.95,
"memory_total": 33417658368,
"memory_available": 29506846720,
"memory_used": 3910811648,
"memory_cached": 13590900736
},
"dataTypes": [
"string",
"boolean",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double",
"double"
]
}

Key parameters:

  • deviceId: The target device ID for telemetry query.
  • time: The timestamp of the latest telemetry snapshot.
  • dataObjects: The latest measurement values returned by the device.

Other APIs in the 3-Telemetry collection:

Note (Data Points Historical Get):

To change the query time range, open the Scripts tab and set startTime and endTime. Both values use URL-encoded ISO 8601 datetime strings (for example, 2026-03-24T06%3A41%3A04.231Z), not milliseconds.

Default script behavior:

  • startTime: current time minus 1 hour
  • endTime: current time plus 1 minute

Appendix: Register by Local Credential File

Use this method when you need offline deployments or pre-provisioned devices.

  1. Get Local Credential File: Download the credential file (.bin) for the device.
  2. Place the downloaded credential file on the Edge device, or confirm the exact file path before setup.
  3. In WEDA Node Activator, select "Use Local Credential File" and press Enter.
  4. At previous Step 3 (Credential Source), select the authentication method and choose Local Credentials Setup for this scenario:
MethodFileUse When
Auto ProvisionN/AMass deployment - auto provisions many devices
Local Credentials SetupDevice Credential (.bin)Single device with a downloaded credential file
  1. In WEDA Node Activator file picker, select the credential file (.bin) and press Enter.
  2. Verify registration is successful on Edge and Cloud sides (for example, service is connected on Edge and device status becomes Activated on Cloud).

Expected result: WEDA Node is successfully registered and connected using the local credential file.


Next Step

Congratulations! You have successfully onboarded your edge device to the WEDA framework by connecting WEDA Node with WEDA Core, and verified data telemetry. Continue to the next chapter to deploy AI Containers.


Last updated on Jul-17, 2026 | Version 1.1.0