Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

WSJT

WSPR

WSJT WSPR

Weak signal ham radio communication

Brought to you by: bsomervi, chetfenn, dg2ycb, k1jt

Summary

Files

Reviews

Support

Mailing Lists

Git ▾

WSJT-X

WSPR

WSPR-X

WSJT

Echo

FMT

MAP65

MAP65IQ

WSJT-X Superbuild

More...

Old SVN

Menu ▾ ▴

Browse Commits

Fork

Merge Requests 0

Forks 1

Branches

master

Tags

wspr212

[40a5ff]: / wspr0_tx.f90  Maximize  Restore  History

Download this file

91 lines (84 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

subroutine wspr0_tx(nargs,ntr)

!  Read command-line arguments and generate Tx data for the MEPT_JT mode.

!  use dfport

  parameter (NMAX=120*12000)

  real*8 f0,ftx

  character*70 arg

  character*12 call1

  character*4 grid

  character*3 cdbm

  character*22 message

  character*80 outfile

  integer*2 iwave(NMAX)

  integer playsound,ptt

  snrdb=99.

  outfile=''

  nfiles=9999

  call getarg(2,arg)

  read(arg,*) f0

  call getarg(3,arg)

  read(arg,*) ftx

  ntxdf=nint(1.d6*(ftx-f0))-1500

  if(abs(ntxdf).gt.100) then

     print*,'Error: ftx must be above f0 by 1400 to 1600 Hz'

     stop

  endif

  call getarg(4,arg)

  read(arg,*) nport

  call getarg(5,call1)

  call getarg(6,grid)

  call getarg(7,arg)

  read(arg,*) ndbm

  if(nargs.lt.8 .or. ntr.ne.0) go to 10

  call getarg(8,arg)

  read(arg,*) snrdb

  if(nargs.lt.9) go to 10

  call getarg(9,outfile)

  read(outfile,1008,err=1) nfiles

1008  format(i4)

  outfile=""

  go to 10

1 nfiles=1

10 i1=index(call1,' ')

  write(cdbm,'(i3)'),ndbm

  if(cdbm(1:1).eq.' ') cdbm=cdbm(2:)

  if(cdbm(1:1).eq.' ') cdbm=cdbm(2:)

  message=call1(1:i1)//grid//' '//cdbm

  do ifile=1,nfiles

     if(nfiles.gt.1 .and. nfiles.lt.9999) write(outfile,1010) ifile

1010 format(i5.5,'.wav')

     call genmept(call1,grid,ndbm,ntxdf,snrdb,iwave)

     if(snrdb.eq.11.0) go to 999

     if(outfile.ne."") then

        call wfile5(iwave,NMAX,12000,outfile)

        write(*,1020) f0,ftx,snrdb,message,outfile(1:24)

1020    format(2f11.6,f6.1,2x,a22,2x,a24)

     else

20      nsec=time()

        isec=mod(nsec,86400)

        ih=isec/3600

        im=(isec-ih*3600)/60

        is=mod(isec,60)

        if(mod(im,2).ne.0) go to 30

        if(is.eq.0) then

           if(nport.gt.0) ierr=ptt(nport,junk,1,iptt)

           if(ntr.eq.0) write(*,1030) ih,im,is,f0,ftx,message

1030       format(i2.2,':',i2.2,':',i2.2,2f11.6,2x,a22)

           do i=22,1,-1

              if(message(i:i).ne.' ') go to 25

           enddo

25         iz=i

           write(*,1031) ih,im,ftx,message(1:iz)

           write(13,1031) ih,im,ftx,message(1:iz)

1031       format(2i2.2,14x,f11.6,'  Transmitting "',a,'"')

           ierr=playsound(iwave)

           if(nport.gt.0) ierr=ptt(nport,junk,0,iptt)

           if(ntr.ne.0) go to 999

        endif

30      call pa_sleep(100)

        go to 20

     endif

     if(nfiles.eq.9999) go to 999

enddo

999 return

end subroutine wspr0_tx

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit