Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I...

18
Remote Control Step by Step OH7KD 2/2017

Transcript of Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I...

Page 1: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Remote Control Step by StepOH7KD

2/2017

Page 2: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

KISS – Logging SW and Remote Desktop only- If you can use your station from PC, you can use it remotely- TeamViewer, Chrome Remote Desktop, VNC… e.g. TeamViewer does not require port forwarding- Audio through Skype or RemAud (http://www.df3cb.com/remaud/)- Using local applications with Remote

Desktop may be difficult- Possible problems with key combinations

(e.g. CTRL + something)

Page 3: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager Server+Client only - Only needs TRX-Manager configuration and router port forwarding, Skype or RemAud for audio- No integration with other log/contest software (TRX-Manager has logging, though)

Page 4: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager Server+Client and N1MM- N1MM syncs with TRX-M Client, Skype or RemAud for audio- You can use two or more PC's at remote location, e.g. N1MM/TRX-M & TeamViewer

PC1: N1MM & TRX-Mgr Client

PC2/Tablet: Remote Destktop (TeamViewer)

Page 5: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Hardware components at OH7KD

Rotator ControlRasPi + GY26

K1EL Winkeyer

Ant SwitchingAmeritron RCS-4 +USB Relay Board

Elecraft KX3

ACOM 600S

USB (CAT)

ON/OFF

Audio

I/Q Audio

CAT & ON/OFF

USB to Serial(8-ch)

Mic

CAT

Spkr/Mic

I/Q

USBUSB

USB

LANEthernet Router

LAN

Internet

PC (Windows 10)

TRX-MangerTeamViewer

Skype

Rig on/off

ACOM on/off

Serial to IP

Port Forwarding

Rotator ControlRasPi + GY26

Page 6: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

N1MM Setup – Communication

Winkeyer in N1MM

Rig Cntrl in N1MMTRX-

ManagerClient

TRX-Manager

Server

Internet

SDR-RX Control

Rig Control

Antenna Select

Amplifier Control

Rotator Ctrl in N1MM

Winkeyer

Raspberry Pi

com2tcpcom2tcp

com2tcp

Skype Audio Skype Audio

TeamViewer (SDR, Remote Desktop)

TeamViewer (SDR, Remote Desktiop)

VSP VSP

VSP

VSP = Virtual Serial Port

Page 7: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Virtual Serial Ports – VSP-ManagerVSP Manager – free for hams:http://k5fr.com/DDUtilV3wiki/index.php?title=VSP_Manager

- Very easy to use- Reliable- Rig Control (N1MM <-> TRX-Manager)- Winkeyer (N1MM <-> Winkeyer)- Tower (N1MM <-> Raspberry Pi)

Page 8: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Serial Port (Virtual or Physical) to TCP –com2tcpSeveral options, I chose com2tcp (command line) because it is easy to add to the N1MM startup script.

com2tcp is part of com0com project:https://sourceforge.net/projects/com0com/

- Example: call "cmd /c start C:\Users\marko.markkanen\com2tcp.exe --baud 1200 --telnet --ignore-dsr \\.\COM8 192.168.8.223 9980“

- Requires also com to com application. I use VSP Manager.

- com2tcp is unsigned application, so you may have to disable ’Driver Signature Enforcement’ (small security risk):

- Press Start->Search->cmd then right-click on it and click Run as administrator. In the CMD window type bcdedit /set testsigning off and press enter. Restart PC.

- After this you will see ‘Test Mode’ watermark on desktop. Instructions to remove watermark and more information about Test Mode, including risks: http://maxedtech.com/about-testmode/

TCP to Serialcom2tcp.exe

COM8 <-> RasPi:9980

N1MMCOM9 - Rotator

Virtual COM-portVSP Manager

COM9 <-> COM8

Internet/LAN

Raspberry PiRotator Control

Port 9980

Example:

Page 9: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Rotator Control – Hardware at OH7KD

Power Supply

Tower Unit Outside of the House Inside

WiFi Router

Serial & Power

LAN & Power

230VAC only when necessaryTelldus Net

Wireless WallSocket Switch

5V Relay Board PoE PoE WiFi Dongle

Compass ModuleGY-26

CW & CCW Relays

Page 10: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Rotator Control

CW / CCW 230VACRelays

5V Relay Board

Raspberry Pi

- Python software by OH7KD- Connects to Compass by

serial port- Control through web page

or socket connection (telnet)

- Emulates AlfaSpid, logging software can connect using virtual serial port

Compass Module

LAN & PowerSerial & Power

Control & Power

Web Page – port 80

Telnet – port 9980 – additional clients,e.g. N1MM

TCP to Serialcom2tcp.exe

(COM8)

N1MMRemote User

(COM9)

Virtual COM-portVSP Manager

(COM8 →

Telnet – oh7kd.dyn.org:9980

Tower UnitTCP to Serialcom2tcp.exe

(COM31)

TRX-ManagerHam Shack(COM21)

Virtual COM-portVSP Manager

(COM31 ->

Telnet – 192.168.5.5:9980

Router port forwarding: 9980 -> RasPi:9980 (Telnet/Virtual Serial Ports) and 7373 -> RasPi:80 (Web Pages)

Remote PC Ham Shack PC

Page 11: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Antenna Switching VB.Net app to setup correct mode after power on

Module Module1Sub Main()

Dim strArg() As StringstrArg = Command().Split(" ")Dim port As String = strArg(0)

Using com1 As IO.Ports.SerialPort =My.Computer.Ports.OpenSerialPort(port)

System.Threading.Thread.Sleep(500)com1.Write("P")System.Threading.Thread.Sleep(500)com1.Write("Q")

End UsingEnd Sub

End Module ’ useage ’AntSelectInit.exe COM23’MAN

USBRelay Unit

AC+12 V-12 VGND

USB

Coax to RemoteRelay Unit

Ameritron RCS-4 Control Unit

IC Station USB Relay Module- No programming

- Control by virtual serial port (binary)- After power up requires 2

commands to setup correct mode

Auto / Man switch on front

panel

AUTO

Handled by TRX-Manager in Ham Shack

RF

Page 12: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Winkeyer over Internet

WinkeyerUSB

TCP to Serialcom2tcp.exe (Server mode)COM13 -> TCP/IP Port 5999

call "cmd /c start C:\Users\kd\com2tcp --baud 1200 --telnet --ignore-dsr \\.\COM13 5999"

N1MM(COM12 – Winkeyer)

Virtual COM-portVSP Manager(COM13 -> COM12)

Ham Shack PC

Router port forwarding: 5999 -> PC:5999

COM13

TCP to Serialcom2tcp.exe(COM13)

LAN port 5999

call "cmd /c start C:\Users\kd\com2tcp.exe--baud 1200 --telnet --ignore-dsr\\.\COM13 oh7kd.dyndns.org 5999"

Remote User

- I did not get CW working over N1MM + TRX-Manager Server/Client.- Using Winkeyer over Internet instead.

Page 13: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager Client Settings (Remote User)

TRX-Manager: TRX 1 = Remote- Connects to TRX-Manager Server

TRX-Manager: Synchro A = Kenwood / COM2

VSP Manager: COM2 <-> COM1

N1MM: COM1 = Kenwood Radio

Page 14: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager Server Settings (Ham Shack)

TRX-Manager: TRX 1 = Elecraft KX3 / COM3:

TRX-Manager: Synchro A = ACOM600S / COM4:

TRX-Manager: BandDCD = COM14:

TRX-Manager: Rotator 1 = AlfaSpid (COM21):

+ VSP-Mgr (Com21->Com31) & com2tcp (Com31->RasPi)

TRX-Manager: Enable Remote TRX Server (+routing):

Page 15: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

Startup scripts

REM Tower Controlcall "cmd /c start C:\Users\marko.markkanen\com2tcp.exe --baud 1200 --telnet --ignore-dsr \\.\COM8 oh7kd.dyndsn.org 9980"

REM K1EL Wineyercall "cmd /c start C:\Users\marko.markkanen\com2tcp.exe --baud 1200 --telnet --ignore-dsr \\.\COM13 oh7kd.dyndns.org 5999"

"C:\Program Files (x86)\N1MM Logger+\N1MMLogger.net.exe"

N1MM_Client_Side.bat

REM Start com2tcp server for Winkeyercall "cmd /c start C:\Users\kd\com2tcp --baud 1200 --telnet --ignore-dsr \\.\COM13 5999"

REM Tower control from TRX-Manager (Tower can be controlled also from TRX-Manager)call "cmd /c start C:\Users\kd\com2tcp --baud 1200 --telnet --ignore-dsr \\.\COM31 192.168.8.223 9980"

"C:\Program Files (x86)\TRX-Manager\TRX-Manager.exe"

TRX-Manager_Server.bat

Page 16: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager Web Client- Control your station from Web Browser

over Internet- Password protected- Useable from smartphone- Use Skype for audio- 3 CW memories- 3 Macro buttons- Click DX-spot or tune manually- Rotator control- Log Spot button -> add QSO to TRX-

Manger logbook- Good enough for working CW DX pileup

(Call + 599)

Page 17: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

TRX-Manager - Only available at Server, use TeamViewer

Page 18: Remote Control Step by Step - Kotisivukone · Remote Control Step by Step ... Several options, I chose com2tcp (command line) ... In the CMD window type bcdedit /set testsigning

The End

For questions, comments or Tower Control SW/HW requests email [email protected]