C# Omnirig interface question

General discussions V2
Post Reply
s53c
New user
Posts: 2
Joined: 10 Mar 2019, 14:41

C# Omnirig interface question

Post by s53c »

I apologize because my question is off-topic.
I am writing a piece of software to control the transceiver using C# and Omnirig. I can use most of the functionality available in it. However, the major issue I'm facing is figuring out how to switch the rig from transmit and back to receive. I know that most (if not all) Log4OM code is written in C#, so I wonder if one of the Log4OM team members would be kind enough to tell me how to do it?
User avatar
CT1BXX
Old Man
Posts: 483
Joined: 21 Jan 2013, 15:27

Re: C# Omnirig interface question

Post by CT1BXX »

Hi Vladimir,

I can't answer your question, partly because I don't know how to program in C#, however, I will share with you an experience I had a few years ago in VB6.
I made a command in VB6 to control a Yaesu FT-100, switching from TX/RX was done by clicking a button where I had placed the command related to the FT100 for that purpose.
In my view, the best situation would be to create buttons that can be configured according to what the user wants the radio to do, and the user can input the code for the radio they have, something similar to what the Commander from DXLab or FLRig has.
Of course, the user will need to have knowledge of the commands that their radio uses for this or that functionality, but that comes along with the manual of each radio.
The 'PC Control Command - Reference Guide' is also available on the internet.
At the moment, I use FLRig and sometimes the Commander from DXLab to control the radio, but I have configured several buttons so that I can do it through the software without having to touch the radio (TS-990).
I hope I have somehow provided ideas that may assist in your work. We are waiting because I think a CatCommand would be a big step for our excellent LOG4OM. :)
73 Manuel Fernando CT1BXX
s53c
New user
Posts: 2
Joined: 10 Mar 2019, 14:41

Re: C# Omnirig interface question

Post by s53c »

Hi CT1BXX,
I considered programming the TRX TS-590SG directly from C#. However, I finally decided that it would be better to use a program that supports multiple rigs from various manufacturers. Two such libraries are Hamlib and OmniRig. I found no references about using the first one, for the OmniRig, I found its source code (Delphi). OmniRig installs a COM (Component Object Model) library on a Windows PC. Unfortunately, I have no docs for this COM component. Visual Studio projects can reference this. VS IDE has an integral code assistant (or you can use the Copilot). So I can use most of the commands except the TX and RX, which are defined slightly differently than the others. I can not figure out how to use them.

I was unaware of the DxLab's commander, and will look at it, but I have no high hopes about it, as it most probably does not use OmniRig

Thanks for trying to help.
Regards, Vladimir, S53C
User avatar
CT1BXX
Old Man
Posts: 483
Joined: 21 Jan 2013, 15:27

Re: C# Omnirig interface question

Post by CT1BXX »

Hi Vladimir

I Would sugest you see this website. https://www.pianetaradio.it/blog/catradio/
Is a coleague creating a cat and as far as I know it uses Hamlib, perhaps you can have some help from him.

Link
https://www.pianetaradio.it/blog/catradio/
73 Manuel Fernando CT1BXX
Post Reply