Cedar Rapids AX25

From Planet CR Wiki
Revision as of 17:16, 7 January 2019 by 10.0.8.207 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
KC0AKY (#CIDSW) Coverage Map
Connecting to KC0AKY-0 BBS
DNS Lookup made over 1200 AFSK

Frequency Use

1200bps AFSK @ 145.050 MHz - Cedar Rapids AX.25 Testing

145.050 MHz 24x7 Stations
Proto Callsign SSID Location Power Height Description
AX.25 KC0AKY 0 EN42dw 5w 15' HAAT FBB Based BBS
AX.25 KC0AKY 1 EN42dw 5w 15' HAAT ax25-node for relay connections
AX.25 KC0AKY 1 EN42dw 5w 15' HAAT TCP/IP (44.50.192.129/29)

145.050 MHz TCP/IP Settings Cedar Rapids

CIDR Network Name: 44.50.192.128/29

Usable Host Range: 44.50.192.129-44.50.192.134

Broadcast IP: 44.50.192.135

DNS1: 44.50.192.129

Cedar Rapids Subnet Network Assignment
IP Address Callsign Location Services Available
44.50.192.129 KC0AKY-1 Cedar Rapids SW dns (udp/53), www (tcp/80), ftp (tcp/21), irc (tcp/6669)
44.50.192.130 KC0AKY-2 Portable / Backpack

Installing AX.25 + TCP/IP On Raspberry Pi

  1. Install Raspbian Desktop (not Lite) to SD Card
  2. Enable SSH flag
    1. Create file ssh on SD card boot
  3. Connect and finish Raspberry Pi setup
    1. SSH u: pi p: raspberry
    2. Run the following commands:
      1. passwd
      2. sudo raspi-config
        1. Localization Options
          1. Change Locale
            1. Uncheck en_GB.UTF-8
            2. Check en_US.UTF-8
            3. Default locale en_US.UTF    
    3. Reboot
      1. sudo raspi-config
        1. Localization Options
          1. Change Keyboard Layout
  4. Disable avahi discovery
    1. service avahi-daemon stop
    2. apt-get remove avahi-daemon
    3. apt-get autoremove
  5. Install AX.25 necessary programs
    1. sudo apt-get install libax25 ax25-apps ax25mail-utils ax25-tools ax25-xtools ax25-node telnet
  6. If soundmodem is needed then
    1. sudo apt-get install soundmodem
  7. If soundmodem is needed then connect USB sound card and RS232 dongle
    1. cat /proc/asound/cards
    2. ls -al /dev/ttyUSB*
  8. If soundmodem is needed configure /etc/ax25/soundmodem.conf  (make sure to adjust the bolded settings based on responses from previous command)
    1. <?xml version="1.0"?>

      <modem>

      <configuration name="ax25">

      <chaccess txdelay="150" slottime="100" ppersist="40" fulldup="0" txtail="10"/>

      <audio type="alsa" device="plughw:1,0" halfdup="1" capturechannelmode="Mono"/>

      <ptt file="/dev/ttyUSB0" hamlib_model="" hamlib_params="serial_speed=4800,rts_state=OFF,dtr_state=OFF"/>

      <channel name="Channel 0">

      <mod mode="afsk" bps="1200" f0="1200" f1="2200" diffenc="1" inv="8" fec="3" tunelen="32" synclen="32" filter ="hamming"/>

      <demod mode="afsk" bps="1200" f0="1200" f1="2200" diffdec="1" inlv="8" fec="3" mintune="16" minsync="16" filter="hamming"/>

      <pkt mode="KISS" ifname="sm0" hwaddr="" ip="10.0.0.1" netmask="255.255.255.0" broadcast="10.0.0.255" file="/dev/soundmodem0" unlink="1"/>

      </channel>

      </configuration>

      </modem>

  9. Configure /etc/ax25/axports

    1. 1    KC0AKY-1        4800    255    2       145.050 MHz (1200 bps)

  10. Configure /etc/ax25/nrports

    1. netrom    KC0AKY-1 #CIDSW0        235     145.050 MHz (1200 bps)

  11. Configure /etc/ax25/nrbroadcast
    1       5       192    100     0
  12. Configure /etc/ax25/ax25d.conf

    1. [KC0AKY-1 VIA 1]

      NOCALL   * * * * * *  L

      default  * * * * * *  - root  /usr/sbin/ax25-node ax25-node

      <netrom>

      NOCALL   * * * * * *  L

      default  * * * * * *  - root /usr/sbin/ax25-node ax25-node

  13. Start soundmodem
    1. soundmodem -s -M  &
  14. Kissattach
    1. modprobe kiss
    2. modprobe netrom
    3. kissattach /dev/soundmodem0 1 <yourIPaddress> -m 256
    4. kissparms -p 1 -t 150 -s 100 -r 40
  15. Set MSS & Window
    1. iptables -t mangle -A POSTROUTING -o ax0 -p tcp --tcp-flags SYN,RST SYN  -j TCPMSS --set-mss 216
  16. Start on bootup /etc/rc.local

    1. /sbin/modprobe ax25

      /sbin/modprobe netrom

      /usr/sbin/soundmodem -s -M &

      /bin/sleep 5

      /usr/sbin/kissattach /dev/soundmodem0 1 <yourIPaddress> -m 256

      /usr/sbin/kissparms -p 1 -t 150 -s 100 -r 40

      /usr/sbin/nrattach netrom

      /sbin/iptables -t mangle -A POSTROUTING -o ax0 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 216

      /usr/sbin/netromd

      /usr/sbin/ax25d