Remote (virtualized) CW

User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Remote (virtualized) CW

Postby w-u-2-o » Sat Jun 15, 2019 2:05 pm

Remote/virtualized CW: running CW by connecting a key to your PC and listening to audio on your PC via VAC.

It has long been believed that remote/virtualized CW is not possible due to high signal latencies in a virtualized environment. However, this is not strictly true any longer. Remote CW with PowerSDR and Thetis ranges from "merely doable" to "provides perfect QSK performance", depending upon your operating environment.

Hardware requirements:

- Key or paddle
- 9 pin serial port (USB, built-in or PCIE card)
- Cable between key or paddle and the serial port
- Speakers connected to your PC
- Code oscillator (optional and/or not required--see below)
- ASIO-capable sound interface (highly desirable, required for QSK with Protocol 2)

Connecting the key or paddle:

Method 1, paddle/iambic key,
- In Setup > DSP > CW set Primary to COMx and Secondary to None.
- Attach the DIT connection to the DSR input on pin 6
- Attach the DAH connection to the CTS input on pin 8
- You can use usually use the RTS output on pin 7 as the common connection, the DTR output on pin 4 can also be used.

Method 2, straight key or external keyer output,
- In Setup > DSP > CW set Secondary to COMx and Primary to Radio or None
- In Setup > DSP > CW set PTT Line to None and Key Line to RTS
- Attach the key across the RTS output on pin 7 and the CTS input on pin 8
- (Alternate arrangement: set Key Line to DTR, attach key across DTR output on pin 4 and DSR input on pin 6)

Connecting speakers:

See my VAC tutorial here: https://apache-labs.com/community/viewtopic.php?f=13&t=2655

For optimum performance you want to use an audio interface that supports the high-speed ASIO audio driver. A very good choice is the Behringer UMC202HD, which seems to have the most stable drivers and is at a compelling price point, but there are many other choices. You must spend quality time tweaking your buffer and buffer latency settings to the minimum possible on your system. With Protocol 2 and ASIO always set the PortAudio settings to zero. You also must use either the low latency filter setting (any size) or a linear phase filter of no larger than 1024.

For QSK under Protocol 2 an ASIO interface is mandatory. Normal Windows sound drivers are just too slow.

Configurations vs. available perfomance (PowerSDR implies Protocol 1 firmware, Thetis implies Protocol 2 firmware):

PowerSDR with normal Windows sound drivers--you can send and receive, but latency is pretty bad. No QSK. There will be no sidetone unless you attach a code oscillator right to the key or paddle.

PowerSDR with ASIO sound drivers and interface--with properly adjusted driver and VAC settings, perfect performance. No QSK. Again, if you want sidetone you have to generate it locally yourself the old fashioned way, with a separate code oscillator.

Thetis with the new QSK feature turned off and normal Windows sound drivers--same as for PowerSDR above.

The following configurations require ANAN-200D, 7000 or 8000 series radio hardware.

Thetis with the new QSK feature turned on and Windows sound drivers--too frustrating to use due to latency, not recommended.

Thetis with the new QSK feature turned on with ASIO sound drivers and interface--with a properly adjusted driver and VAC settings, perfect QSK performance. And perfect sidetone is obtained from your own signal coming back into the radio full duplex.

Thanks to recent work by W1PA (software) and N1GP (firmware), this last configuration is really a stellar performer. Set up properly you will enjoy using it quite a bit! :)

...
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Fri Oct 18, 2024 6:55 pm

Thetis with the new QSK feature turned on with ASIO sound drivers and interface--with a properly adjusted driver and VAC settings, perfect QSK performance. And perfect sidetone is obtained from your own signal coming back into the radio full duplex.


This is very useful information for somebody new to the Anan/Thetis and who mainly operates in CW.

Is it really true that you hear the CW sidetone with a capable sound card (cmASIO setup)?
So far I played with my computer's internal sound card (Realtek) and the ASIO4ALL driver. I get a green indication from cmASIO but beside a terrible sound (changing block numbers did not help) there is no CW sidetone. The sidetone is only available at the audio outlet of the G2 and l assume it is not being streamed. Maybe it is just related to the limited performance of the Realtek soundcard and I should invest in Behringer external device but I guess the sidetone is only available when using DUP and MON together with QSK which would be a No-Go for me as it would heavily stress the relais of my amp.
It might be anyway a good idea to go with an external sound card as I have all sort of issues with the Realtek (VAC 2 not working at all, only acceptable quality with windows drivers on VAC 1, poor quality together with the ASIO4ALL driver,...). However, I assume this will not solve the CW sidetone. Has anybody played and successfully setup a WINKEY emulation app between N1MM+ and Thetis? There is an app called CW Sidetone but I still have not figured out the correct settings and get it working. Is there somebody who has solved this?

Cheers,

Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Fri Oct 18, 2024 8:13 pm

Sidetone via Thetis/PC audio is only available with QSK. If you don't want to run full-break-in QSK because of relays then no sidetone via that path. This is because your "sidetone" is really your signal going out over the air that you are listening to in full duplex TX/RX mode.

ASIO4ALL is not a true ASIO device. It is WDM audio in a fake ASIO wrapper. It generally does not work well and it certainly does not deliver the speed of a real ASIO driver. If you do wish to use cmASIO it is best to get a sound card or sound interface that has a native ASIO driver.

This topic is quite old. FWIW, now that I've started to dabble in CW myself, I've found the QSK sidetone mechanism to have too much latency. My solution is to use an external keyer with built-in sidetone generator. I bought an OpenCWKeyer MK2. It is possibly the perfect keyer for ANAN/Thetis users as, like our radios and software, it is completely open source. The hardware design is on Github, and it runs the impressive K3NG software, also on Git.

I quickly tricked out my keyer by upgrading the Arduino Nano it came with to the more powerful Arduino Nano Every. The Every has enough memory to add the display, USB serial control, and Winkeyer functions. I also added a cute little 8x2 OLED display.

IMG20241007095521.jpg
IMG20241007095521.jpg (3 MiB) Viewed 62734 times
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Sat Oct 19, 2024 1:00 am

Thanks, Scott - yes, this or another keyer would do . I assume then there is no need for a native ASIO device anymore as a latency of 100ms or even more is less critical when replying in CW as long as the sidetone is in sync with your paddle movements.

I am still looking for a soft solution like the CW Sidetone app which is in between Thetis and a software supporting winkeyer as e.g. N1MM+. Maybe somebody has a similar setup.

73, Michael
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Wed Oct 23, 2024 10:02 pm

Scott,

as for some reasons the CW sidetone app is causing a lot of issues with the different virtual cables, I am inclined to buy either a OpenCW Keyer, or a Nanokeyer or a Winkeyer. However, I still have a question when operating with a headset. I assume that the sidetone is only available via a internal speaker of the keyer or is there a way to feed the sidetone to the VAC?

73, Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Thu Oct 24, 2024 12:19 am

I would suggest modifying what ever keyer you decide upon with an audio out jack. Then obtain an inexpensive two-input headphone mixer from Amazon (or wherever). Use the headphone output of the Realtek. Combine the two audio sources in the mixer. Cheap, simple, and no latency.
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Thu Oct 24, 2024 4:46 am

Thanks - this sounds like a straight forward, simple solution.
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Fri Nov 01, 2024 10:31 pm

I played a bit with a WK USB Keyer provided to me by a friend for testing the device with the G2 but I am not sure if I miss something.

I am using the keyer with N1MM - setting N1MM to the WK port and selecting winkeyer. Thetis is CAT controlling N1MM. When using N1MM (e.g. crtl+k and writing some text), I hear the CW text in the WK and MOX is engaged but no RF is being sent. RF is only transmitted when connecting a cable between the WK output port (e.g key 1) to the input key at the G2. I assumed that the usb connection between WK and the computer is providing the keying via CAT control to the radio but I am apparently wrong, or have I missed a setting?

I also hear a strange sound - like a double relais switching - when using N1MM for keying (eg. free text or the function buttons) whereas when keying with the paddles, I can hear only one relais switching. Is this normal or related to a wrong setting (e.g. engaging the PTT by CAT control and by the keyer input with some time difference due to the latency?)

In case the keying cable is needed then the WK is not really a solution (besides a cleaner CW timing) as I can directly use a virtual com port, assign it in N1MM to DTR=CW and within Thetis in DSP-CW as a secondary connection. The paddles could then be connected directly into the radio.

73, Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Sat Nov 02, 2024 2:10 pm

Originally your question was about obtaining good, local sidetone with the ANAN (assumed by me to be) distant from the operating location.

Now it's about using a Winkeyer with N1MM and the ANAN is at the operating location. Two different subjects.

IMHO, using Winkeyer with N1MM is redundant. N1MM directly to the Thetis is a lot simpler. Some folks have reported problems with N1MM direct, but I suspect these are folks who want to send at very high speeds.
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Sat Nov 02, 2024 7:41 pm

Hi Scott,

no - you are right - this is what I am trying to achieve. Working cw from a remote location within the same network and having a sidetone available but I fail to understand how this could be achieved with the WK as it needs to be connected to the radio via the output port otherwise there is no RF output. Could you please outline how it should be connected and which settings are mandatory?

Best regards,

Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Mon Nov 11, 2024 4:35 pm

Michael wrote:Hi Scott,

no - you are right - this is what I am trying to achieve. Working cw from a remote location within the same network and having a sidetone available but I fail to understand how this could be achieved with the WK as it needs to be connected to the radio via the output port otherwise there is no RF output. Could you please outline how it should be connected and which settings are mandatory?

Sorry, Mike, I dropped the ball on this.

As described in the very first post in this topic (above), you want to take the key and PTT outputs of the Winkeyer and connect them to a serial port on the Thetis PC. Do not confuse this with the USB connection that already exists. And, as described above, go into Thetis > Setup > DSP > CW and setup that serial port.

However, I did run into one issue when I did this with the OpenCWKeyer. If you have a key or keyer that is literally just a dry switch or relay type contact then making simple connections to the Thetis remote key serial port is straightforward. However, it seems most keyers are using opto-isolated outputs that are floating when unkeyed and grounded when keyed. To solve this issue I built the following circuit:


Capture.JPG
Capture.JPG (116.73 KiB) Viewed 61556 times


I was able to build this into a DE9 breakout style connector housing by removing the screw terminals and adding a small stripboard assembly. I recommend using something with a metal backshell. The cable is simply a 3.5mm shielded stereo audio cable with one end cut off for the DE9 side.


IMG20240909172212.jpg
IMG20240909172212.jpg (3.85 MiB) Viewed 61556 times
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Tue Nov 12, 2024 8:58 am

Great, Scott - I overlooked this and it is exactly what I was looking for. I will build something similar.

Best regards,

Michael
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Wed Nov 20, 2024 3:47 pm

In the meantime I tested the setup with the Winkeyer. This works nice and does not require any additional circuit (only pin 4 and 6 of the female RS232 plug need to be connected to the Winkeyer outlet (Gnd and Tip)) and in Thetis the secondary cw usb port needs to be defined. Unfortunately, the sidetone is only available from the Winkeyer which sounds terrible and which has no dedicated audio outlet. Furthermore, controlling freq and volume is limited and only possible via the WinkeyerTools (WK3Tools) which only can be used when ports are disconnected.

Therefore I was further seeking for a software solution and came across CWType, a CW training software which appears to be the only (? - maybe I am wrong) CW training software which provides a clean sidetone and let you define two ports, one for the keyer and one for the rig. Besides the usb/rs232 adapter and a cable connecting pin 4, 6, 8 to the GND, RING, Tip of the keyer plug, there are dedicated adapters on the market which let you directly plug-in your keyer. Within CWType the keyer port is the USB com port of the USB/RS232 adapter and the rig port is a virtual com cable pair, one end used in CWType and the other in Thetis as e.g primary or secondary connection (DSP -> CONNECTION->CW).

CWType let you define the sound interface for the sidetone. As I am using cmASIO with Voicemeeter, I tried first any additional Voicemeeter input, however, the latency is too high. This is not the case when selecting directly an output device (e.g. speaker of the computer or headphones) within CWType. It then will superimpose the sidetone on the stream on this device (e.g stemming from Voicemeeter). As unfortunately the sidetone volume cannot be controlled within CWType, superimposing both audio streams is not recommended as the sidetone is far too loud. It is definitely 'healthier' to use two dedicated output devices e.g. headphone and speakers.

In case you are aware of other CW typing software which generates a sidetone and let you define two ports, one for the keyer and one for the rig, please let me know.

73, Michael, DF2RQ
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Wed Nov 20, 2024 4:39 pm

Very interesting! I've downloaded CWType and will give that a try.
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Sat Nov 23, 2024 6:36 pm

Michael wrote:Therefore I was further seeking for a software solution and came across CWType

I can't get CWType to accept a COM port paddle input. The paddle and keyer work perfectly fine with Thetis, meaning I can plug in either one to my COM port and either one will happily key Thetis. But CWType doesn't see them.
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Mon Nov 25, 2024 1:10 pm

hmmm.....it works here. I plug in my paddles via a RS232-usb adapter. I think the adapter need to be connected to the computer before you start CWType otherwise the assigned com port will not show up in CWType .

I was busy with the CQWWDX Contest while experiencing another problem (likely relating to hot switching of the PTT relay) but I guess this needs to be discussed in another thread.

Cheers,

Michael
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Wed Nov 27, 2024 4:04 pm

btw, Scott, I am not quite sure why but now I get a dedicated mixer for CWType which let me regulate separately the sidetone volume. Maybe related to the fact that I am not using cmASIO but only ASIO with Voicemeeter Virtual ASIO now.

Here screenshots of my setting:

Screenshot 2024-11-27 164307.png
Screenshot 2024-11-27 164307.png (773.5 KiB) Viewed 59782 times

Screenshot 2024-11-27 163535.png
Screenshot 2024-11-27 163535.png (111.56 KiB) Viewed 59782 times

Screenshot 2024-11-27 163343.png
Screenshot 2024-11-27 163343.png (55.18 KiB) Viewed 59782 times


- com18 and com19 is the virtual com pair.
- com8 is the usb/rs232 adapter with the paddles connected (pin 4,6,8)
- com3 is a virtual port which is used by N1MM+ (DTR=CW, RTS Always off)

73, Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Wed Nov 27, 2024 6:05 pm

cmASIO or ASIO should have no bearing on whether or not Windows mixer shows a control for CWType. I use cmASIO and run all my Windows sound through my Presonus ASIO interface and I get the control in Windows mixer, no fuss, no muss.

What you have done is exactly what I was trying to do. For reasons unknown I cannot get CWType to see the paddle, whereas Thetis sees it fine (albeit only one side at a time, or via Open CW Keyer hardware). For this reason I know the cable, interface circuit and serial port are good. It must be some sort of incompatible driver. CWType is a very old program that has never been updated.
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Mon Feb 24, 2025 12:11 pm

Scott - another solution to operate CW remotely with a local generated sidetone based on a server/client setup.

https://www.qsl.net/dl4yhf/Remote_CW_Ke ... _Keyer.htm

The software can be configured as a server (next to the station) and as a client (on the remote computer) with a local side tone generator. The keyer is connected via a RS232 /USB adapter.

73, Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Mon Feb 24, 2025 7:49 pm

Hi Michael,

That's an interesting bit of software. I don't need over the internet remote operation, just that my Thetis PC is remote from the rest of the station, meaning I would have to run a loooong cable to connect a paddle to the ANAN, or do something crazy like IoT wireless with the paddle.

I did get the software running. Right now something is a little weird. I can send very nicely with the hardware OpenCWKeyer, but the software keyer in Remote CW Keyer has me screwing up all the time. Something subtle is going on that I need to further investigate.

73!

Scott
Michael
Posts: 56
Joined: Fri Sep 13, 2024 7:27 pm

Re: Remote (virtualized) CW

Postby Michael » Wed Feb 26, 2025 9:03 am

Yes, you are really right. This solution requires a windows pc next to the Anan. I decided to go this way which offers a range of advantages for remote operation (eg. Powering up the PC remotely via WOL, using Remote Desktop, Vnc, or any other virtual desktop environment and to start / shut down the G2 using a USBrelay together with a software simulating the start/shutdown procedure of the G2.

I connected the paddles directly via a rs232 / usb adapter to the remote computer which works fine, too. I know there are others who use a winkeyer in between but I do not see any advantage.

Another issue (maybe which requires a new topic as I have not found any post related to this).

When operating CW in higher speed for a longer period eg in a contest for some 15-30 min strange CW signals (and sound) are being sent. This stumbling cw behavior disappears after a minute or so. It happens when keying via N1MM+ as well as when keying with paddle connected to the G2. Sounds like RF is entering the G2 or - which is more likely - there is a hot switching of a relay which cannot handle high speed CW for a longer time. Has anybody experienced a similar issue? Any suggestions to solve this?

Cheers, Michael
User avatar
w-u-2-o
Posts: 5912
Joined: Fri Mar 10, 2017 1:47 pm

Re: Remote (virtualized) CW

Postby w-u-2-o » Wed Feb 26, 2025 3:26 pm

You have to have a "server" PC adjacent to the ANAN for truly remote operations, i.e. operations over the internet (WAN). For operations over your local LAN (sort of remote :) ) nothing like that is required, you can do everything over the LAN including CW. It must be a wired connection though, Wi-Fi will not work, at least not without a LOT of fussing around and limitations on sample rates.

Yes, it would be better if you started a separate topic on your other problem.

Return to “Keys, Keyers, Paddles & Bugs”