Giter Site home page Giter Site logo

ygate's Introduction

ygate - Yaesu igate

(C)2022 Craig Lamparter \ \ \ \ \ \ General Public License v2

This software and a raspberry pi will turn your Yaesu radio (FTM-100,FTM-400) into a receive-only APRS igate. All APRS packet traffic your radio hears will

Connect your Yaesu amateur radio with APRS to a Raspberry Pi (or PC) with the Yaesu-supplied USB cable. Set the radio to output "packet" data in "nmea9" format at "9600" bps over the com/serial port. This script will login to an aprsis server, and relay the packet data after reformatting the reduculous output from the radio into real APRS packet strings.

Be sure to set your callsign, password and position at the top of the script.

To do list:

  • translate yaesu output into aprs packets, upload to aprs-is servers
  • invalid callsign detection, currently filtered by aprs-is servers
  • convert telnet sandbox to socket(s)
  • lower latency
  • duplicate detection and suppression with timer
  • binary inspection, handle all encodings, utf-8 errors ignored for now
  • reconnect socket after server disconnets

Testing/QA:

  • Yaesu FTM-500
  • Yaesu FTM-400
  • Yaesu FTM-100
  • Yaesu FTM-300
  • Yaesu FT1DR (not possible, aprs data on com port incomplete)
  • Yaesu FT2DR "
  • Yaesu FT3DR "
  • Yaesu FT5DR "

Install

Download ygate.py to your system, Raspberry Pi OS Buster, or any Linux system with Python3.

wget https://raw.githubusercontent.com/craigerl/ygate/master/ygate.py

Make the file executable, run the command:

chmod 755 ygate.py

Edit the top of the file (nano ygate.py), and modify these variables to match your station:

    USER = "KM6XXX-1"
    PASS = "00000"
    LAT  = "3819.70N"
    LONG = "12019.15W"
    SERIAL_PORT = 'COM9'

Your APRS password may be generated here: https://apps.magicbug.co.uk/passcode/

The latitude/longitude fields have their decimal point shifted two places to the right.

For example:

    38 degrees and 22.56 minutes North
    120 degrees and 19.15 minutes West

becomes:

    LAT  = "3822.56N"
    LONG = "12019.15W"

If you see errors like missing modules, or "not defined", you might need additional python libraries. For example, if you see serial errors, make sure pyserial is installed. "sudo pip3 install pyserial"

Configure Radio

Hold down the [DISP/Setup] button, and change the following values:

APRS Menu

Modem:     On

Data menu

Speed:     1200
Output:    Packet
WP Format: NMEA9

Connect the USB cable Yaesu provided in the box (USB to serial cable) to your computer/Pi. For a Pi, a USB adapter cable will be needed to fit the micro USB port.

Run ygate

./ygate.py

Example output

# aprsc 2.1.10-gd72a17c
# logresp KM6LYW-4 verified, server T2PR
W6SCR>APMI06,W6SCR-4*,qAR,KM6LYW-4:@241522z3942.75N/12147.10W/Butte SAR Headquarters 14.0volts
KS4FUN-12>3X0PRU,KM6ZTH-4*,WIDE2-1,qAR,KM6LYW-4:`2^=l!U+/'"4>}|(?%r'l|!wkO!|3
KB6EC-9>APDR10,K6CDF-8,ACARC-1,WIDE2*,qAR,KM6LYW-4:!3942.16N\12131.36WWKB6EC Location
>>> Internet packet not gated:  NC6J-1>APBPQ1,K6FGA-1,KM6ZTH-4*,qAR,KM6LYW-4:}W6TKD-9>SX3XUT,TCPIP,NC6J-1*:`1`/",^j/]"4x}=
>>> Internet packet not gated:  NC6J-1>APBPQ1,K6FGA-1,ACARC-1,WIDE2*,qAR,KM6LYW-4:}W6TKD-9>SX3XUT,TCPIP,NC6J-1*:`1`/",^j/]"4x}=
PLKPIN>APOT30,ALDER,ACARC-1,WIDE2*,qAR,KM6LYW-4:!3845.70N/12034.70W# 12.6V N6YBH Pollock Pines DIGI
KJ6DZB-3>APAVT5,ALDER,ACARC-1,WIDE2*,qAR,KM6LYW-4:=3849.70N/12002.21W>025/000/A=007453144.390MHz 4.12V  70.7F|S!).9%Q#N|
WA6MAT-1>APT310,W6SCR-5,ACARC-1,WIDE2*,qAR,KM6LYW-4:!4032.25N\12219.49WO174/000/A=000475/Matthew's Truck

Direwatch integration (tft display)

https://github.com/craigerl/direwatch

./ygate.py  > /tmp/output.txt &
./direwatch.py -o -s /tmp/screenshot.png -l /tmp/output.txt

Ygate with Direwatch

ygate's People

Contributors

craigerl avatar john-belstner avatar hessu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.