usage.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2016 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
  2. // Use of this source code is governed by the MIT-license that can be
  3. // found in the LICENSE file.
  4. package main
  5. var (
  6. UsageConnect = `'alias' or 'transport://[host][/digi]/targetcall[?params...]'
  7. transport:
  8. winmor: WINMOR TNC
  9. ardop: ARDOP TNC
  10. ax25: AX.25 (Linux only)
  11. telnet: TCP/IP
  12. serial-tnc: Serial AX.25 TNC
  13. pactor: SCS PTC modems
  14. host:
  15. Used to address the host interface (TNC/modem), _not_ to be confused with the connection PATH.
  16. Format: [user[:pass]@]host[:port]
  17. telnet: [user:pass]@host:port
  18. ax25: (optional) host=axport
  19. pactor: (optional) serial device (e.g. COM1 or /dev/ttyUSB0)
  20. path:
  21. The last element of the path is the target station's callsign. If the path has
  22. multiple hops (e.g. AX.25), they are separated by '/'.
  23. params:
  24. ?freq= Sets QSY frequency (winmor, ardop and ax25 only)
  25. ?host= Overrides the host part of the path. Useful for serial-tnc to specify e.g. /dev/ttyS0.
  26. `
  27. ExampleConnect = `
  28. connect telnet (alias) Connect to one of the Winlink Common Message Servers via tcp.
  29. connect ax25:///LA1B-10 Connect to the RMS Gateway LA1B-10 using Linux AX.25 on the default axport.
  30. connect ax25://tmd710/LA1B-10 Connect to the RMS Gateway LA1B-10 using Linux AX.25 on axport 'tmd710'.
  31. connect ax25:///LA1B/LA5NTA Peer-to-peer connection with LA5NTA via LA1B digipeater.
  32. connect winmor:///LA3F Connect to the RMS HF Gateway LA3F using WINMOR TNC on default tcp address and port.
  33. connect winmor:///LA3F?freq=5350 Same as above, but set dial frequency of the radio using rigcontrol.
  34. connect ardop:///LA3F Connect to the RMS HF Gateway LA3F using ARDOP on the default tcp address and port.
  35. connect ardop:///LA3F?freq=5350 Same as above, but set dial frequency of the radio using rigcontrol.
  36. connect serial-tnc:///LA1B-10 Connect to the RMS Gateway LA1B-10 over a AX.25 serial TNC on the default serial port.
  37. connect pactor:///LA3F Connect to RMS HF Gateway LA3F using PACTOR.
  38. `
  39. )
  40. var (
  41. ExamplePosition = `
  42. position -c "QRV 145.500MHz" Send position and comment with coordinates retrieved from GPSd.
  43. position --latlon 59.123,005.123 Send position 59.123N 005.123E.
  44. position --latlon 40.704,-73.945 Send position 40.704N 073.945W.
  45. position --latlon -10.123,-60.123 Send position 10.123S 060.123W.
  46. `
  47. )