PSK31LX - PTT??

From: Hal MacArgle (xslv.rmukcl@holyfamily.edu)
Date: Wed Apr 18 2001 - 23:51:08 EEST

  • Next message: Luc Langehegermann: "Re: PSK31LX - PTT??"

    Sorry to bother the list but I've been trying to send the following
    to: hsmf.ahadbhfb@trust-managment.ltd.uk for several days - balking at the first routing
    site.. I heard he monitors this list so will try this way:
    ------------------------------------------------------------------------------

    Greetings OM: Years ago you sent me a routine to implement PTT on
    version 0.5 of Hansi's psk31lx program.. This worked fine so I wanted
    to do the same for version 0.61.. (I lost the original directions to
    implement doPTT.c that you sent and that I've attached to this msg
    FYI.)

    I tried using gcc -c to create doPTT.o and then added that to the
    OBJS line in the Makefile - but I don't know what I'm doing. HI.

    I've tried twpsk-1.1 but I don't want the GUI version on an old 486
    with amber monitor that I'll be using for PSK31.

    I note that version 7.X has PTT support, according to the Changes
    file, but I can't seem to find any version later than 0.61 on the Web
    or anywhere else. Hansi's site has the twpsk version of course..

    Sorry to bother you. Can you advise a solution so I can get back PTT
    via a serial port? Vy 73 de W8MCH,

          Hal - in Terra Alta, WV A M$ Free Environment
                   email: terhi.victor@logonet.com

    Content-Disposition: attachment; filename="doPTT.c"
    /*
     * doPTT.c - a quick routine to add push to talk to DL9RDZ's psk31
     * Ted Williams - WA0EIR
     */
    #include <stdio.h>
    #include <fcntl.h>
    #include <sys/ioctl.h>

    void doPTT (int state)
    {
       static int serfd;
       int arg = TIOCM_RTS;

       /* Open the serial port not already open */
       if (serfd == 0)
       {
          /* NOTE!!! If needed, change "/dev/ttyS1" on the */
          /* next line to the serial port device you will be using. */
          if ((serfd = open ("/dev/ttyS1", O_RDWR)) == -1)
          {
             perror ("Can't open serial port");
             exit (1);
          }
       }

       if (ioctl (serfd, state, &arg) == -1)
       {
          perror("RTS failed");
          exit (1);
       }
    }
    ..
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to hwnhvkw@clear.net.nz



    This archive was generated by hypermail 2b30 : Wed Apr 18 2001 - 23:54:56 EEST