Is keying possible via the API or CAT/Serial (RTS or DTR)?

  • 1
  • Question
  • Updated 4 months ago
  • Answered
I'm wondering if it is possible to key the 6600 directly via the API (TCP) CAT, or Serial (RTS/DTR) methods.  I know it is possible to send morse characters using cwx or KY, but I am looking to control it more directly.  

It seems that only PTT Is supported via SmartSDR CAT on DTR or RTS, and I tested the Winkeyer implementation and it does not appear to support the tune command. 

So I am thinking that the only way to remotely key the transceiver would be to interface a separate hardware device to the key input connector on the back panel. 

Before I do that I wanted to post this here to double check that I have exhausted all possibilities.

73
Matt NQ6N 
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
  • excited to build stuff

Posted 2 years ago

  • 1
Photo of Bob Craig, K8RC

Bob Craig, K8RC

  • 262 Posts
  • 105 Reply Likes
DXLab suite does CW with a Flex 6x000 without intervening hardware of any kind. 

In fact the software's interface can use the TCP/IP interface to the radio so it doesn't require a COM port, virtual or otherwise.

And it's freeware! https://www.dxlabsuite.com/
Photo of Michael Walker

Michael Walker, Employee

  • 1048 Posts
  • 311 Reply Likes
I do a remote PTT keying on DTR or RTS mapping to  a hardware com port. 

I essentially ground either lead to cause the radio to go into TX for a remote foot switch.  This is all done without a hardware connection to the back of the radio.

If you search, several of us published the details.

What is it you are trying to actually do?

Mike va3mw
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 916 Posts
  • 344 Reply Likes
Matt,

There is a keying interface in the API that we use for Maestro.  It requires periodic timing information in addition to the keying information to help sync the keying data with the radio's timing.  This is possible, but not dirt simple.  I can go into more detail if you wish.

Also, out of curiosity, what Winkeyer command were you trying to use that didn't work?  I want to make sure that this is something that we just haven't implemented as opposed to something that is implemented, but isn't working.  Thanks.
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
Eric -- The keying API you use for the Maestro sounds like it's along the lines of what I want(ed) to build, so more information about that API would be much appreciated. 

That API may be all I need, but even if it's not it sounds like it will give me plenty of control over keying.  I had been thinking of building an element level API but have not yet reached the point of determining whether sending timing information explicitly was going to be necessary. 

The Winkeyer command I tried was <0B><nn>, "key immediate".  

73,
Matt NQ6N
Photo of Mario - DL3LSM

Mario - DL3LSM

  • 68 Posts
  • 29 Reply Likes
Hi Eric,

I'm definitely interested in details about the keying interface API (NetCWStream I guess).

Thanks and 73
Mario, DL3LSM
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
Just keeping this thread alive. 
Photo of Steven Linley

Steven Linley

  • 401 Posts
  • 68 Reply Likes
Can you put it in RTTY mode?
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 916 Posts
  • 344 Reply Likes
Sorry for the delayed response.  Here's the details.

The API uses a "cw ptt" and "cw key" commands.  You can see how we use these in Radio.cs of FlexLib (see the CWPTT and CWKey functions beginning near line 7761).

The timestamp is a 4 digit free-running millisecond counter that simply rolls over at 9999.  

So the commands are:

cw ptt [0 or 1] [4 digit ms timestamp]
cw key [0 or 1] [4 digit ms timestamp]

Note that the timestamps are used to understand the jitter on the connection so as to buffer appropriately int the radio to avoid the effect issues with network jitter would have on the on/off keying.  More jitter means more buffering (higher delays).
(Edited)
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
Eric -- Quick question regarding the cw key command.  Is the timestamp supposed to be the rolling integer milliseconds modulo 10000, represented as hexadecimal? 

I am running into an issue where it works perfectly until the timestamp loops around.  The next command that is sent once the timestamp has looped around fails. 

Not sure if there is any additional step needed... the following results in the radio staying keyed after the last command gets sent. 

CD42|cw key 1 time=0x26A5 index=2
CD43|cw key 0 time=0x26D1 index=3
CD44|cw key 1 time=0x26FD index=4
CD45|cw key 0 time=0x19 index=5

Any suggestions would be much appreciated.  

73,
Matt NQ6N
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 916 Posts
  • 344 Reply Likes
It looks like the values are expected to be hex formatted as 0xnnnn where n is [0-9A-F].  So it would roll over after FFFF (2^16-1).  Sorry for the confusion.
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
Perfect, works very nicely now!  
Photo of Matt NQ6N

Matt NQ6N

  • 109 Posts
  • 44 Reply Likes
I've written a small program to connect a Winkeyer (key and PTT output) to the computer via serial port and allow remote sidetone and paddle usage without needing a Maestro.  If anyone following this thread is interested in being an alpha tester of this program I am happy to share a download link. 

I've had a few short rag chews using the paddles and it seems to work nicely. Currently it works only via VPN remote, not via Smartlink. I'll add Smartlink support once I figure out how to trigger the login/discovery process.
Photo of Chris - NZ6T

Chris - NZ6T

  • 14 Posts
  • 3 Reply Likes
Matt I just found this thread. If you're still working on the project I'd be interested in giving it a whirl.

Edit:
I found your Groups.io page for this. Thanks I'll give it a try
(Edited)
Photo of WX7Y

WX7Y

  • 802 Posts
  • 166 Reply Likes
It's to Bad SmartCAT PTT with a real com port PTT has so many issues that have plagued it for so long, I have gone around and around with this for over a year, one time it keys just great and the next time it shows MOX and pass's MIC Audio showing on SmartSDR but the MOX and TUNE button's get grayed out and NO RF is produced like a interlock issue. 

No Problem with FRSTACK COM port PTT Keying and Matt NQ6N's little program working with the same hardware. 
 
I had everything working 98% of THE TIME with SmartCAT until the stupid WIN10 1903 UPDATE broke the COM Ports and once I repaired them this is what I ran into. 
If it was a windows COM port problem then the other two programs would not work and SmartSDR would NOT show the MOX button working. 

Bret


Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 916 Posts
  • 344 Reply Likes
Bret,

If the radio is being keyed, then the issue probably isn't with the ports at all.  It sounds more like an issue in SmartSDR to me.  I'll be happy to work with you to figure it out if it is still happening.
Photo of WX7Y

WX7Y

  • 802 Posts
  • 166 Reply Likes
I welcome help getting to the bottom of this and would appreciate it very much.

This has been happening in both version's of V3 and yes I kinda agree, only thing is that when I use another keying scheme it works perfect like the OLD "Push to VOX" and "FRstack"  you would think if it was SmartSDR then those would also disable "Grey OUT" the transmitter like it does in SmartCAT.
This does NOT happen every time but often enough you can't and don't want to use it. 

Thanks and hope to hear from you soon
73's


Photo of WX7Y

WX7Y

  • 802 Posts
  • 166 Reply Likes
Hi Again Eric
Tried it on my laptop with a seperate USB Cable/PTT button and still have the same issues as the desktop.  Here is a screen shot when it fails, Notice the white lettering on TUNE and MOX is grayed out, This happens randomly with out warning. 
Radio is 6700, WIN10 64K, 3.0.27, FTDI USB cable.

This switch is Active High/DTR, the Switch on the Desktop uses Active Low/RTS as a test to see if one setup did it and the other did not but that makes NO difference.

Thanks and 73
Bret


Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 916 Posts
  • 344 Reply Likes
I setup a ticket to handle this.  If you don't see that, shoot me an email directly: eric@flex-radio.com.