diff --git a/README.md b/README.md index 025c206..61d1e03 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ This application allows the user to attach character devices of any Linux system Before you start the adapter there always needs to be a sil-kit-registry running already. Start it e.g. like this: - ./path/to/SilKit-x.y.z-$platform/SilKit/bin/sil-kit-registry --listen-uri 'silkit://0.0.0.0:8501' + /path/to/SilKit-x.y.z-$platform/SilKit/bin/sil-kit-registry --listen-uri 'silkit://0.0.0.0:8501' It is also necessary that the involved character devices or GPIO chips exist before the ``sil-kit-adapter-generic-linux-io`` is started. diff --git a/adapter/README.md b/adapter/README.md index 6eef26f..8d0e900 100644 --- a/adapter/README.md +++ b/adapter/README.md @@ -42,21 +42,21 @@ Now is a good point to start the ``sil-kit-registry`` and the ``sil-kit-adapter- You should see the following output: ``` -[2024-02-01 14:34:23.824] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-02-01 14:34:23.825] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:37918' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) -[2024-02-01 14:34:23.827] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:37918' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 ... -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo1 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage15 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage32 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Value -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Dir -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line0 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line1 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line4 -[2024-02-01 14:34:23.855] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip1Line1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage15 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage32 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Value +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Dir +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line0 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line4 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip1Line1 ... Press CTRL + C to stop the process... ``` @@ -77,13 +77,13 @@ First you can start each demo in separte terminals: You should see the following output in the GLIO Adapter window: ``` -[2024-02-01 14:44:49.870] [SilKitAdapterGenericLinuxIO] [debug] New value received on toVoltage103 -[2024-02-01 14:44:49.870] [SilKitAdapterGenericLinuxIO] [debug] Updating ./adchips/adchip0/in_voltage103 -[2024-02-01 14:44:55.738] [SilKitAdapterGenericLinuxIO] [debug] New value received on toFifo2 -[2024-02-01 14:44:55.738] [SilKitAdapterGenericLinuxIO] [debug] Updating ./chardevs/fifo2 -[2024-02-01 14:44:55.738] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 -[2024-02-01 14:45:01.437] [SilKitAdapterGenericLinuxIO] [debug] New values received on topic: toGpiochip1Line2 -[2024-02-01 14:45:01.437] [SilKitAdapterGenericLinuxIO] [debug] Updating gpiochip1 line 2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New value received on toVoltage103 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating ./adchips/adchip0/in_voltage103 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New value received on toFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating ./chardevs/fifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New values received on topic: toGpiochip1Line2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating gpiochip1 line 2 ``` For running the forward demo with all Linux IOs connected, just repeat the manual steps (*cat* and *echo* commands) to observe and stimulate the values for each mode ([Advalues](../advalues/README.md#basic-forward-demo), [Chardev](../chardev/README.md#basic-forward-demo) and [GPIO](../gpio/README.md#basic-forward-demo)). diff --git a/advalues/README.md b/advalues/README.md index d3cd94e..12e6e81 100644 --- a/advalues/README.md +++ b/advalues/README.md @@ -54,15 +54,15 @@ Now is a good point to start the ``sil-kit-registry`` and the ``sil-kit-adapter- You should see the following output: ``` -[2024-01-31 14:48:53.138] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-01-31 14:48:53.139] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:55898' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) -[2024-01-31 14:48:53.141] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:55898' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 ... -[2024-01-31 14:48:53.144] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values -[2024-01-31 14:48:53.144] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage15 -[2024-01-31 14:48:53.144] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage32 -[2024-01-31 14:48:53.144] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Value -[2024-01-31 14:48:53.144] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Dir +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage15 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromVoltage32 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Value +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromPIN12Dir ... Press CTRL + C to stop the process... ``` @@ -94,8 +94,8 @@ You can start the forward device: You should see the following output: ``` Creating participant 'ForwardDevice' at silkit://localhost:850 -[2024-01-31 14:49:00.110] [ForwardDevice] [info] Creating participant 'ForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-01-31 14:49:00.111] [ForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:45286' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [ForwardDevice] [info] Creating participant 'ForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [ForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:45286' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) Press enter to stop the process... GLIO Adapter >> ForwardDevice: 3 ForwardDevice >> GLIO Adapter : 3 @@ -105,8 +105,8 @@ The GLIO Adapter published the initial values, it means ``3`` is the initial val On the GLIO Adapter terminal you should see two new lines: ``` -[2024-01-31 14:49:00.116] [SilKitAdapterGenericLinuxIO] [debug] New value received on toVoltage103 -[2024-01-31 14:49:00.116] [SilKitAdapterGenericLinuxIO] [debug] Updating ./adchips/adchip0/in_voltage103 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New value received on toVoltage103 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating ./adchips/adchip0/in_voltage103 ``` In your adchip0 folder you can see the updated value in ``in_voltage103``: diff --git a/chardev/README.md b/chardev/README.md index 43b3866..89bbcd7 100644 --- a/chardev/README.md +++ b/chardev/README.md @@ -41,13 +41,13 @@ Now is a good point to start the ``sil-kit-registry`` and the ``sil-kit-adapter- You should see the following output: ``` -[2024-02-01 10:07:19.208] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-02-01 10:07:19.216] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:34612' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) -[2024-02-01 10:07:19.229] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:34612' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 ... -[2024-02-01 10:07:19.260] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values -[2024-02-01 10:07:19.261] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo1 -[2024-02-01 10:07:19.261] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 ... Press CTRL + C to stop the process... ``` @@ -79,8 +79,8 @@ You can start the forward device: You should see the following output: ``` Creating participant 'ForwardDevice' at silkit://localhost:850 -[2024-01-31 14:49:00.110] [ForwardDevice] [info] Creating participant 'ForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-01-31 14:49:00.111] [ForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:45286' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [ForwardDevice] [info] Creating participant 'ForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [ForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:45286' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) Press enter to stop the process... GLIO Adapter >> ForwardDevice: message1 ForwardDevice >> GLIO Adapter : message1 @@ -90,9 +90,9 @@ The GLIO Adapter published the initial data, it means ``message1`` is the initia On the GLIO Adapter window you should see three new lines: ``` -[2024-02-01 10:17:59.853] [SilKitAdapterGenericLinuxIO] [debug] New value received on toFifo2 -[2024-02-01 10:17:59.853] [SilKitAdapterGenericLinuxIO] [debug] Updating ./chardevs/fifo2 -[2024-02-01 10:17:59.853] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New value received on toFifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating ./chardevs/fifo2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromFifo2 ``` In your chardevs folder you can see the updated value in ``fifo2``: diff --git a/gpio/README.md b/gpio/README.md index 0ec228e..9a28a9b 100644 --- a/gpio/README.md +++ b/gpio/README.md @@ -59,15 +59,15 @@ Now is a good point to start the ``sil-kit-registry`` and the ``sil-kit-adapter- You should see the following output: ``` -[2024-02-01 14:10:36.401] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-02-01 14:10:36.402] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:57824' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) -[2024-02-01 14:10:36.404] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant 'SilKitAdapterGenericLinuxIO' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [SilKitAdapterGenericLinuxIO] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:57824' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [SilKitAdapterGenericLinuxIO] [info] Creating participant SilKitAdapterGenericLinuxIO with registry silkit://localhost:8501 ... -[2024-02-01 14:10:36.409] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values -[2024-02-01 14:10:36.409] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line0 -[2024-02-01 14:10:36.409] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line1 -[2024-02-01 14:10:36.409] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line4 -[2024-02-01 14:10:36.409] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip1Line1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing and publishing initial values +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line0 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line1 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip0Line4 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Serializing data and publishing on topic: fromGpiochip1Line1 ... Press CTRL + C to stop the process... ``` @@ -100,8 +100,8 @@ You can start the forward device: You should see the following output: ``` Creating participant 'GpioForwardDevice' at silkit://localhost:8501 -[2024-02-01 14:17:16.368] [GpioForwardDevice] [info] Creating participant 'GpioForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 -[2024-02-01 14:17:16.370] [GpioForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:34144' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) +[date time] [GpioForwardDevice] [info] Creating participant 'GpioForwardDevice' at 'silkit://localhost:8501', SIL Kit version: 4.0.44 +[date time] [GpioForwardDevice] [info] Connected to registry at 'tcp://127.0.0.1:8501' via 'tcp://127.0.0.1:34144' (local:///tmp/SilKitRegic044495579071f55.silkit, silkit://localhost:8501) Press enter to stop the process... GLIO Adapter >> ForwardDevice: INPUT - LOW ForwardDevice >> GLIO Adapter : OUTPUT - LOW @@ -111,9 +111,9 @@ The GLIO Adapter published the initial value, it means ``LOW`` is the initial va On the GLIO Adapter window you should see new lines: ``` -[2024-02-01 14:18:39.187] [SilKitAdapterGenericLinuxIO] [debug] New values received on topic: toGpiochip1Line2 -[2024-02-01 14:18:39.187] [SilKitAdapterGenericLinuxIO] [debug] Deserializing data from topic: toGpiochip1Line2 -[2024-02-01 14:18:39.187] [SilKitAdapterGenericLinuxIO] [debug] Updating gpiochip1 line 2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] New values received on topic: toGpiochip1Line2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Deserializing data from topic: toGpiochip1Line2 +[date time] [SilKitAdapterGenericLinuxIO] [debug] Updating gpiochip1 line 2 ``` Using the file system, you can see and set the value of your GPIO chip lines. For ``gpiochip1 line 2``: