[WT-support] LUA Script Problem with WTKeyer Play

Bob Wilson, N6TV n6tv at arrl.net
Mon Oct 15 19:49:50 CEST 2012


wtKeyer:Play() only works for CW.

You could change it to wtApp:SendFKey("F1"), but, what you are doing
(closing PTT via software command instead of using VOX or RTS pin, then
opening it again) is not necessary at all if you are using a K3 and
Win-Test sound card voice keyer.  It also will not work due to the timing
of when messages are sent (the "RX;" will be sent before the message
completes).

*If you are using a K3*:

Program the K3 CONFIG:PTT-KEY menu item to RTS-OFF and tell Win-Test to
generate PTT on the COM port RTS pin.  Just go into Win-Test SETUP and
click the CONFIGURE button next to the Radio's COM port.  Change *RTS (pin 7
*)* *to *PTT* and win-Test will generate PTT for you whenever you send a
voice message, and open PTT when the message ends.

*If you are using a TS-590S* (which doesn't support PTT via RTS pin):

Create two scripts like this:

*RX.wts*:

-- K3 / TS-590 PTT OFF (Receive) command
-- Call via message or advanced SO2R scenario as #RX
-- Assign to ESCape key to halt any sending and enable RX
-- Written by N6TV, 22 February 2012 19:26 UTC
wtRadio:Send("RX;")                -- Radio TX "OFF"
return 0                           -- Normal keystroke processing

*TX.wts*:

-- K3 / TS-590 PTT ON (Transmit) command
-- Call via message or advanced SO2R scenario as #TX
-- Written by N6TV, 22 February 2012 19:25 UTC
wtRadio:Send("TX;")                -- Radio TX "ON"
return -1                          -- No further processing of keystroke

Assign RX to the ESCape key so you can halt a message.

Program your Advanced SO2R messages like this:

F1:  #TX $F1 #RX
F2:  #TX $F2 #RX
etc.

73,
Bob, N6TV

On Sun, Oct 14, 2012 at 10:28 PM, Manu Tel <tel.manu07 at gmail.com> wrote:

> Hello
>
> I have a small problem with a LUA script, if someone can help me.
>
> Here is the script:
>
> if (wtQso:IsModePhone()) then
>     wtRadio:Send("TX;");
> wtKeyer:Play("$F1");
> wtRadio:Send("RX;");
>   return -1
> end
>
>
> I have the TX on com port and RX but the message is not played on sound
> card.
>
> Thank you for your help.
> Amicalmement
> Manu F4FLQ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.f5mzn.org/pipermail/support/attachments/20121015/88eb9f45/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RX.wts
Type: application/octet-stream
Size: 324 bytes
Desc: not available
URL: <http://lists.f5mzn.org/pipermail/support/attachments/20121015/88eb9f45/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TX.wts
Type: application/octet-stream
Size: 272 bytes
Desc: not available
URL: <http://lists.f5mzn.org/pipermail/support/attachments/20121015/88eb9f45/attachment-0001.obj>


More information about the Support mailing list