Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For reference, installed the GUI host on Windows 7 Home Professional.

Booting WebSocket Connection

The GUI host must signal to the LBR when it wishes to connect. This signal must trigger the LBR to connect to the GUI hosts's WebSocket server. We leverage the POSIX signal facility to accomplish this goal.

Remote GUILBR
 On startup, create a signal handler on SIGUSR1

At some later time...
On startup:

  1. start WebSocket server on port 8000
  2. run plink to forward port 8000 to LBR
  3. run 2nd plink to execute a remote command on LBR, which sends the signal
    pkill -SIGUSR1 -f "python openVisualizerCli"
 
 Signal received, and handler connects to WebSocket server
ws://<remoteip>:8000/lbr

The signal above assumes the LBR is in the form of the openVisualizerCli module, which probably is the simplest solution.

JSON Messages

JSON provides a convenient and widely accepted mechanism for implementation of the structured messages we must pass between LBR and GUI host. Messages include:

...