Loading ...
Sorry, an error occurred while loading the content.

Map65 on Ubuntu, still a comms problem with Linrad

Expand Messages
  • jeff millar
    I managed to get Map65 r1002 running on my Ubuntu Hardy box after working through the compile problems. Still don t know if it works, but the displays pop up.
    Message 1 of 2 , Aug 19, 2008
    • 0 Attachment
      I managed to get Map65 r1002 running on my Ubuntu Hardy box after working through the compile
      problems. Still don't know if it works, but the displays pop up.

      Linrad and Map65 still don't communicate and I've tried several combinations
      - linrad.exe and Map65 on same WinXP with 127.0.0.1 unicast
      - Linrad and Map65 on same Ubuntu with 127.0.0.1 unicast
      - Linrad on Ubuntu, Map65 on WinXP with 239.255.0.0 multicast

      It's close to working but not yet. The symptoms with 127.0.0.1 unicast...
      - On WSJT startup, Rxnoise reports 0.0, "No Rx data"
      - Turn on data Tx on linrad
      - Map65's "Rx noise" climbs to 16-18 dB over about 10 seconds
      - "No Rx data" goes away for 1 sec and "0.0% dropped" shows
      - "No Rx data" reappears and stays red
      - Turn off linrad, RX noise sticks at previous value, does not drop to zero
      - Trrn on linrad, Rx noise changes a few tenths, "No Rx data" remains red

      Can someone suggest what the problem is? I can try test modifications to the code if that would help.

      jeff, wa1hco

      ===========================================================================
      Here's the patches from Map65 directory that got it running on Ubuntu Hardy. I did have to back off
      numpy to 1.0.4 as others have reported.

      Index: plrs.f90
      ===================================================================
      --- plrs.f90 (revision 1002)
      +++ plrs.f90 (working copy)
      @@ -55,11 +55,7 @@
      call setup_ssocket !Open a socket for multicasting

      do iter=1,iters
      -#ifdef CVF
      - open(10,file=fname,form='binary',status='old')
      -#else
      fd=open(fname,RMODE) !Open file for reading
      -#endif
      dmsec=-dtmspacket
      nsec0=sec_midn()

      @@ -73,15 +69,11 @@
      msec2=nint(tmsec)
      msec=nint(dmsec)

      -#ifdef CVF
      - read(10) buf8
      -#else
      nr=read(fd,buf8,NBPP)
      if(nr.ne.NBPP) then
      print*,'Error reading file all.tf2'
      go to 999
      endif
      -#endif
      nblock=nblock+1
      call send_pkt(center_freq)
      npkt=npkt+1
      @@ -102,11 +94,7 @@
      read(*,*) cjunk,pause,fast
      endif
      enddo
      -#ifdef CVF
      - close(10)
      -#else
      i=close(fd)
      -#endif
      enddo


      Index: rfile3a.f90
      ===================================================================
      --- rfile3a.f90 (revision 1002)
      +++ rfile3a.f90 (working copy)
      @@ -4,11 +4,7 @@
      character*(*) infile
      integer*1 ibuf(n)

      -#ifdef CVF
      - open(10,file=infile,form='binary',status='old',err=998)
      -#else
      open(10,file=infile,access='stream',status='old',err=998)
      -#endif
      read(10,end=998) ibuf
      ierr=0
      go to 999

      Index: portaudio-v19/src/hostapi/jack/pa_jack.c
      ===================================================================
      --- portaudio-v19/src/hostapi/jack/pa_jack.c (revision 1002)
      +++ portaudio-v19/src/hostapi/jack/pa_jack.c (working copy)
      @@ -1655,27 +1655,23 @@
      {
      for( i = 0; i < stream->num_incoming_connections; i++ )
      {
      - UNLESS( !jack_port_lock( stream->jack_client, stream->local_input_ports[i] ),
      - paUnanticipatedHostError );
      + // UNLESS( !jack_port_lock( stream->jack_client, stream->local_input_ports[i] ),
      paUnanticipatedHostError );
      if( jack_port_connected( stream->local_input_ports[i] ) )
      {
      UNLESS( !jack_port_disconnect( stream->jack_client, stream->local_input_ports[i] ),
      paUnanticipatedHostError );
      }
      - UNLESS( !jack_port_unlock( stream->jack_client, stream->local_input_ports[i] ),
      - paUnanticipatedHostError );
      + // UNLESS( !jack_port_unlock( stream->jack_client, stream->local_input_ports[i] ),
      paUnanticipatedHostError );
      }
      for( i = 0; i < stream->num_outgoing_connections; i++ )
      {
      - UNLESS( !jack_port_lock( stream->jack_client, stream->local_output_ports[i] ),
      - paUnanticipatedHostError );
      + // UNLESS( !jack_port_lock( stream->jack_client, stream->local_output_ports[i] ),
      paUnanticipatedHostError );
      if( jack_port_connected( stream->local_output_ports[i] ) )
      {
      UNLESS( !jack_port_disconnect( stream->jack_client, stream->local_output_ports[i] ),
      paUnanticipatedHostError );
      }
      - UNLESS( !jack_port_unlock( stream->jack_client, stream->local_output_ports[i] ),
      - paUnanticipatedHostError );
      + // UNLESS( !jack_port_unlock( stream->jack_client, stream->local_output_ports[i] ),
      paUnanticipatedHostError );
      }
      }

      Index: portaudio.h
      ===================================================================
      --- portaudio.h (revision 1002)
      +++ portaudio.h (working copy)
      @@ -1,4 +1,3 @@
      -
      #ifndef PORTAUDIO_H
      #define PORTAUDIO_H
      /*
      @@ -1113,10 +1112,11 @@
      The function may sleep longer than requested so don't rely on this for accurate
      musical timing.
      */
      +/*
      void Pa_Sleep( long msec );
      +*/


      -
      #ifdef __cplusplus
      }
      #endif /* __cplusplus */

      Index: Makefile.in
      ===================================================================
      --- Makefile.in (revision 1002)
      +++ Makefile.in (working copy)
      @@ -106,12 +106,18 @@
      decode_rs_int.o: decode_rs.c
      $(CC) $(CFLAGS) -c -DBIGSYM=1 -o decode_rs_int.o decode_rs.c

      -plrr: plrr.f90 sec_midn.F90 plrr_subs.c cutil.c
      - $(FC) -o plrr plrr.f90 sec_midn.F90 plrr_subs.c cutil.c
      +cutil.o: cutil.c
      + $(CC) $(CFLAGS) -c -DBIGSYM=1 -o cutil.o cutil.c

      -plrs: plrs.f90 sec_midn.F90 plrs_subs.c cutil.c
      - $(FC) -o plrs plrs.f90 sec_midn.F90 plrs_subs.c cutil.c
      +plrs_subs.o: plrs_subs.c
      + $(CC) $(CFLAGS) -c -DBIGSYM=1 -o plrs_subs.o plrs_subs.c

      +plrr: plrr.f90 sec_midn.F90 plrr_subs.o cutil.o
      + $(FC) -o plrr -fno-second-underscore plrr.f90 sec_midn.F90 plrr_subs.o cutil.o
      +
      +plrs: plrs.f90 sec_midn.F90 plrs_subs.o cutil.o
      + $(FC) -o plrs -fno-second-underscore plrs.f90 sec_midn.F90 plrs_subs.o cutil.o
      +
      .PHONY : clean
      clean:
      ${RM} -f *.o *.pyc *.so *~ map65
    • Joe Taylor
      Jeff, Edson, and all, I ve read through your series of emails to wsjtgroup about getting WSJT and MAP65 to run on your Linux systems. It seems that you have
      Message 2 of 2 , Sep 3, 2008
      • 0 Attachment
        Jeff, Edson, and all,

        I've read through your series of emails to wsjtgroup about
        getting WSJT and MAP65 to run on your Linux systems. It
        seems that you have solved your own problems, which is good!

        A general word to all: I think the "wsjtgroup" reflector is
        best used for discussion about on-the-air use of WSJT and
        its sister programs WSPR and MAP65. The best place to go
        for advice on compiling these programs is the WSJT
        Developer's reflector, wsjt-devel@... .

        You can subscribe to this list at
        http://developer.berlios.de/projects/wsjt/ . Click on
        "Lists", under the bold heading "Project: WSJT - Summary".

        -- 73, Joe, K1JT

        WA1HCO wrote:

        > I managed to get Map65 r1002 running on my Ubuntu Hardy box after working through the compile
        > problems. Still don't know if it works, but the displays pop up.

        ...
      Your message has been successfully submitted and would be delivered to recipients shortly.