Answers inline below.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> radio.biz] On Behalf Of Jim Lux
> Sent: Tuesday, October 09, 2007 7:12 PM
> To: [email protected]
> Subject: [Flexradio] Definition of F5K control interface, MIDI, FWC
> class,API?
> 
> --snip-- The question I have is whether the mapping of
> messages to functions is described anywhere.

[Eric] Nowhere other than the minimal comments in the source.
 
--snip--
> FWC defines all the MIDI opcodes in a big ENUM (presumably, the
> firmware in the F5K and the list in FWC have to be consistent with
> each other?). Is there some sort of hash or checksum to validate
> this? (i.e. a opcode table version number?)

[Eric] They do indeed need to match.  No checksum, but we currently check
this by making sure that the firmware being used matches what PowerSDR is
expecting.
 
> Are all the MIDI messages defined somewhere, with their parameters.
> i.e. what's the units for the float frequency being sent.. Hz? MHz?
> (It kind of looks like MHz from the code in console.cs)

[Eric] All are in the files mentioned (see FWC folder in the source).  The
units for the frequency are in MHz.

> If I wanted to write my own software to talk to the F5K, what's the
> appropriate level to be talking to it?

[Eric] You basically presented the 2 best options.  If you're going to use
Windows and C#, then it is probably best to just implement something based
on the existing C# fwc code.  If you are going to do something in another
OS, OR want more flexibility in languages, it probably makes sense to
implement it at the MIDI layer.
 
> And, it would appear that the SDR1K and F5K have entirely different
> control APIs. That is, one changes the F5K frequency by setting the
> FWCDDSFreq property of Console, which results in it calling
> FWC.SetRX1Freq with the frequency in MHz, but one changes the SDR1K
> frequency by changing the DDSFreq property of Console, which in turn
> calculates the tuning word and changes the DDSTuningWord property of
> the hdw class.
> 
> Is this the case? There's no common hardware abstraction between the
> two radios, and console basically invokes whichever API is needed
> depending on the installed configuration. An example is in
> txtVFOAFreq_LostFocus
> where there's
> 
> 
> if(fwc_init && current_model == Model.FLEX5000){
> // all the stuff needed to change frequencies on the F5K
> }
> else
> {
> // all stuff needed to change frequencies on non F5K
> }

[Eric] In the current instantiation of the software, yes.


_______________________________________________
FlexRadio mailing list
[email protected]
http://mail.flex-radio.biz/mailman/listinfo/flexradio_flex-radio.biz
Archive Link: http://www.mail-archive.com/flexradio%40flex-radio.biz/
FlexRadio Knowledge Base: http://kb.flex-radio.com/
FlexRadio Homepage: http://www.flex-radio.com/

Reply via email to