some more README updates
This commit is contained in:
parent
d1814f9a49
commit
1485b14c7d
55
README.md
55
README.md
@ -231,18 +231,19 @@ A serial console session is up permanently in a `tmux` session
|
|||||||
|
|
||||||
### Serial console
|
### Serial console
|
||||||
|
|
||||||
You can check whether the sessions exist with `tmux ls`
|
You can check whether the sessions exist with `tmux ls`.
|
||||||
|
This is the command to connect to the serial interface of the FM using the
|
||||||
|
RS422 interface of the flight preparation panel:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
tmux a -t q7s-serial
|
tmux a -t q7s-fm-fpp
|
||||||
```
|
```
|
||||||
|
|
||||||
If the session does not exist, you can create it like this
|
If the session does not exist, you can create it like this
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
tmux new -s q7s-serial
|
tmux new -s q7s-fm-fpp -t /bin/bash
|
||||||
/bin/bash
|
launch-q7s-fpp
|
||||||
q7s_serial
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Other useful tmux commands:
|
Other useful tmux commands:
|
||||||
@ -265,46 +266,22 @@ You can use the following command to connect to the Q7S with `ssh`:
|
|||||||
q7s-fm-ssh
|
q7s-fm-ssh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Port forwarding for connection to TCF agent
|
|
||||||
|
|
||||||
This is a required step to connect to the `tcf-agent` on the Q7S, which is required for convenient
|
|
||||||
remote debugging. Assuming the IPv6
|
|
||||||
|
|
||||||
```sh
|
|
||||||
ssh -L 1534:192.168.133.10:1534 eive@2001:7c0:2018:1099:babe:0:e1fe:f1a5 -t /bin/bash
|
|
||||||
```
|
|
||||||
|
|
||||||
You then need to connect to `localhost` with port `1534`.
|
|
||||||
|
|
||||||
## Port forwarding for file transfers with `scp`
|
|
||||||
|
|
||||||
```sh
|
|
||||||
ssh -L 1535:192.168.133.10:22 eive@2001:7c0:2018:1099:babe:0:e1fe:f1a5 -t /bin/bash
|
|
||||||
```
|
|
||||||
|
|
||||||
You then need to run `scp` with the `-P 1535` flag with `localhost` as the target IP address.
|
|
||||||
|
|
||||||
## Port forwarding for TMTC commanding
|
|
||||||
|
|
||||||
You can enable port forwarding for TMTC commanding with the following command:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
ssh -L 1536:192.168.133.10:7301 eive@2001:7c0:2018:1099:babe:0:e1fe:f1a5 -t /bin/bash
|
|
||||||
```
|
|
||||||
|
|
||||||
This forwards TMTC packets on port `1536` of localhost to the TMTC reception port of the Q7S.
|
|
||||||
|
|
||||||
## Set up all port forwarding at once
|
## Set up all port forwarding at once
|
||||||
|
|
||||||
|
Port forwarding is necessary for remote-debugging using the `tcf-agent`, copying files
|
||||||
|
with `scp` & `q7s-cp.py` and sending TMTC commands.
|
||||||
You can specify the `-L` option multiple times to set up all port forwarding at once.
|
You can specify the `-L` option multiple times to set up all port forwarding at once.
|
||||||
Example for using the UDP communication interface:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh -L 1534:192.168.133.10:1534 \
|
ssh -L 1534:192.168.155.55:1534 \
|
||||||
-L 1535:192.168.133.10:22 \
|
-L 1535:192.168.155.55:22 \
|
||||||
-L 1536:192.168.133.10:7301 \
|
-L 1536:192.168.155.55:7301 \
|
||||||
|
-L 1537:127.0.0.1:7100 \
|
||||||
|
-L 1538:192.168.133.10:1534 \
|
||||||
|
-L 1539:192.168.133.10:22 \
|
||||||
|
-L 1540:192.168.133.10:7301 \
|
||||||
eive@2001:7c0:2018:1099:babe:0:e1fe:f1a5 \
|
eive@2001:7c0:2018:1099:babe:0:e1fe:f1a5 \
|
||||||
-t 'export CONSOLE_PREFIX="[Q7S Tunnel] /bin/bash'
|
-t 'CONSOLE_PREFIX="[Q7S Tunnel]" /bin/bash'
|
||||||
```
|
```
|
||||||
|
|
||||||
There is also a shell script called `q7s-port.sh` which can be used to achieve the same.
|
There is also a shell script called `q7s-port.sh` which can be used to achieve the same.
|
||||||
|
Loading…
Reference in New Issue
Block a user