Difference between revisions of "SDR"

From Stu2
Jump to navigation Jump to search
(Setting up the Audio)
(Setting up the CAT, CW and PTT)
Line 150: Line 150:
COM7: Check CW/Other  Set: DTR = CW, RTS = PTT, Allow external Interrupts, WinKey = unchecked
COM7: Check CW/Other  Set: DTR = CW, RTS = PTT, Allow external Interrupts, WinKey = unchecked
COM8: Check CW/Other  Set: DTR Always on, RTS = PTT
COM8: Check CW/Other  Set: DTR Always on, RTS = PTT
For the Flex 1500:
COM1: DTR=Always, RTS=PTT - this keys the sequencer via an open collector transistor.

Revision as of 15:52, 3 September 2010

I'm working on a couple of projects to make the SDR more productive for the VHF contests.

N1MM Network Protocol

I used wireshark to sniff the N1MM network protocols. N1MM uses UDP. So it's possible to emulate a N1MM station and exchange 'instant messages'. For example, it's possible to parse APRS data and send messages to the operators via N1MM.

TALK%[STA2] Passing WA0DYJ on 432000.0%~

STA1 (.49)			STA2 (.88)
ECHOREQ%2008-07-22%19:43:11%~   ECHO%2008-07-22%19:43:11%~
STATUS%0%43200000%0%W4IY%0%0%%~ ECHOREQ%2008-07-22%16:43:10%~
ECHO%2008-07-22%16:43:10%~      STATUS%1420000%1420000%-1%W7IY%0%0%SB%~

Start up sequence
STA1 (.49)			STA2 (.88)
ECHOREQ%2008-07-22%19:46:42%~	ECHOREQ%2008-07-22%16:46:41%~
ECHO%2008-07-22%16:46:41%~	ECHO%2008-07-22%19:46:42%~
LASTQAT%2008-07-19 23:46:42%~	FREQ%1420000%~
				LASTQAT%2008-07-22 23:45:59%~
CHECKSUM%2008-06-29 18:00:22%2008-07-22 23:46:42%1273027086%FD%~
				TALK%[STA2] My contest: DX, yours: FD%~

Exchange ECHOREQ/ECHO with each station in the group.

Send UDP packet to port 12056

Enter az in entry window, press Alt-J

N1MM and the Flex 5000A or Flex 1500

Using N1MM and PowerSDR for CW and SSB contesting. You need the following:

  • PowerSDR (Flex 5000A or 1500)
  • N1MM
  • Virtual Audio Cable (VAC version 4.09, not 4.10)
  • N8VB Virtual COM port software (or com0com or VSP Manager)
  • Windows XP

Using a Single COM Port

The following article shows you how to use a single COM port to take care of both the CAT and keying controls. Note, I had to restart N1MM after I made the configurations as per the article. However - if you get stuck and need to separate out the control signals, the method described in this wiki may be helpful. The audio configurations in these pages are still valid.


Getting Ready

VAC provides virtual cabling between the Flex 5000A and Windows. Use the control panel in VAC to set up two cables. They are generic, use the default. When you're done, you'll have two virtual audio cables that we will use like this:

Windows -> Cable 1 -> Flex    TX audio to the Flex
Windows <- Cable 2 <- Flex    RX audio from the Flex

Install N8VB virtual COM driver, enable the virtual connections like this:

COM6 -> COM16   -   use for CAT control
COM7 -> COM17   -   use for CW
COM8 -> COM18   -   use for PTT (Not sure about this)

Note, I was NOT able to use the same port for the CW and CAT. For the VHF contests, I used COM1 with the Flex 1500 (not 5000A) to key an external sequencer. The sequencer handles keying for the preamp, transverter (Elecraft) and Flex 1500. A footswitch and COM1 are inputs to the sequencer.

Setting up the Audio

In Windows:

Start, Settings, Control Panel, Sounds and Audio

Sounds Tab: Make sure sound scheme is set to none (nothing selected) otherwise, 
you'll have 'dings' mixed in with your TX audio. ;)

Audio Tab:
Sound Playback: Virtual Cable 1   (This is TX audio going to the Flex)
Sound Recording: Virtual Cable 2  (This is RX audio coming from the Flex)

Note - change the windows settings first because the settings in the audio tab of N1MM will change back to the defaults.

In the PowerSDR:

Setup -> Audio -> VAC

Under Virtual Audio Cable Setup Box
Driver: -> MME
Input: -> Virtual Cable 1
Output: -> Virtual Cable 2

Set the buffer size to 2048 and the sample rate to 48000
Check Allow PTT to override VAC for PHone

in N1MM

Config -> Config Ports, Telnet Address, Other -> Audio Tab

Select # 1 - Zero or Single Sound card
Select Device: Virtual Cable 1
Select Input Line: Microphone
Select Line to Mute: SW Wave (not sure if this matters)
Recording Bits: 16
Recording Sample Rate: 48000
Radio Input Port: Microphone

I was able to use the windows recorder (start/accessories/entertainment) to verify the audio was being recorded.

Setting up the CAT, CW and PTT

In the PowerSDR:

Setup -> DSP -> Keyer
Under the connections box,
Primary: 5000 (uses the key jack on the back panel)
Secondary: COM17
Key Line: DTR

Setup -> CAT Control
CAT Control box
Uncheck Enable CAT - so you can make changes
Port: Port COM16
Baud: 57600
Parity: none
Data: 8
Stop: 1
Check Enable CAT

Under PTT Control:
Uncheck Enable PTT
Port: COM18  -> Note, under N1MM, I set use CAT command for
    PTT. This must be enabled for the N1MM audio to work.
check RTS
Check Enable PTT

Then, in N1MM:

Config -> Configure Ports, Telnet Addresses, Other -> Hardware Tab
COM6: Kenwood   Set: 57600,N,8,1, DTR=Always Check: Radio PTT via CAT command (this keys the SDR)
COM7: Check CW/Other  Set: DTR = CW, RTS = PTT, Allow external Interrupts, WinKey = unchecked
COM8: Check CW/Other  Set: DTR Always on, RTS = PTT

For the Flex 1500:
COM1: DTR=Always, RTS=PTT - this keys the sequencer via an open collector transistor.

Using the Configuration

You should be able to run N1MM and PowerSDR together. The frequency and mode should appear in N1MM and you should be able to change modes by entering something like "USB" in the call sign entry window. If this doesn't work, then check the CAT settings.

For CW, enter CW in the call sign window, press ENTER and the Flex will switch to CW. Press F1 and check the transmission. (Should key the rig and send the F1 message.)

For SSB, double check the messages and make sure you have the directories and files set up correctly. Use Ctrl-O to change operators. Note, this usually means there must be a directory and corresponding file to store the WAV files recorded by the operator.

Ensure the VAC button is on
Ensure the MON button is on in PowerSDR

Press the foot switch - should key the rig
Check 'GATE' and set the threshold (neat feature)
press SHIFT-CTRL-Fx to start recording
press SHIF-CTRL-Fx to stop recording
Release the foot switch

press Fx to play the message

Note, there is a delay between your voice and the monitored audio. N1MM is recording the monitored audio, not the microphone audio. Since this uses the audio card in the flex, where the mic attaches, I don't think there is a way to record the audio directly from the mic. Perhaps a more complicated set up, which uses the sound card in the computer?

VFO Knob - Software Solution

Note - I found this neat utility, which allows you to use the wheel in a mouse to send tuning commands to the Flex. While a knob still seems favorable to me, this gets the job done nicely.

Here is a link to the e-mail, with instructions:


Here is a link to the file:


Turn on the scroll lock and the num lock. The following commands will go to Flex.

- mouse wheel roll and click
- ctrl+arrow keys (up/down=tuning, left/right=sets tuning step)
- NumPad 9/3 = Band Up/Down
- NumPad 8/2 = Filter Up/Down
- NumPad 7/1 = Mode Up/Down

I'm still looking for a Griffin Knob equivalent. (I think one could build a C# program combining the HID stuff from Microsoft with the concepts from the HotWheel program. This would be more effective than building yet another hardware interface using PIC controllers. Incidentally, it seems like this could be built into the PowerSDR program. I have no idea why it isn't.)

Update: 11/08 - I used the SDR-5000A and the above program during the 2008 ARRL CW SS contest. It worked great! I searched and pounced the entire time and ended up with 441Q's and 78 Mults. The point and click feature of PowerSDR was nice and the filters were awesome. Too bad K3AN (and maybe others) beat me. Guess I need to call CQ more often and stay on the low bands longer.

I also discovered a set of instructions for using a single virtual COM port for the link between N1MM and the SDR. Makes my set up obsolete. (Almost silly, really. ;)