[hpsdr] Need input from someone smarter than I

Rob Frohne frohro at wallawalla.edu
Tue May 11 21:53:31 PDT 2010


Hi Roger,

I'm not the white knight you are hoping for; I'm the blind trying to 
lead the blind here, so take what I have to say with a big grain of salt.

  From my understanding of the way DttSp communicates with the GUI, it 
is through UDP command packets.  The commands that Frank and Bob have 
available in are in the file update.c, and there used to be a file 
called commands.txt (which I couldn't find with the present 
distribution) which had something about the communication protocol.  I 
would look at update.c to see if you can pass the data you want already. 
  If you can't find what you need to send already there, you can 
probably follow the pattern that Frank and Bob have established to add 
your own parameter.  Once your data is in DttSp, getting the parameter 
to the right subprogram is just regular C parameter passing.  Of course 
you will also have to find in PowerSDR where the command sending occurs, 
but that should be easier hopefully.  (I am just hoping; I haven't even 
looked at the PowerSDR code, since it doesn't run on Linux.)

73 & Good luck!

Rob, KL7NA

On 05/11/2010 09:11 PM, Roger Rehr W3SZ wrote:
> ***** High Performance Software Defined Radio Discussion List *****
>
> Hi All,
>
> I am plugging along with the "larger FFT for PowerSDR" project.
>
> I have things running nicely, but am trying to make the FFT size
> selectable from the Setup page of PowerSDR.
>
> I have the GUI taken care of, as shown at these 2 screens:
> http://www.nitehawk.com/w3sz/NewDSPSetup.gif
> http://www.nitehawk.com/w3sz/NewDSPSetupChoices.gif
>
> and with this GUI I can change the FFT size-related variables in the
> C# portion of PowerSDR.
>
> But I have been trying for a few days to get this run-time change over
> to the C [DttSP] portion of the code without success.  All I have to
> do is to be able to move one integer variable from the C# code to the
> C code while PowerSDR is running.
>
> I figure the solution is simple and that I am just too dense to have
> found it.  I am about to leave for Dayton [Thursday at 6 am EST] and
> was hoping to have this done before I left, so I am hoping a white
> knight can step in with a solution for me ;)
>
> In C# my variable in question is GlobalClass.m_fftsize, from the newly
> created class GlobalClass.cs, and I don't know how to get that over to
> winmain.c while the program is executing.
>
> For those who are interested, the code I have changed is in the files
> display.cs, setup.cs, GlobalClass.cs, winmain.c, defs.h, and main.c
>
> Most of the changed lines have //w3sz or //added by w3sz appended to
> them, except where I did some global replacements to substitute
> GlobalClass.m_fftsize for the original variable, and for that one can
> just search on that string to find the changes.
>
> These files are at the urls:
> http://www.nitehawk.com/w3sz/display.cs
> http://www.nitehawk.com/w3sz/setup.cs
> http://www.nitehawk.com/w3sz/GlobalClass.cs
> http://www.nitehawk.com/w3sz/winmain.c
> http://www.nitehawk.com/w3sz/defs.h
> http://www.nitehawk.com/w3sz/main.c
>
> Thanks in advance for the help, and
>
> 73,
>
> Roger Rehr
> W3SZ
> _______________________________________________
> HPSDR Discussion List
> To post msg: hpsdr at openhpsdr.org
> Subscription help:
> http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org
> HPSDR web page: http://openhpsdr.org
> Archives: http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/

-- 
Rob Frohne, Ph.D., P.E.
E.F. Cross School of Engineering
Walla Walla University
100 SW 4th Street
College Place, WA 99324
(509) 527-2075			 http://people.wallawalla.edu/~rob.frohne



 1273640011.0


More information about the Hpsdr mailing list