🔗 Application Note · KS2 EdgeVector HTTPS REST JSON API · CAN 2.0A/2.0B · Dual RS-485

Bridging CAN Bus, Dual RS-485 Modbus RTU & Relays to Local Software via an HTTPS RESTful JSON API

Technical Summary: Software teams can read decoded CAN 2.0A/2.0B signals and RS-485 Modbus RTU registers, transmit bus frames and switch isolated relays using standard HTTPS JSON calls on the local network. A standalone Ethernet edge gateway eliminates OS-level USB/serial drivers, kernel SocketCAN dependencies and external cloud middleware.
▶ Watch Short Demo Video ➔ KS2 EdgeVector Specifications Evaluation Kit / OEM Quote

1. Eliminating Serial Drivers & Custom Firmware for On-Premise Software

Modern energy management systems, automated test benches, VMS platforms and industrial edge servers are typically written in high-level languages such as Python, C#, Go, Rust or Node.js, often running inside containerised or virtualised environments. Interfacing those applications directly with field hardware usually means juggling USB-to-RS-485 dongles, PCIe CAN cards, OS-specific kernel drivers, baud-rate timing issues and single-client serial port locks.

KS2 EdgeVector on the KS2-ESC Ethernet Smart Controller abstracts physical bus timing onto a dedicated Ethernet appliance. The controller continuously polls Modbus RTU devices and decodes CAN 2.0A/2.0B frames at the edge, exposing clean, scaled JSON payloads and authenticated command queueing over local TLS 1.2 HTTPS with zero internet or cloud requirement.

2. Local API & Hardware Interface Summary

Capability Technical Specification Software Integration Benefit
Transport & Security HTTPS RESTful JSON API over TLS 1.2 (port 443) with on-device certificate generation Works from any HTTP client, container or operating system on the LAN with encrypted transport
Authentication Device-hosted API key management with configurable expiry and scoped session tokens Secures on-premise machine control without relying on external identity servers or cloud brokers
CAN Bus 2.0A / 2.0B 10 kbps to 1 Mbps, Listen-Only & active modes, browser .dbc signal decoding and frame transmit Application reads engineering units in JSON and writes parameter setpoints or raw CAN frames
Dual RS-485 / Modbus 2× independent half-duplex RS-485 channels (2400 to 115200 bps, selectable 120 Ω termination) Polls scaled Int/UInt/Float32 registers automatically and dispatches queued Modbus RTU or raw serial commands
Relay & Camera Control 2× isolated solid-state relays (max 60 V / 500 mA low-power control outputs) + optional ONVIF camera OSD/PTZ control Unified JSON interface to drive external isolated industrial relays, PLC interlocks and visual camera status alongside fieldbus data

Safe installation note: onboard solid-state relay outputs provide low-power control signalling (max 60 V / 500 mA) and should be connected to external isolated industrial relays rated for the target voltage and inrush current when switching field power loads.

3. Typical Software Integration Workflow

Step 1 · Commission Network & Bus Profiles

Connect the KS2-ESC to your local control VLAN (DHCP or static IP), configure RS-485 baud rates or CAN bit timing in the built-in web console, and load any .dbc or Modbus register definitions.

Step 2 · Issue a Scoped Local API Key

Generate an API key with an optional expiry window directly on the controller's local webpage, then verify connectivity from Bruno, Postman, curl or your application service.

Step 3 · Poll Decoded JSON Telemetry

Query the local HTTPS endpoints to retrieve scaled Modbus registers, decoded CAN signals, relay states and device health diagnostics in structured JSON without managing bus polling loops in your app.

Step 4 · Dispatch Queued Write Commands

Send authenticated JSON requests to update equipment setpoints over CAN or Modbus RTU (with optional reply capture) and switch isolated relays, with safe multi-client command queueing handled by the controller.

4. Representative On-Premise Applications

  • Battery Energy Storage (BESS) & Power Skids: Expose BMS CAN bus telemetry, inverter Modbus RTU registers and auxiliary control signalling (driving external isolated industrial relays) to local site controllers or EMS servers over clean HTTPS JSON.
  • Containerised Edge Servers & Virtual Machines: Give Docker, Kubernetes or Hyper-V workloads predictable low-latency network access to RS-485 and CAN hardware without USB pass-through fragility.
  • Automated Hardware-in-the-Loop (HIL) & Production Test Rigs: Drive relays, inject CAN/RS-485 commands and verify DUT telemetry from Python or C# test runners using standard REST assertions.

Evaluate KS2 EdgeVector with Your Software Stack

Watch our short bench video showing live CAN bus telemetry decoding and API parameter writes, or request an evaluation kit or OEM quote for your software stack.

Request Quote or Evaluation Kit ➔ ▶ Watch Short Demo Video Speak to Engineering