TCI in wfview

In my custom Mac build of wfview I removed the old TCI 1.9 implementation and wrote a new TCI server from the TCI 2.1 spec document. I added a tciaudiobridge to get audio from serial-connected rigs to the TCI audio stream. Tested against ExpertSDR3 and a TCI 2.1 client implementation in my iPadOS port of JS8Call it works perfectly.

However, what is the thoughts on TCI here? It seems to be a nice protocol when it works. But it also seems to be a moving target. Various other applications like WSJT-X have it, but it’s not compatible with other software that has it. Any slight alteration to the command verbs, parameters, or handshake expectations between TCI versions completely breaks it. Making it a maintenance nightmare. The guys at Expert Electronics don’t seem to jump right in and offer to maintain it on open-source projects. Since ExpertSDR3 is proprietary closed-source code they can implement whatever they want, publish their open spec, but that doesn’t mean it always works.

What is the plans for TCI here, going forward?

We are pretty keen to maintain TCI in wfview, despite the moving goal posts of the protocol. TCI is exactly what we should have in ham radio. It’s so much better than virtual audio cables, virtual serial ports, rigctld, etc.

If you want to work on wfview’s TCI, please see the “v3-initial” branch on our github repo. It’s got a few TCI fixes already.

–E
de W6EL

I’m pretty sure my TCI 2.1 server in my custom Mac build will drop right in there, along with the TCI audio bridge to get audio from serial-connected rigs to the TCI stream. I’ll test that.

I spent a lot of time today working on TCI, with this as the client side.

I found a number of interesting issues. The most glaring were issues with the transmit audio cadence and the ability of a repeating command to dominate the command queue.

I prefer, strongly, that we do not send raw serial data from TCI to the radio. wfview has rig abstraction which should be used here. Sending serial data to a radio that wfview already supports should be seen as redundant. If there are commands missing, let’s add them to the wfview rig files so that all connected clients of all formats can benefit.

If you have an updated TCI implementation, I would really like to check it out. TCI, when it works, is clearly superior to the other duct tape solutions.

--E

de W6EL

Hi Elliott,

So I can’t really do a PR from my working branch because it’s custom-built for Mac on Apple silicon only, uses Qt 6.12, has been updated to a more modern CMake build system. Attempting to PR from there would try to update your whole project structure. But the TCI-specific commits SHOULD work and the code is on my repo.

There’s three commits and they are the top three.

The first one (third one down) is a clean-room implementation of the TCI 2.1 specification from Expert Electronics. That spec PDF is on github under ExpertSDR3/TCI. That commit adds a TCI audio bridge since audio was never actually piped to the TCI 1.9 implementation that it replaced. This build was verified against ExpertSDR3 with logging to ensure it uses the proper spec and only implements float32 audio, which is the 2.1 spec default (and preferred). Very important that the duplex audio stream be handled correctly so the server can send the TX_CHRONO packets to the client for audio timing, or a TCI 2.1 client will not send Tx audio.

There is changes to wfmain on that one - ignore those as that was just a reformat of the code using clang-format.

This second commit adds the additional support for int16 audio, which the TCI 2.1 spec is also supposed to be backwards compatible with.

There is a third commit there (top one) that I just did today. But this one is very frustrating. It is purely a WSJT-X compatibility patch. WSJT-X has a broken implementation of TCI 1.4. Chris Esser has had a PR sitting there to fix it but the WSJT-X crew never does anything with it. If you look thru the code you’ll see my comments there, born out of frustration; they either did not read the spec, don’t understand it, or don’t know how to implement it. I do not know why that group expects developers to patch their TCI servers to be compatible with their broken implementation. I’m not doing it because it adds a bunch of code bloat just to handle their convoluted audio. So this patch, I would consider optional; it allows the current release of WS Digital Mode Suite to connect to the TCI 2.1 server, and decodes Rx audio. But it does not implement Tx audio because until they actually fix their TCI client it’s like beating your head against the wall. Like I said, Chris Esser has a PR there to fix it and bring WSJT-x up to the 2.1 spec. But those guys typically don’t merge those unless it comes from their core team. So it is what it is until they fix their client.

You can find the code on my github account, user Chris-AC9KH and look at the wfview repo. I couldn’t post the actual commit links here because your forum rejects it, nor could I post the link to the TCI 2.1 PDF.

Hope that helps.

Chris

Hi Chris,

We will certainly look into adding TCI as a way to connect to the radio. It would open a lot of doors.

I spent the past week working through many TCI issues as well as fine tuning the radio audio timing.

wfview’s current TCI is just for 3rd party applications, but I can see adding it as a way to get to the radio as well, for radios that have that.

73,

--E

de W6EL

Elliott,

Yes, it can be a TCI client like ExpertSDR3 and connect to a variety of different rigs as the SDR client software. Then it implements the TCI server so your digital mode software and logging programs can connect to it. My JS8Call-Mobile application for iPadOS uses it and it can connect to and control FlexRadio 6000, 8000, and Aurora-series transceivers thru SmartSDR on Mac without going thru FlexRadio’s CAT and DAX layers.

It is a very robust protocol when implemented correctly.