Change Mode using USB Cable

  • 1
  • Question
  • Updated 3 days ago
I am successfully using a USB cable to communicate with an Arduino-based mag loop controller.  The cable passes transmit and frequency comands but will not change the mode to AM for tuning the antenna from the Arduino.  

I presume that any remote tuner connected by USB would need an AM carrier.  I have not had success with DDUtil and would prefer the 'direct' USB cable option.  Has anyone been successful changing modes using the USB cable?

Thanks, Ron K2RAS
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes

Posted 2 weeks ago

  • 1
Photo of Mack McCormick

Mack McCormick, Elmer

  • 340 Posts
  • 119 Reply Likes
Ron,

The Flex USB cables output three types of data CAT (bi-directional), BCD, and Bit. All you should need to do is press the tune button in SmartSDR to cause the tuner to do its job. The tuner would need to be set to tune automatically. Tune is simply a carrier (CW) similar to an unmodulated AM carrier. If I've missed the point then perhaps you could provide specifics on the tuner you are using so that I can research it on the web.

73,

Mack
W4AX
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
Mack, thanks for replying.  Actually I do not want to use the Flexradio tuner.  My application is a mag loop tuner with a motor driven variable capacitor on the antenna.  The tuner is Arduino-based with both memory capacitor settings and automatic SWR tuning.

The Arduino tuner is programmed to initiate a tune cycle which sets the mode to AM, drops the power level, tunes the radio, and then resets the radio to its initial settings.  This works fine with an ICOM 7300 radio, so either the commands are incorrect for the Flex (it is using Kenwood TS-2000 commands), or the USB interface on the Flex does not support the mode switch and power level commands.

As mentioned, the direct USB cable with the FTDI interface does properly initiate a tune and pass frequency data from the Flex.  If I could get the other functions to work I would not need to use DDUtil (which I can not get to work) on the current SmartSDR release.

I appreciate any advice.
Ron/K2RAS
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
No change.  The ZZMD command shows a  2-digit '05' for the AM mode while the MD command shows a single digit '5'.  I presume the P1 values are a numeric in either case.  Does the question mark indicate that the Flex is not interpreting the MD command properly?

Ron

19:12:30 (TX): IF000140700001000+0000000000020000000;
19:12:31 (RX): PC;
19:12:31 (TX): PC000;
19:12:31 (RX): MD;
19:12:31 (TX): MD2;
19:12:31 (RX): ZZMD5;
19:12:31 (TX): ?;
19:12:31 (RX): PC010;
19:12:31 (RX): TX;
19:12:31 (TX): TX0;
19:12:34 (RX): RX;
19:12:34 (TX): RX0;
19:12:34 (RX): ZZMD2;
19:12:34 (TX): ?;
19:12:35 (RX): PC000;
19:12:35 (RX): IF;
19:12:35 (TX): IF000140700001000+0000000000020000000;


Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
Should this be elevated to a support ticket?

Thanks, Ron
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
I still cannot get the radio to acknowledge a mode change using the USB connector.  Any help from your end?

Thanks, Ron
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
I have confirmed that RMS Express sends an 'MD9' over a CAT port successfully to change modes, and FLDigi successfully sends an 'MD9' over TCP port 5002.  If I try to send an MD9 over the USB cable the radio does not successfully change modes.

Ron
Photo of David Decoons wo2x

David Decoons wo2x, Elmer

  • 1217 Posts
  • 252 Reply Likes
Ron, the CAT manual shows ZZMD06; for AM. Unless the manual has a typo.

And instead of MD9 for DIGIU try ZZMD07;

Dave wo2x
Photo of Mack McCormick

Mack McCormick, Elmer

  • 340 Posts
  • 119 Reply Likes
Ron,

Sorry for the tardy reply but I've been thinking about your question. The USB ports on the back of the computer, as far as I know, do allow for input of CAT commands. 

Perhaps a better application would be to have your tuner assert a Tune command via normal CAT running on a PC. CAT on the Flex is handled using software verses hardware to minimize the spaghetti cables that are behind a typical radio.

73,

Mack
W4AX
Photo of bobby

bobby

  • 29 Posts
  • 9 Reply Likes
try MD02; you are only providing 1 digit it wants 2 digits for the mode selection.
(Edited)
Photo of Ron

Ron

  • 63 Posts
  • 4 Reply Likes
I tried MD05 and ZZMD05 with no improvement, there is still a (TX): ? following the command. 

Ron
Photo of Michael Walker

Michael Walker, Employee

  • 493 Posts
  • 120 Reply Likes
Hi Ron

At this point, I would ask that you summarize your findings and open a support case so we can trace it correctly.  This way it will get engineering visibility.

Mike