Telnet and the Net Remote Plugin

Need help installing or figuring out something about your SDR? Ask here.
Post Reply
snifftheglove
Posts: 12
Joined: Mon Jan 01, 2018 10:32 pm

Telnet and the Net Remote Plugin

Post by snifftheglove » Wed Jan 10, 2018 12:36 pm

Hello,

I have loaded the Net Remote Plugin from http://eartoearoak.com/software/sdrsharp-net-remote

On Win10 I have open up an Admin DOS box and ran Telnet, connected to localhost and port 3382 and make the connection.
I get the working response back
{"Name":"Net Remote","Version":"1.2.6378.42361"}
So it working ok, I can then send the command to see if it is playing.

OK, so now I want to automate the proceedure via a VBS script file.

Code: Select all

 Option explicit
Dim oShell
Dim FreqString
FreqString="{""Command"": ""Get"", ""Method"": ""IsPlaying""}"
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "telnet"
WScript.Sleep 1000
oShell.Sendkeys "open localhost 3382~"
WScript.Sleep 1000
oShell.Sendkeys FreqString
Wscript.Quit
However, I can make the connection to telnet and get back the working response
{"Name":"Net Remote","Version":"1.2.6378.42361"}
So I now part of the script is working however if I try to send the command through to check if it is playing I just keep getting script errors.
It's is down to the quotes "Net Remote" needs but I have tried many ways eg..

FreqString="{""Command"": ""Get"", ""Method"": ""IsPlaying""}"

FreqString="{\"Command\": \"Get\", \"Method\": \"IsPlaying\"}"

FreqString="{'Command': 'Get', 'Method': 'IsPlaying'}"

plus other and nothing.

Has anybody here used Net Remote with a script or even knows the proper way of handling quotes

Thanks

PE7000
Posts: 9
Joined: Mon Jan 15, 2018 9:42 pm

Re: Telnet and the Net Remote Plugin

Post by PE7000 » Mon Jan 15, 2018 10:03 pm

Hi,
You can also try putty 32/64 on a windows/linux machine or even on the Raspberry Pi.
This is a list of commands that i tested years a go. I hope the commands are all te same as before...
Tested also with arduino and a dial knob to change frequency. It was too fast, SDR# gets frozen.
So I've stopped working with this plugin, and I'm not a programmer.

Code: Select all

Net Remote via PuTTY for SDR#Sharp Rev. 1420

Net Remote plugin for SDR#Sharp
http://eartoearoak.com/software/sdrsharp-net-remote
GitHub: https://github.com/EarToEarOak/SDRSharp-Net-Remote/releases

Telnet via PuTTY:
A Windows installer for everything except PuTTYtel
Installer: putty-0.65-installer.exe
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

-------------------------------------------------------------------
Edit: 8-3-2016

If 'Serial' is enabled in the control panel commands will be read
from the serial port, currently the port defaults to 115200 8N1.

Or to test if SDRSharp is currently playing:

{"Command": "Get", "Method": "IsPlaying"}

Which returns:

{"IsPlaying":true}

-------------------------------------------------------------------

Net Remote via PuTTY for test SDR#Sharp Rev. 1420
Start PuTTY with Telnet on localhost or ip 127.0.0.1 Port 3382
Results on screen
{"Name":"Net Remote","Version":"1.2.5771.21118"}

----------------------------------------------------------------

[Test if SDRSharp is currently playing]
{"Command": "Get", "Method": "IsPlaying"}

Which returns:

{"IsPlaying":true}

----------------------------------------------------------------

[Set Start of SDR#Sharp]
{"Command": "Exe", "Method": "Start", "Value": true}

[Set Stop of SDR#Sharp]
{"Command": "Exe", "Method": "Stop", "Value": true}

----------------------------------------------------------------

[Set Net Remote off Closing Network Connection]
{"Command": "Exe", "Method": "Close", "Value": true}

----------------------------------------------------------------

[Get value of Audio Gain]
{"Command": "Get", "Method": "AudioGain"}

[Set Audio Volume to 30 dB 25-60 Step 5 dB]
{"Command": "Set", "Method": "AudioGain", "Value": 30}

[Set Audio Volume to 45 dB]
{"Command": "Set", "Method": "AudioGain", "Value": 45}

[Set Audio Volume to 60 dB]
{"Command": "Set", "Method": "AudioGain", "Value": 60}

----------------------------------------------------------------

[Get value of Audio Mute]
{"Command": "Get", "Method": "AudioIsMuted"}

[Set Audio Mute on]
{"Command": "Set", "Method": "AudioIsMuted", "Value": true}

[Set Audio Mute off]
{"Command": "Set", "Method": "AudioIsMuted", "Value": false}

----------------------------------------------------------------

[Get value of Detector Type]
{"Command": "Get", "Method": "DetectorType"}

[Set Modulation type]
{"Command": "Set", "Method": "DetectorType", "Value": "NFM"}

{"Command": "Set", "Method": "DetectorType", "Value": "AM"}

{"Command": "Set", "Method": "DetectorType", "Value": "LSB"}

{"Command": "Set", "Method": "DetectorType", "Value": "USB"}

{"Command": "Set", "Method": "DetectorType", "Value": "WFM"}

{"Command": "Set", "Method": "DetectorType", "Value": "DSB"}

{"Command": "Set", "Method": "DetectorType", "Value": "CW"}

{"Command": "Set", "Method": "DetectorType", "Value": "RAW"}

----------------------------------------------------------------

[Get value of Filter 1-6]
{"Command": "Get", "Method": "FilterType"}

[Set Filter Type 1 Hamming]
{"Command": "Set", "Method": "FilterType", "Value": 1}

[Set Filter Type 2 Blackman]
{"Command": "Set", "Method": "FilterType", "Value": 2}

[Set Filter Type 3 Blackman-Harris 4]
{"Command": "Set", "Method": "FilterType", "Value": 3}

[Set Filter Type 4 Blackman-Harris 7]
{"Command": "Set", "Method": "FilterType", "Value": 4}

[Set Filter Type 5 Han-Poisson]
{"Command": "Set", "Method": "FilterType", "Value": 5}

[Set Filter Type 6 Youssef]
{"Command": "Set", "Method": "FilterType", "Value": 6}

----------------------------------------------------------------

[Get value of Bandwidth]
{"Command": "Get", "Method": "FilterBandwidth"}

[Set NFM Bandwidth default settings]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 008000}

[Set AM Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 010000}

[Set LSB Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 002400}

[Set USB Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 002400}

[Set WFM Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 200000}

[Set DSB Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 006000}

[Set CW Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 000300}

[Set RAW Bandwidth]
{"Command": "Set", "Method": "FilterBandwidth", "Value": 010000}

----------------------------------------------------------------

[Get value of Filter Order]
{"Command": "Get", "Method": "FilterOrder"}

[Set default Filter Order for NFM/AM/LSB/USB/DSB/CW/RAW]
{"Command": "Set", "Method": "FilterOrder", "Value": 1000}

{"Result":"Error","Type":"Value error","Message":"Greater than 100"}

[Set default Filter Order for WFM]
{"Command": "Set", "Method": "FilterOrder", "Value": 250}

----------------------------------------------------------------

[Get value of Squelch]
{"Command": "Get", "Method": "SquelchEnabled"}

[Set Squelch on/off]
{"Command": "Set", "Method": "SquelchEnabled", "Value": true}

{"Command": "Set", "Method": "SquelchEnabled", "Value": false}

----------------------------------------------------------------

[Get value of Squelch setting]
{"Command": "Get", "Method": "SquelchThreshold"}

[Set Squelch Value 0-100]
{"Command": "Set", "Method": "SquelchThreshold", "Value": 70}

[Set Squelch Value to 50]
{"Command": "Set", "Method": "SquelchThreshold", "Value": 50}

----------------------------------------------------------------

[Get value of FM Stereo]
{"Command": "Get", "Method": "FmStereo"}

[Set FM Stereo on/off]
{"Command": "Set", "Method": "FmStereo", "Value": true}

{"Command": "Set", "Method": "FmStereo", "Value": false}

----------------------------------------------------------------

[Get value of Frequency]
{"Command": "Get", "Method": "Frequency"}

[Set Frequency to 97.5 MHz 000 000 000 000]
{"Command": "Set", "Method": "Frequency", "Value": 97500000}

[Set Frequency to 104.4 MHz]
{"Command": "Set", "Method": "Frequency", "Value": 104400000}

[Set Frequency to 145.750 MHz and change Mode, Squelch]
{"Command": "Set", "Method": "Frequency", "Value": 145750000}
{"Command": "Set", "Method": "DetectorType", "Value": "NFM"}
{"Command": "Set", "Method": "SquelchEnabled", "Value": true}
{"Command": "Set", "Method": "SquelchThreshold", "Value": 75}

----------------------------------------------------------------

TEST for Ham Radio on 70cm Band

[Set Frequency and Mode]
{"Command": "Set", "Method": "Frequency", "Value": 430125000}
or
{"Command": "Set", "Method": "Frequency", "Value": 430275000}
{"Command": "Set", "Method": "DetectorType", "Value": "NFM"}

[Set Squelch on and Set Squelch value to 75
{"Command": "Set", "Method": "SquelchEnabled", "Value": true}
{"Command": "Set", "Method": "SquelchThreshold", "Value": 75}

----------------------------------------------------------------

[Short Notations, remove the space between the items]
{"Command":"Set","Method":"Frequency","Value":430125000}
{"Command":"Set","Method":"Frequency","Value":430275000}
Billy

Post Reply