PCAN-Router Pro FD – User Manual
51
7.4.6
WebSocket Remote Control
Since version 1.1.0.11 the data logger firmware supports the PCAN-
Router Pro FD with Ethernet interface (IPEH-002222). The firmware
includes a WebSocket server implementation for remote controlling
the PCAN-Router Pro FD via Ethernet.
The WebSocket protocol provides a persistent, asynchronous com-
munication between a client and a server. In contrast to HTTP the
communication is bidirectional. A WebSocket server can send data
with and without the request of the client.
In order to establish a WebSocket connection with the PCAN-Router
Pro FD, a software with WebSocket support is required. WebSocket
APIs are available for all common programming languages. In
addition, WebSocket support can be added to modern browsers
using plug-ins. For example, the For connection, the IP address of the WebSocket server is called
with
ws://
. Adding the port number is not required, since the
standard port 80 is used.
Example: ws://192.168.144.150
After connecting, several commands requests can be transmitted
from client to PCAN-Router Pro FD. The request as well as the
response messages are in JSON format.
WebSocket can optionally differentiate whether different protocols
are transmitted. For remote controlling the PCAN-Router Pro FD, a
protocol with the name "json-signals" was defined. With this, it is
possible to implemented further protocols in the future.