mirror of https://github.com/saitohirga/WSJT-X.git
Build a list of test messages into jt9code and jt65code.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4536 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
315fc6fbc3
commit
c6fea4af05
|
@ -4,6 +4,7 @@ program JT65code
|
|||
! Reed Solomon encoding, and other necessary details of the JT65
|
||||
! protocol.
|
||||
|
||||
character*22 testmsg(26)
|
||||
character*22 msg,msg0,msg1,decoded,cok*3,bad*1,msgtype*10
|
||||
integer dgen(12),sent(63),recd(12),era(51)
|
||||
|
||||
|
@ -14,6 +15,44 @@ program JT65code
|
|||
endif
|
||||
|
||||
call getarg(1,msg) !Get message from command line
|
||||
nmsg=1
|
||||
if(msg(1:2).eq."-t") then
|
||||
testmsg(1)="KA1ABC WB9XYZ EN34"
|
||||
testmsg(2)="KA1ABC WB9XYZ EN34 OOO"
|
||||
testmsg(3)="KA1ABC WB9XYZ RO"
|
||||
testmsg(4)="KA1ABC WB9XYZ -21"
|
||||
testmsg(5)="KA1ABC WB9XYZ R-19"
|
||||
testmsg(6)="KA1ABC WB9XYZ RRR"
|
||||
testmsg(7)="KA1ABC WB9XYZ 73"
|
||||
testmsg(8)="KA1ABC WB9XYZ"
|
||||
testmsg(9)="KA1ABC WB9XYZ OOO"
|
||||
testmsg(10)="KA1ABC WB9XYZ RO"
|
||||
testmsg(11)="ZL/KA1ABC WB9XYZ"
|
||||
testmsg(12)="KA1ABC ZL/WB9XYZ"
|
||||
testmsg(13)="KA1ABC/4 WB9XYZ"
|
||||
testmsg(14)="KA1ABC WB9XYZ/4"
|
||||
testmsg(15)="CQ ZL4/KA1ABC"
|
||||
testmsg(16)="DE ZL4/KA1ABC"
|
||||
testmsg(17)="QRZ ZL4/KA1ABC"
|
||||
testmsg(18)="CQ WB9XYZ/VE4"
|
||||
testmsg(19)="HELLO WORLD"
|
||||
testmsg(20)="ZL4/KA1ABC 73"
|
||||
testmsg(21)="RO"
|
||||
testmsg(22)="RRR"
|
||||
testmsg(23)="73"
|
||||
testmsg(24)="KA1ABC XL/WB9XYZ"
|
||||
testmsg(25)="KA1ABC WB9XYZ/W4"
|
||||
testmsg(26)="123456789ABCDEFGH"
|
||||
nmsg=26
|
||||
endif
|
||||
|
||||
write(*,1010)
|
||||
1010 format("Message Decoded Err?"/ &
|
||||
"-----------------------------------------------------------------")
|
||||
|
||||
do imsg=1,nmsg
|
||||
if(nmsg.gt.1) msg=testmsg(imsg)
|
||||
|
||||
call fmtmsg(msg,iz) !To upper, collapse mult blanks
|
||||
msg0=msg !Input message
|
||||
call chkmsg(msg,cok,nspecial,flip) !See if it includes "OOO" report
|
||||
|
@ -47,19 +86,18 @@ program JT65code
|
|||
if(cok.eq."OOO") decoded(20:22)=cok
|
||||
call fmtmsg(decoded,iz)
|
||||
|
||||
10 write(*,1010)
|
||||
1010 format("Message Decoded Err?"/ &
|
||||
"-----------------------------------------------------------------")
|
||||
bad=" "
|
||||
10 bad=" "
|
||||
if(decoded.ne.msg0) bad="*"
|
||||
write(*,1020) msg0,decoded,bad,itype,msgtype
|
||||
1020 format(a22,2x,a22,3x,a1,i3,": ",a10)
|
||||
enddo
|
||||
|
||||
if(nspecial.gt.0) go to 999
|
||||
if(nmsg.eq.1 .and. nspecial.eq.0) then
|
||||
write(*,1030) dgen
|
||||
1030 format(/'Packed message, 6-bit symbols ',12i3) !Display packed symbols
|
||||
|
||||
write(*,1040) sent
|
||||
1040 format(/'Information-carrying channel symbols'/(i5,20i3))
|
||||
endif
|
||||
|
||||
999 end program JT65code
|
||||
|
|
|
@ -2,6 +2,7 @@ program jt9code
|
|||
|
||||
! Generate simulated data for testing of WSJT-X
|
||||
|
||||
character*22 testmsg(21)
|
||||
character msg*22,msg0*22,decoded*22,bad*1,msgtype*10
|
||||
integer*4 i4tone(85) !Channel symbols (values 0-8)
|
||||
include 'jt9sync.f90'
|
||||
|
@ -13,6 +14,37 @@ program jt9code
|
|||
endif
|
||||
|
||||
call getarg(1,msg)
|
||||
nmsg=1
|
||||
if(msg(1:2).eq."-t") then
|
||||
testmsg(1)="KA1ABC WB9XYZ EN34"
|
||||
testmsg(2)="KA1ABC WB9XYZ EN34 OOO"
|
||||
testmsg(3)="KA1ABC WB9XYZ RO"
|
||||
testmsg(4)="KA1ABC WB9XYZ -21"
|
||||
testmsg(5)="KA1ABC WB9XYZ R-19"
|
||||
testmsg(6)="KA1ABC WB9XYZ RRR"
|
||||
testmsg(7)="KA1ABC WB9XYZ 73"
|
||||
testmsg(8)="KA1ABC WB9XYZ"
|
||||
testmsg(9)="ZL/KA1ABC WB9XYZ"
|
||||
testmsg(10)="KA1ABC ZL/WB9XYZ"
|
||||
testmsg(11)="KA1ABC/4 WB9XYZ"
|
||||
testmsg(12)="KA1ABC WB9XYZ/4"
|
||||
testmsg(13)="CQ ZL4/KA1ABC"
|
||||
testmsg(14)="DE ZL4/KA1ABC"
|
||||
testmsg(15)="QRZ ZL4/KA1ABC"
|
||||
testmsg(16)="CQ WB9XYZ/VE4"
|
||||
testmsg(17)="HELLO WORLD"
|
||||
testmsg(18)="ZL4/KA1ABC 73"
|
||||
testmsg(19)="KA1ABC XL/WB9XYZ"
|
||||
testmsg(20)="KA1ABC WB9XYZ/W4"
|
||||
testmsg(21)="123456789ABCDEFGH"
|
||||
nmsg=21
|
||||
endif
|
||||
|
||||
write(*,1010)
|
||||
1010 format("Message Decoded Err?"/ &
|
||||
"-----------------------------------------------------------------")
|
||||
do imsg=1,nmsg
|
||||
if(nmsg.gt.1) msg=testmsg(imsg)
|
||||
call fmtmsg(msg,iz) !To upper, collapse mult blanks
|
||||
msg0=msg !Input message
|
||||
|
||||
|
@ -27,15 +59,13 @@ program jt9code
|
|||
if(itype.eq.5) msgtype="Type 2 sfx"
|
||||
if(itype.eq.6) msgtype="Free text"
|
||||
|
||||
write(*,1010)
|
||||
1010 format("Message Decoded Err?"/ &
|
||||
"-----------------------------------------------------------------")
|
||||
bad=" "
|
||||
if(decoded.ne.msg0) bad="*"
|
||||
write(*,1020) msg0,decoded,bad,itype,msgtype
|
||||
1020 format(a22,2x,a22,3x,a1,i3,": ",a10)
|
||||
enddo
|
||||
|
||||
write(*,1030) i4tone
|
||||
if(nmsg.eq.1) write(*,1030) i4tone
|
||||
1030 format(/'Channel symbols'/(30i2))
|
||||
|
||||
999 end program jt9code
|
||||
|
|
Loading…
Reference in New Issue