Skip to main content

Connectors

The Edge connector is a small Windows service (EdgeConnector) on a computer in a site's network. It reaches the access controllers there and connects out to Edge over HTTPS and a WebSocket, so the site needs no inbound ports and no VPN.

The connector:

  • applies each controller's configuration that Edge sends, and reports what the controller holds;
  • reads every controller's events about once a second into a durable queue on its disk and uploads them in order, so events survive restarts and Internet outages and arrive exactly once;
  • opens doors on request, finds controllers and tests connections;
  • reports each controller's state (online, door open or closed, locked or unlocked) at least once a minute. TrackBase002 controllers do not report door open or locked states yet;
  • updates itself when Edge offers a newer version (Updates).

Installing and removing connectors needs the Tenant admin role.

Requirements​

  • Windows 10/11 or Windows Server, 64-bit, always on (a small server or a mini PC). The computer does not have to be joined to a domain.
  • Outbound HTTPS (TCP 443) to hub.entrosity.com. Nothing inbound.
  • To TCP/IP controllers: their TCP port. For an RS-485 bus: the serial port, or a Modbus TCP gateway.
  • One connector per site network is usual; it drives every controller it can reach. A computer that enrolls again (same name and domain, same tenant) replaces its earlier registration: the old key stops working. Unless the connector still holds its old credentials, that needs a tenant admin's approval (Re-enrollment requests).

Install a connector​

Create an enrollment token​

  1. Open Settings → Connectors and choose Install a connector.

  2. Fill in:

    FieldMeaning
    LabelYour name for the token, e.g. Head office server (at most 200 characters).
    SiteThe site the connector's controllers belong to, or No site.
    Maximum usesHow many installations may enroll with it: 1–100000 (required). Default 1.
    Expires after (days)Required: 1–90. Default 7.
  3. Choose Create token. The dialog shows the Token and two ready commands. Copy the token now: it is shown only once.

The dialog also links to the connector installer, edge-connector.msi (Download the connector installer); if the link is missing, contact Entrosity support. Once installed, the connector keeps itself up to date (Updates).

Install on Windows​

Run the command under Windows: install the MSI (elevated prompt) in an elevated command prompt, in the folder that contains the MSI:

msiexec /i edge-connector.msi /qn ENROLLMENT_TOKEN=<token> SERVER_URL=https://hub.entrosity.com/edge

The MSI:

  1. installs edge-connector.exe to %ProgramFiles%\Entrosity Edge Connector\;
  2. enrolls the computer with the token (as SYSTEM). A failed enrollment rolls the installation back;
  3. installs and starts the Windows service EdgeConnector (display name Entrosity Edge Connector, LocalSystem, automatic start), set to restart 30 seconds after each failure.

The connector appears in Settings → Connectors as Online within a minute.

/qn hides installer errors. To troubleshoot, add /l*v C:\edge-connector-install.log and look for Return value 3. The verbose log contains the enrollment token: delete it afterwards.

Enroll from the command line​

The second command, under Already installed, or a trial run: enroll from the command line, enrolls an installed connector (for example one installed without the properties):

"C:\Program Files\Entrosity Edge Connector\edge-connector.exe" enroll --server https://hub.entrosity.com/edge --token <token>

A service that starts without being enrolled waits and checks every ten seconds, so it picks up the enrollment on its own. To enroll a computer again with a new token, add --force, then restart the service (sc stop EdgeConnector and sc start EdgeConnector). The address after --server must start with https://.

edge-connector status shows the enrollment and how many events are waiting for the server, and when the event queue is full.

The connector's event queue on disk holds at most 2,000,000 events or 1 GiB. When it is full, the connector stops reading controllers' event memory until the server has confirmed events: new records wait in the controller (32,000 events), nothing is dropped. Every controller then shows the error event spool full …, and edge-connector status says spool full. It empties once the connector reaches the server again.

Controller PINs​

TrackBase002 controllers only answer with their PIN. The PIN is set in Edge, per controller: in the Controller PIN field when you add the controller, or later on the controller's page (Controller PIN). Edge sends it to the connector with each job for that controller; the connector keeps it with the controller's configuration and never reports it back.

Without a PIN the controller shows Offline with the error the controller's PIN is not set: set it in Edge (the controller's page, Controller PIN), and its configuration fails with config_rejected. With a wrong PIN the controller does not answer: unreachable (check the controller's PIN).

note
trackbase.json is no longer read

Earlier connector versions read the PINs from trackbase.json in their data directory. The connector ignores that file now: set each controller's PIN in Edge. A file left on disk does no harm, and uninstalling still removes it.

Simulated controllers need no PIN.

The connector list​

Settings → Connectors lists each connector with its Name, the Computer it runs on, its Status (Online or Offline), the number of Controllers it drives, its Version, its Updates channel and when it was Last seen. While an update is on its way, the version shows Updating to X (offered …).

A connector is Online from the moment it connects until its connection drops (shown at once) or it has been silent for three minutes. It sends a heartbeat every minute.

Enrollment tokens​

Enrollment tokens lists the tokens with their Label, Status (Active, Exhausted, Expired or Revoked), Uses, when they Expire and who created them (Created by).

  • Revoke stops a token from enrolling more connectors. Connectors already enrolled with it keep working.
  • Revoked and expired tokens are deleted automatically 30 days later.

Tokens are secrets: anyone with a valid token can add a connector to your tenant. Keep Maximum uses at 1 and the expiry short.

Every token expires, at most 90 days after it is made, and is single-use unless you set Maximum uses higher. Tokens made before this rule that never expired now expire 30 days after the update that introduced it.

Re-enrollment requests​

A token alone no longer takes over a connector Edge already knows. When a computer that has a connector enrolls again without the connector's current credentials (the computer was reinstalled, or the connector's data folder was deleted), nothing changes: Edge keeps a re-enrollment request until a tenant admin approves or refuses it. A connector that still has its credentials (--force on a working connector, an upgrade) is re-enrolled at once. A computer whose connector was removed in Edge enrolls as a new connector, without a request.

Each request shows the connector it is for, the computer name and domain it reported, the IP address it came from, the connector version and when it was made.

  • Approve it when you expect this computer to enroll again. The connector, which asks again every few seconds, finishes enrolling, gets a new key and keeps its controllers. The token's use is counted only now.
  • Refuse it when you do not recognise the computer or the address. The enrollment fails with reenrollment_refused, and the connector stays as it was.
  • A request that nobody decides within 7 days expires (reenrollment_expired). Enroll again to make a new one.
  • A newer request for the same connector replaces the older one, but only after 10 minutes; until then it is refused (429 reenrollment_rate_limited), so nobody can keep replacing a request you are about to approve.
  • At most 10 requests per enrollment token and 30 per tenant are accepted in an hour (429 reenrollment_rate_limited beyond). Refuse requests you do not recognise, and revoke the token.
  • Requests are deleted 30 days after they were made.

Approve or refuse in the app​

Requests are on Settings → Connectors, above the connectors; an approved connector keeps its controllers. While requests wait, a Re-enrollments waiting for approval card sits at the top of the page, with one row per request: what it would take over, the computer name and domain the request came from, its IP address, the version and when it was made (hover for the exact time). The card appears as soon as a request is made, without reloading the page, and goes away when none is left. Only users with hardware:manage (tenant admins, global admins and custom roles with it) see the card.

  • Approve opens a confirmation that names the computer, its address and what it takes over; confirm only a reinstall you expect.
  • Refuse ends the request at once, without a confirmation.
  • A request that was decided elsewhere, replaced by a newer one or has expired says so (not_pending) and leaves the list.

Updates​

Connectors update themselves: Edge offers a newer version, and the connector installs it without anyone at the computer.

  • Channel: each connector follows an update channel, set by tenant admins in the Updates column of Settings → Connectors:

    ChannelGets
    Stable (the default)Tagged releases (vX.Y.Z) only.
    Beta (development builds)The newest of the beta and the stable releases: pre-releases (vX.Y.Z-suffix) and development builds as soon as they are published.
  • When: Edge offers the newest version of the channel when the connector connects and every 5 minutes after that, as long as it is newer than the connector's version. An offer is not repeated within an hour, and never while an earlier update is still pending. Version shows Updating to X (offered …) meanwhile.

  • How: the connector checks that the release is signed by Edge, downloads the installer and installs it a minute later. The service restarts on the new version; the controllers keep working meanwhile, and events wait in the queue. If the new version does not start, the connector reinstalls the version it ran before.

  • The outcome is written to the connector log (%ProgramData%\Entrosity Edge Connector\logs\connector.log) when the service starts again; the new Version shows in Settings → Connectors.

Connectors installed before self-update

Connectors from before self-update (they do not update, however long you wait) must be upgraded by hand once: run the current connector MSI on the computer, as below. From then on they update themselves.

Connector versions​

Global admins see which connectors lag behind on Administration → Connector versions (marked Beta):

  • Newest on Stable and Newest on Beta: the release connectors on each channel are updated to. The beta target can be a stable release when it is newer than every beta one.
  • Outdated connectors: the connectors of every tenant managed by Entrosity that run an older version than the newest release of their channel (N of M connectors), with the Tenant, Channel, Version (old → new) and Status.

Update now sends the connector the newest release of its channel at once, instead of waiting for the next offer, and ignores the one-hour pause after an offer that did not take. Nothing is queued: the button is disabled, with the reason under it, when the connector is Offline, Cannot update itself (upgrade it by hand once), already has an Update in progress, or when Self-update is off on the server. Each update sent this way is recorded in the tenant's audit log as connector.update.

Upgrade by hand and uninstall​

  • Upgrade by hand: run the MSI (no properties needed). Data stays in %ProgramData%\Entrosity Edge Connector, so the connector stays enrolled and keeps its controllers. An older MSI installs over a newer one too.
  • Uninstall: from Apps & features, or msiexec /x edge-connector.msi /qn. This removes the service, the credentials, the list of controllers (with their PINs), a trackbase.json left by older versions and the event queue; the logs are kept. Then Remove the connector in Edge (below).

Remove a connector​

Choose Remove on the connector's row and confirm. Its key stops working at once and it disconnects; its open jobs are cancelled. Uninstall it from the computer afterwards.

A connector that still drives controllers cannot be removed (connector_has_controllers): remove or move its controllers first.

When the connector is offline​

  • Controllers keep working: they decide every badge read with the configuration they hold.
  • Their state shows as Unknown in Edge, and remote door opening and discovery are refused (connector_offline).
  • Changes you make wait: each affected controller shows Pending, and the configuration is sent when the connector reconnects.
  • Events stay in the controller's memory (32,000 events) and, once read, in the connector's queue on disk; they are uploaded in order when the connection is back.

See Configuration sync and troubleshooting.

Troubleshooting installation​

SymptomCause and fix
The install rolls backEnrollment failed. Install again with /l*v <log> and read the enroll step: an invalid token (enrollment_token_invalid: mistyped, or not an Edge connector token), no uses left (enrollment_token_exhausted), expired or revoked (enrollment_token_expired), or no route to SERVER_URL. Create a new token.
Enrolled, but the connector stays OfflineCheck outbound HTTPS to hub.entrosity.com (proxy, firewall) and the log %ProgramData%\Entrosity Edge Connector\logs\connector.log.
It was removed in EdgeIts key no longer works (connector_unauthorized). Enroll again with a new token and --force, then restart the service.
enroll says already enrolledThe computer holds credentials. Use --force to enroll again.
enroll keeps waitingThe enrollment waits for approval (Re-enrollment requests).