-
Notifications
You must be signed in to change notification settings - Fork 40
Setting up modem client under Linux
sh123 edited this page Oct 15, 2021
·
3 revisions
It is possible to use modem in client mode with other generic Linux AX25/APRS tools on PC or Raspberry, such as Xastir, 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
rfcommto 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
xastiror any other application, which can operate over KISS Serial TNC - You can setup
AX25network interface withsudo kissattach /dev/rfcomm0 ax25command, but previously need to update/etc/ax25/axportswith new line asax25 CALLSIGN-10 9600 255 1 comment, you can also specify IP address if there is a need to run TCP/IP over AX25 - Run
axlistento capture incoming and outgoing traffic assudo axlisten -a - Use
beaconutility to send custom packet as# sudo beacon -s -c NOCALL-7 -d "BEACON WIDE3-3" ax25 "beacon over lora" # sudo beacon -s -c NOCALL-7 -d "CQ WIDE1-1 WIDE2-1" ax25 "anyone on lora?" # sudo beacon -s -c NOCALL-7 -d "APZMDM WIDE1-1" ax25 "!0000.00N/00000.00E#test position report" - Connect to another client as
sudo axcall -s NOCALL-1 ax25 NOCALL-10