[linrad] Re: MAP65 and Linrad Network

2007-06-23 Thread Leif Asbrink
Hi Joe,

> > It may be necessary to add a call to Sleep(0) under Windows
> > or to sched_yield() under Linux at regular intervals in all
> > routines that might lock up the CPU for a too long time.
> > 
> > Those calls are effected by lir_sched_yield() in the OS independent
> > code of Linrad and I found it necessary to place about 45 such
> > calls within Linrad.
> 
> Hmmm, I may have trouble doing the equivalent.  For example, 
> MAP65 does some very long FFTs using tthe FFFTW3 library.  I 
> can't very well put calls to relinquish CPU control inside these 
> tasks.
No, but just before and just after;-)

In Linrad such calls are issued inside the computation of the second
fft in case the size is above 32768. 

> On the other hand, there is a "threads" version of 
> FFTW3, which might be what's needed.
Probably, on a single core computer. On a dual core (or more)
it should be OK to have one thread locking up one core
for long times provided that the other core never has to
do an "endless" task simultaneously:-)

> Right now such issues are not a top priority, though.
Oooh! I do understand that:-)

73

Leif / SM5BSZ

#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Joe Taylor

Hi Leif,

The combination works OK, and but a significant number of 
packets (around 400 in each minute, or slightly more than 1% 
of the data) are dropped during MAP65's most 
compute-intensive parts of each minute.  Since plrs does no 
significant computing, I imagine that the problem may be 
worse when running Linrad + MAP65.


It could also be the other way around.


Indeed, it could.  In that case I will be surprised, but it will 
hardly be the first time I have been similarly surprised.



It may be necessary to add a call to Sleep(0) under Windows
or to sched_yield() under Linux at regular intervals in all
routines that might lock up the CPU for a too long time.

Those calls are effected by lir_sched_yield() in the OS independent
code of Linrad and I found it necessary to place about 45 such
calls within Linrad.


Hmmm, I may have trouble doing the equivalent.  For example, 
MAP65 does some very long FFTs using tthe FFFTW3 library.  I 
can't very well put calls to relinquish CPU control inside these 
tasks.  On the other hand, there is a "threads" version of 
FFTW3, which might be what's needed.


Right now such issues are not a top priority, though.

-- Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Joe Taylor

Hi Leif,

One of the nuisances of using the original data file is that 
Linrad's raw data are not time-stamped.  


Oooh! But they are:-) Your file is stamped 1163231107.413487 which
was the output of the routine current_time() at the start of
the recording.


FB!  This is good to know.


I do not know how to interpret the MAP65 screen. The polarisation
data of AA1YN seems odd to me. They change very rapidly:
0746:  90
0748: 135
0750: 135
0752: 135
0754:   0
0756:  45


The MAP65 screen shot on my web page
http://physics.princeton.edu/pulsar/K1JT/MAP65_1.JPG is from a 
very early version of the program.  Polarization information 
shown for AA1YN in the main text window is incorrect, but you 
can find the correct data in the window at lower right.  In that 
panel the columns of numbers are frequency in kHz (above 144.000 
MHz), additional frequency increment "DF" in Hz, polarization 
angle in degrees, and UTC.  For AA1YN, therefore, the measured 
polarization angles over this block of time were


  UTC  Pol
---
 0746:  73
 0748:  65
 0750:  70
 0752:  68
 0754:  66
 0756:  71
 0758:  60

In normal operation with a fully working MAP65, the main text 
window is used for the current QSO.  New text appears there at 
about t=55 seconds in the receive interval.  Decoding of the 
remainder of the bandpass takes place subsequently, and on my 
development computer finishes at about t=12 s into the next minute.



Which signal on the screen that has this behaviour is not obvious to me.
The processing screen says Freq 128 and DF=0 (or very close.)
When I look at the file, I find the weak signal at the center of the 
lower waterfall to start at 144.129823 and drift down to 144.129814.


JT65 users conventionally use a "quasi-channelized" approach for 
specifying frequencies.  The frequencies correspond to that of 
the suppressed carrier of the generated SSB signal. 
Calibrations on the MAp65 screen follow these conventions.


MAP65 reports the "channel frequency" as 144.128, as shown by 
the "128" at the beginning of the lines in the main text window 
and also in the panel at lower right.  Owing to a combination of 
Doppler shift and calibration errors, the actual received 
frequency was higher by about +222 Hz at 0746 UTC, drifting 
slowly downward to +216 Hz at 0758.


The JT65 sync tone is at 1270.5 Hz.  MAP65 has also subtracted 
330 Hz to correct for an apparent fixed calibration error (at 
144.125) in my WSE converters.


Therefore, with normal Linrad calibration you should expect to 
see the AA1YN signal at the frequency


  144.128
   +0.0002220
   +0.0012705
   +0.0003300
 
  144.1298225 at 0746 UTC.

You measured 144.129823 MHz, so we are in almost perfect agreement.


That is a 1.818 Hz frequency shift as compared to the MAP65 screen???


In this case the shift is 1270.5 + 330 + DF = 1822.5 Hz at 0746 UTC.

There is some info "Options" in the upper waterfall, but that does not 
fit. 


In that early version of MAP65, the information there is 
meaningless.


The signal at 144.12982 is right hand circular in Linrad and it 
does not change polarisation during the 10 minutes.


I don't pay attention to the V (circular) Stokes parameter in 
MAP65.  However, there seems to be plenty of linear polarization 
in the AA1YN signal, certainly enough to establish its angle 
pretty well.  The linear polarization (major axis of the 
ellipse) is at about 70 degrees, perhaps rotating slightly 
downward over the 12 minutes.



The strong signal at -880 Hz in the lower waterfall is at 144.12894
in Linrad. This signal is elliptic, about 50% left hand. Polarisation
does not change with time on this signal either.


This big signal is KB8RQ.  MAP65 reports the linear polarization 
angle to be around 90 degrees, increasing somewhat during the 12 
minutes.


Don't hold me too much to these polarization-angle numbers. 
They came from a very early MAP65 version; I was still playing 
with the algorithms then, and I don't recall exactly at what 
stage the screen-dump was made.


-- Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Leif Asbrink
Hi Joe,

> OK, I tried it with both programs running on the same 
> (Linux) computer.  In this case the two programs were "plrs" 
> (my "pseudo-Linrad send" program) and MAP65.  The Linux 
> computer has two Xeon CPUs at 2.4 GHz, each with 512 kB L2 
> cache, and 1 GB memory.
> 
> The combination works OK, and but a significant number of 
> packets (around 400 in each minute, or slightly more than 1% 
> of the data) are dropped during MAP65's most 
> compute-intensive parts of each minute.  Since plrs does no 
> significant computing, I imagine that the problem may be 
> worse when running Linrad + MAP65.
It could also be the other way around.

> Of course it should be possible to improve this situation; I 
> have not yet tried to address it.  In the meantime, I shall 
> continue to test with Linrad (or plrs) running on one 
> computer, MAP65 on another.
OK. It may be necessary to add a call to Sleep(0) under Windows
or to sched_yield() under Linux at regular intervals in all
routines that might lock up the CPU for a too long time.

Those calls are effected by lir_sched_yield() in the OS independent
code of Linrad and I found it necessary to place about 45 such
calls within Linrad.

73

Leif / SM5BSZ

#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Leif Asbrink
Hi Joe,

> I have the original raw data file and have placed it at 
> http://physics.princeton.edu/pulsar/K1JT/06_0744.raw.bz2
Excellent:-)

> One of the nuisances of using the original data file is that 
> Linrad's raw data are not time-stamped.  
Oooh! But they are:-) Your file is stamped 1163231107.413487 which
was the output of the routine current_time() at the start of
the recording.
 
double current_time(void)
{
struct timeval t;
gettimeofday(&t,NULL);
return 0.01*t.tv_usec+t.tv_sec;
}

This is the time in seconds with six decimals since Epoch
and if you run Linrad on the file with a fast waterfall
you will see the time on the waterfall starting at 07.45.08

Unfortunately I have missed to put the correct time in the 
time variable of the network packets. Currently the time
is the time when data was read from the hard disk and not
when it was stored there. I will correct for the next version:-)

The 'S' file only has a single time stamp for when write was
started. With Delta 44 soundcards, the sampling rate is 
pretty accurately 96 kHz (96014 Hz with the card in this 
particular computer.) I think one can safely assume that
the error is well below 0.05% so in a 1 hour recording
the time error at the end should stay well below 2 seconds.

> As you know, JT65 
> transmissions must start at the top of a UTC minute.  To use 
> the raw data file effectively with MAP65 you will need to do 
> something to ensure that the multicast packets contain times 
> that are close to being "correct" with respect to the 
> original time (modulo 60 seconds).
OK. I hope that you have found the time to be correct when
receiving timf2 data from Linrad in real time.

> > Surely, for MAP65 testing and development I agree that your
> > strategy is more convenient - but from my point of view the
> > original file is far more interesting
> 
> Yes.  It probably will be far more interesting, for you 
> especially.  You will find plenty of birdies and other junk 
> in the test file!!  See 
> http://physics.princeton.edu/pulsar/K1JT/MAP65_1.JPG .
Fine!

I do not know how to interpret the MAP65 screen. The polarisation
data of AA1YN seems odd to me. They change very rapidly:
0746:  90
0748: 135
0750: 135
0752: 135
0754:   0
0756:  45

Which signal on the screen that has this behaviour is not obvious to me.
The processing screen says Freq 128 and DF=0 (or very close.)
When I look at the file, I find the weak signal at the center of the 
lower waterfall to start at 144.129823 and drift down to 144.129814.
That is a 1.818 Hz frequency shift as compared to the MAP65 screen???
There is some info "Options" in the upper waterfall, but that does not 
fit. The signal at 144.12982 is right hand circular in Linrad and it 
does not change polarisation during the 10 minutes.

The strong signal at -880 Hz in the lower waterfall is at 144.12894
in Linrad. This signal is elliptic, about 50% left hand. Polarisation
does not change with time on this signal either.

How do I compute the true frequency of the sync tone from the data 
in the MAP65 screen? 

73

Leif / SM5BSZ


#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Joe Taylor

Hi Leif,

Yes, it should be possible to run everything on a single 
fast computer with plenty of memory.  I have not yet 
established that the necessary CPU-sharing during 
time-critical parts of each program is handled adequately 
for this to work without glitches.  Neither Linrad nor 
Windows is a very good real-time O/S, and one must work 
around their limitations in this area.


I do not think there would be any problems:-)


OK, I tried it with both programs running on the same 
(Linux) computer.  In this case the two programs were "plrs" 
(my "pseudo-Linrad send" program) and MAP65.  The Linux 
computer has two Xeon CPUs at 2.4 GHz, each with 512 kB L2 
cache, and 1 GB memory.


The combination works OK, and but a significant number of 
packets (around 400 in each minute, or slightly more than 1% 
of the data) are dropped during MAP65's most 
compute-intensive parts of each minute.  Since plrs does no 
significant computing, I imagine that the problem may be 
worse when running Linrad + MAP65.


Of course it should be possible to improve this situation; I 
have not yet tried to address it.  In the meantime, I shall 
continue to test with Linrad (or plrs) running on one 
computer, MAP65 on another.


-- Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Joe Taylor

Hi Leif,

Moreover, one will almost certainly want separate screens 
for Linrad and MAP65 -- both of which generally use most or 
all of a normal-size screen.


Yes, I agree - but those who have only one standard computer
should know it is possible - if it really is;-)


When MAP65 is available, I will be sure to document how it 
can best be used, and what the hardware requirements will be.



Hmmm, I would have liked a file that allows me to play with
Linrad on the data that are sent to MAP65. Presumably you have
a couple of spurs and perhaps other "interesting" interference
that MAP65 (or at least the waterfall graph) would benefit from
not getting. 


This will not be a problem.  I have the original raw data 
file and have placed it at 
http://physics.princeton.edu/pulsar/K1JT/06_0744.raw.bz2


It is 263 MB in size.

One of the nuisances of using the original data file is that 
Linrad's raw data are not time-stamped.  As you know, JT65 
transmissions must start at the top of a UTC minute.  To use 
the raw data file effectively with MAP65 you will need to do 
something to ensure that the multicast packets contain times 
that are close to being "correct" with respect to the 
original time (modulo 60 seconds).



Surely, for MAP65 testing and development I agree that your
strategy is more convenient - but from my point of view the
original file is far more interesting


Yes.  It probably will be far more interesting, for you 
especially.  You will find plenty of birdies and other junk 
in the test file!!  See 
http://physics.princeton.edu/pulsar/K1JT/MAP65_1.JPG .


-- Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Leif Asbrink
Hi Joe,

> Yes, it should be possible to run everything on a single 
> fast computer with plenty of memory.  I have not yet 
> established that the necessary CPU-sharing during 
> time-critical parts of each program is handled adequately 
> for this to work without glitches.  Neither Linrad nor 
> Windows is a very good real-time O/S, and one must work 
> around their limitations in this area.
I do not think there would be any problems:-)

> Moreover, one will almost certainly want separate screens 
> for Linrad and MAP65 -- both of which generally use most or 
> all of a normal-size screen.
Yes, I agree - but those who have only one standard computer
should know it is possible - if it really is;-)


> For testing MAP65 when real signals are not available, and 
> anyway so that I can get 100% repeatable results, I solved 
> this problem in a slightly different way.  I saved some data 
> by using the Linrad "S" command during the ARRL EME contest 
> last November.  With a slightly modified Linrad I converted 
> the data to 16-bit TIMF2 format, and wrote it to a file.  A 
> simple program that I call "plrs" (for "pseudo-Linrad send") 
> can read this file and multicast it in the same way that 
> Linrad would do, so that MAP65 can receive it.  The data 
> file, 11 minutes of original data, amounts to 507 MB.  After 
> compression with bzip2 it is 228 MB.  I will make the data 
> file available soon, together with plrs and MAP65, to anyone 
> who wants to participate in testing MAP65.
Hmmm, I would have liked a file that allows me to play with
Linrad on the data that are sent to MAP65. Presumably you have
a couple of spurs and perhaps other "interesting" interference
that MAP65 (or at least the waterfall graph) would benefit from
not getting. 

Surely, for MAP65 testing and development I agree that your
strategy is more convenient - but from my point of view the
original file is far more interesting

73  Leif / SM5BSZ

#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Joe Taylor

Hi Leif,

Thanks for your message.

... The number of lost packets is 
normally small (say 1-5), and since there are some 33000 
packets in a one-minute data block, the losses are probably 
negligible.  I will watch it, and probably put in a warning 
flag or something.


Yes, but as long as you fill zeroes in the corresponding
locations so there is no time shift, small drop-outs will not
have any effect on S/N at all under normal circumstances.


Yes, this is exactly what I have done.

If anyone is interested in testing an early version of 
MAP65, please let me know.  I can probably make one 
available fairly soon.  You will need two computers with a 
network connection between them.  The MAP65 computer should 
have 1 GB or more of memory.


Hmmm, on a good computer you could run Linrad under Windows 
on the same computer that you use for MAP65:-)


Yes, it should be possible to run everything on a single 
fast computer with plenty of memory.  I have not yet 
established that the necessary CPU-sharing during 
time-critical parts of each program is handled adequately 
for this to work without glitches.  Neither Linrad nor 
Windows is a very good real-time O/S, and one must work 
around their limitations in this area.


Moreover, one will almost certainly want separate screens 
for Linrad and MAP65 -- both of which generally use most or 
all of a normal-size screen.  I do not presently have a 
"two-headed" computer, so I am doing initial testing of 
Linrad/MAP65 with a two-computer setup.



Currently I have no antenna so I can not play with the software.
Perhaps you could press "S" in Linrad to record the raw data for
perhaps 20 minutes and then upload the file on the Internet?


For testing MAP65 when real signals are not available, and 
anyway so that I can get 100% repeatable results, I solved 
this problem in a slightly different way.  I saved some data 
by using the Linrad "S" command during the ARRL EME contest 
last November.  With a slightly modified Linrad I converted 
the data to 16-bit TIMF2 format, and wrote it to a file.  A 
simple program that I call "plrs" (for "pseudo-Linrad send") 
can read this file and multicast it in the same way that 
Linrad would do, so that MAP65 can receive it.  The data 
file, 11 minutes of original data, amounts to 507 MB.  After 
compression with bzip2 it is 228 MB.  I will make the data 
file available soon, together with plrs and MAP65, to anyone 
who wants to participate in testing MAP65.


-- Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-22 Thread Leif Asbrink
Hello Joe,

> I've noticed one interesting thing while playing with MAP65 
> today.  Even though I have assigned its "recvpkt" thread an 
> "ABOVE_NORMAL" priority, I can cause it to drop UDP packets 
> by having Windows do various things.  (For example, starting 
> up the Windows Task Manager.)  The number of lost packets is 
> normally small (say 1-5), and since there are some 33000 
> packets in a one-minute data block, the losses are probably 
> negligible.  I will watch it, and probably put in a warning 
> flag or something.
Yes, but as long as you fill zeroes in the corresponding
locations so there is no time shift, small drop-outs will not
have any effect on S/N at all under normal circumstances.

Only if you have a VERY strong signal present, a drop-out
will create a pair of keying clicks when the signal disappears
and when it comes back again. On the Windows computer this is 
totally impossible if the input comes from Linrad with the 
noise blanker in 16 bit format. There can not be any strong 
signals!!
 
> If anyone is interested in testing an early version of 
> MAP65, please let me know.  I can probably make one 
> available fairly soon.  You will need two computers with a 
> network connection between them.  The MAP65 computer should 
> have 1 GB or more of memory.
Hmmm, on a good computer you could run Linrad under Windows 
on the same computer that you use for MAP65:-)

Currently I have no antenna so I can not play with the software.
Perhaps you could press "S" in Linrad to record the raw data for
perhaps 20 minutes and then upload the file on the Internet?

If you use the Delta 44 soundcards in 32 bit mode, the file
will contain 18 bits per sample and if you select 16 bits, the
file will (of course) contain 16 bits per sample.

The file will contain the calibration functions of your system
to allow an identical processing with what you can do while 
recording. 

96000*4*2*60*20=922 megabytes for 20 minutes of 16 bit data which
could perhaps be compressed with bzip2 since 50% of the data is 
0 or -1 while there is no strong signal present and 8 bits would 
have been sufficient (I do not know whether bzip2 actually can
utilize this).

In 18 bit mode the file would be 1037 megabytes that can not be 
compressed.

73

Leif / SM5BSZ




> 
>   -- 73, Joe, K1JT
> 
> #
> This message is sent to you because you are subscribed to
>   the mailing list .
> To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
> To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
> To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
> Send administrative queries to  <[EMAIL PROTECTED]>
> 

#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-21 Thread Joe Taylor

HI Leif and all,

Many thanks for your most helpful response.

I had more or less figured out your explanation of userx_no, 
and now I understand that I *do* have a high-side LO in the 
RX10700.  Well and good.


I should have remembered that FFT Version 5 is floating 
point.  I will use it in future for FFT1, since my computer 
supports the SSE instructions.  I will try setting up the 
amplitude margins for the downstream processing as you describe.


I've noticed one interesting thing while playing with MAP65 
today.  Even though I have assigned its "recvpkt" thread an 
"ABOVE_NORMAL" priority, I can cause it to drop UDP packets 
by having Windows do various things.  (For example, starting 
up the Windows Task Manager.)  The number of lost packets is 
normally small (say 1-5), and since there are some 33000 
packets in a one-minute data block, the losses are probably 
negligible.  I will watch it, and probably put in a warning 
flag or something.


If anyone is interested in testing an early version of 
MAP65, please let me know.  I can probably make one 
available fairly soon.  You will need two computers with a 
network connection between them.  The MAP65 computer should 
have 1 GB or more of memory.


-- 73, Joe, K1JT

#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[linrad] Re: MAP65 and Linrad Network

2007-06-21 Thread Leif Asbrink
Hello Joe,

> I have now established the necessary network connection 
> between Linrad and MAP65.  So far, I have found nothing to 
> prevent a happy marriage!
>
> MAP65 receives a full 90 kHz of xpol signal from Linrad, 
> finds all the JT65 signals in that bandwidth, matches the 
> linear polarization angle of each one, decodes the messages, 
> and provides the operator with a "band map" showing 
> callsigns, operating frequencies, polarization angles, and 
> message contents over the past 15 minutes or so.  The 
> program provides a full-width waterfall display and another 
> one "zoomed in" on the frequency of the station currently 
> being worked.

Excellent!!


> 
> 
> Questions about Linrad's TIMF2 Multicast Data
> -
> 
> Header information accompanying Linrad's multicast TIMF2 
> data includes two single-byte parameters, "userx_no" and 
> "passband_direction", about which I have questions.  I 
> understand that userx_no should correspond to the number of 
> RF channels, with negative sign indicating floating format. 
>   I would have expected the value -4 for my system using 
> xpol antennas and the WSE converters (I and Q for each of 
> two polarizations), but in fact I see -2.  Is this as it 
> should be?
Yes. You have two RF channels only. You might have used the
hardware described here:
http://www.sm5bsz.com/pcdsp/hware.htm
This uses two audio channels to receive two RF channels but
the output from timf2 would have the same format as you have with
the WSE units. The difference is that the sampling speed of
timf2 is the same as the audio sampling speed with WSE units, 
but half the audio sampling speed for the other solution.
There is no need for MAP65 to know whether the 96kHz timf2 data
originates in a hardware using two audio channels with a sampling
rate of 192 kHz or four channels sampling at 96 kHz.

> Similarly, I would have expected passband_direction=1 as I 
> have no LO's on the high side and the spectrum is not 
> inverted.  However, Linrad sends passband_direction=-1.  Is 
> this correct?
You have the RX10700 with LO=13.175, 13.200, 13.225 or 13.250 MHz 
which is above 10.7. All the other LOs are below so -1 is
correct.

> Linrad FFT Versions
> ---
> 
> I have been using FFT Version 0 for the first forward, first 
> backward, and second forward FFTs.  This produces 
> floating-point TIMF2 data on the multicast network.
On a modern computer you can use version 5 for the first
forward fft. It uses the SIMD instructions (single instruction
multiple data, now called sse I think) and computes the
floating point fft quite a bit faster.
  
> To save on memory usage in MAP65 it may be desirable to use 
> 16-bit data for TIMF2.  I have effected this by setting 
> first forward FFT to version 5,
The first fft is always floating point. It must be because 
the dynamic range of 16 bits is by far not adequate for
the unprocessed A/D input. Version 5 is always a good choice
on a computer that will allow it. Pentium II and older do
not have the SIMD instructions so they have to use another
version and it differs a little which one will run fastest
depending on architecture. On old machines it might be desireable
to actually try all versions and pick the one that runs fastest
since old machines may be CPU limited.


> first backward FFT to 
> version 1, and second forward FFT to version 2.  Are these 
> good choices?  
Yes.

> Is there any downside to their use that I 
> might not have thought about?  Also, with these settings I 
> notice that the signal in the high resolution graph (red dB 
> lines) is higher than it was with FFT versions 0.  Should I 
> adjust some other parameter to bring this level down be 
> several dB?
When the floating point data from fft1 is truncated to 16 bits
there will be quantization noise. You should place the system
noise floor at least 20 dB above this extra source of noise to
make the loss of NF smaller than 0.043 dB.

Press "A" on the keyboard to see the amplitude margins. In case
you place the noise floor too high you might find that there is
saturation somewhere. The shift parameters for the FFTs will
allow you to set the noise floor at the correct level.
http://www.sm5bsz.com/linuxdsp/install/dlevel.htm

There are many possible sources of rounding errors (quantization
noise) and Linrad does not set levels automatically since the
criteria for what will be optimum are non-trivial. I hope
the above link will be helpful.

Under "normal" circumstances you will not need the maximum 
dynamic range in the second FFT. Only if you have a carefully
calibrated system and want to use the smart blanker saturation
on noise pulses will be a problem. Narrowband signals are
automatically attenuated to fit within the dynamic range of 
16 bits. 

In case you want a very large size for the second fft and a 
small size for the first fft, the narrowband signals have to be 
attenuated to a pretty low level. 

A perfect sinewav

[linrad] Re: MAP65 and Linrad Network

2007-06-21 Thread Alberto di Bene

Joe Taylor wrote:


In response to questions I have been getting: MAP65 could 
run with Winrad or with various SDR's if their software is 
modified to provide the necessary multicasting capability. 
In itself, this would not be too difficult.


  Joe,

the latest version of Winrad has an hook such that an external DLL can be written with a callback routine which is 
invoked each time Winrad receives a new audio buffer from the sound card. The audio data passed to the DLL are raw, 
time-domain data, no processing done on them. Two buffers are passed, 512 samples each (I and Q), integer format 
normalized to 24 bits even if the sound card is capable of 16 bits only.


The document that describes how to write such a DLL meant to be used with 
Winrad is here :
http://www.weaksignals.com/bin/Winrad_Extio.pdf
From inside that DLL, once received the data, one could decide to send them via 
UDP packets, or the likes.


However, one of the most important MAP65 features is its 
automatic Rx-polarization-matching capability.  That 
requires a receiver with full xpol processing, which (as far 
as I know) is not now provided by Winrad, SDR-1000, SDR-14, 
or SDR-IQ.


Correct, at least for Winrad. Though xpol processing is among the things that eventually will get implemented, it is not 
present in the current version.


73  Alberto  I2PHD


#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>