diff --git a/contrib/etc_default/osmo-remsim-client-0 b/contrib/etc_default/osmo-remsim-client-0 index 8b70721..11f02ad 100644 --- a/contrib/etc_default/osmo-remsim-client-0 +++ b/contrib/etc_default/osmo-remsim-client-0 @@ -4,3 +4,4 @@ REMSIM_I="0" REMSIM_H="2-1.1" REMSIM_c="0" +REMSIM_n="0" diff --git a/contrib/etc_default/osmo-remsim-client-1 b/contrib/etc_default/osmo-remsim-client-1 index 519dcb4..99d1da8 100644 --- a/contrib/etc_default/osmo-remsim-client-1 +++ b/contrib/etc_default/osmo-remsim-client-1 @@ -4,3 +4,4 @@ REMSIM_I="1" REMSIM_H="2-1.1" REMSIM_c="0" +REMSIM_n="1" diff --git a/contrib/etc_default/osmo-remsim-client-2 b/contrib/etc_default/osmo-remsim-client-2 index 3f66289..c705df0 100644 --- a/contrib/etc_default/osmo-remsim-client-2 +++ b/contrib/etc_default/osmo-remsim-client-2 @@ -4,3 +4,4 @@ REMSIM_I="0" REMSIM_H="2-1.4" REMSIM_c="0" +REMSIM_n="2" diff --git a/contrib/etc_default/osmo-remsim-client-3 b/contrib/etc_default/osmo-remsim-client-3 index 149af2b..da48eaa 100644 --- a/contrib/etc_default/osmo-remsim-client-3 +++ b/contrib/etc_default/osmo-remsim-client-3 @@ -4,3 +4,4 @@ REMSIM_I="1" REMSIM_H="2-1.4" REMSIM_c="0" +REMSIM_n="3" diff --git a/contrib/systemd/osmo-remsim-client@.service b/contrib/systemd/osmo-remsim-client@.service index 738ae4a..130f289 100644 --- a/contrib/systemd/osmo-remsim-client@.service +++ b/contrib/systemd/osmo-remsim-client@.service @@ -6,7 +6,7 @@ Type=simple Restart=always EnvironmentFile=/etc/default/osmo-remsim-client EnvironmentFile=/etc/default/osmo-remsim-client-%i -ExecStart=/usr/bin/osmo-remsim-client-st2 $GLOBAL_CLIENT_OPTS -I $REMSIM_I -H $REMSIM_H -c $REMSIM_c +ExecStart=/usr/bin/osmo-remsim-client-st2 $GLOBAL_CLIENT_OPTS -I $REMSIM_I -H $REMSIM_H -c $REMSIM_c -n $REMSIM_n RestartSec=2 [Install] diff --git a/doc/manuals/chapters/remsim-bankd.adoc b/doc/manuals/chapters/remsim-bankd.adoc index be9b2c0..d35056b 100644 --- a/doc/manuals/chapters/remsim-bankd.adoc +++ b/doc/manuals/chapters/remsim-bankd.adoc @@ -85,6 +85,16 @@ approach seems to make more sense. Specify the local TCP port to whicc the socket for incoming connections from `osmo-remsim-client`s is bound to. +==== Examples +.remsim-server is on 10.2.3.4, cardreader has 5 slots: +---- +osmo-remsim-bankd -i 10.2.3.4 -n 5 +---- +.remsim-server is on 10.2.3.4, cardreader has 4 slots, local ip is 10.5.4.3 +---- +osmo-remsim-bankd -i 10.2.3.4 -n 4 -I 10.5.4.3 +---- + === Logging `osmo-remsim-bankd` currently logs to stdout only, and the logging diff --git a/doc/manuals/chapters/remsim-client.adoc b/doc/manuals/chapters/remsim-client.adoc index 0526dbb..8f90a1a 100644 --- a/doc/manuals/chapters/remsim-client.adoc +++ b/doc/manuals/chapters/remsim-client.adoc @@ -83,6 +83,15 @@ osmo-remsim-client-st2 currently has the following command-line options: and will later be overridden by the ATR as specified by `osmo-remsim-bankd` once a card has been mapped to this client. +==== Examples +.remsim-server is on 10.2.3.4, sysmoQMOD on usb bus, all 4 modems: +---- +osmo-remsim-client-st2 -s 10.2.3.4 -V 1d50 -P 4004 -C 1 -I 0 -H 2-1.1 -c 0 -n 0 +osmo-remsim-client-st2 -s 10.2.3.4 -V 1d50 -P 4004 -C 1 -I 1 -H 2-1.1 -c 0 -n 1 +osmo-remsim-client-st2 -s 10.2.3.4 -V 1d50 -P 4004 -C 1 -I 0 -H 2-1.4 -c 0 -n 2 +osmo-remsim-client-st2 -s 10.2.3.4 -V 1d50 -P 4004 -C 1 -I 1 -H 2-1.4 -c 0 -n 3 +---- + === Logging `osmo-remsim-client` currently logs to stdout only, and the logging