Updated Setting up modem client under Linux (markdown)

master
sh123 2021-10-23 21:35:13 +03:00
rodzic fc98c3d12e
commit 5cc661b69a
1 zmienionych plików z 13 dodań i 12 usunięć

@ -1,18 +1,19 @@
It is possible to use modem **in client mode** with other generic Linux AX25/APRS tools on PC or Raspberry, such as [Xastir](https://xastir.org/index.php/Main_Page), use next procedure to set it up:
- AX25 howto: http://tldp.org/HOWTO/AX25-HOWTO/
- Install required tools: ```sudo apt-get install ax25-tools ax25-apps xastir bluez bluez-tools```
- Run bluetoothctl and pair with the modem:
```
# bluetoothctl
[bluetooth]# agent on
[bluetooth]# default-agent
[NEW] Device 01:02:03:04:05:06 loraprs
[bluetooth]# pair 01:02:03:04:05:06
Attempting to pair with 01:02:03:04:05:06
Pairing successful
[bluetooth]# exit
```
- Run `rfcomm` to setup serial over Bluetooth at `/dev/rfcomm0`: `sudo rfcomm bind 0 01:02:03:04:05:06`
- If you are using Bluetooth mode:
- Run bluetoothctl and pair with the modem:
```
# bluetoothctl
[bluetooth]# agent on
[bluetooth]# default-agent
[NEW] Device 01:02:03:04:05:06 loraprs
[bluetooth]# pair 01:02:03:04:05:06
Attempting to pair with 01:02:03:04:05:06
Pairing successful
[bluetooth]# exit
```
- Run `rfcomm` to setup serial over Bluetooth at `/dev/rfcomm0`: `sudo rfcomm bind 0 01:02:03:04:05:06`
- At this stage you can already start using `xastir` or any other application, which can operate over KISS Serial TNC
- You can setup `AX25` network interface with `sudo kissattach /dev/rfcomm0 ax25` command, but previously need to update `/etc/ax25/axports` with new line as `ax25 CALLSIGN-10 9600 255 1 comment`, you can also specify IP address if there is a need to run TCP/IP over AX25
- Run `axlisten` to capture incoming and outgoing traffic as `sudo axlisten -a`