Re: Looking for some programming help with switch emulation coding

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Looking for some programming help with switch emulation coding

Richard Ferch-2
From the K3S/K3/KX3/KX2 Programmer's Reference Manual, Rev. G3:

DE (Command Processing Delay; SET only; K3/K3S only)

SET format: DExxx; where xxx is 001-255, the delay value in 10-ms
increments. This is useful in switch or Kpod macros, where a delay may be
desired to allow the radio to complete a previous operation before the next
command is processed. Note: DE001 may result in a delay shorter than 10 ms,
while DE002 is guaranteed to provide a delay between 10 and 20 ms (etc.).


This was introduced in firmware version 5.60, so you may need to update
your firmware in order to be able to use it.

However, before using it you should also take note of the following, from
the N1MM+ manual's description of the CAT1ASC macro:

You can not place more than one CAT1ASC or CAT2ASC macro in a message but
the message can contain one of each macro. The exception to this rule is
when the {END} macro is used. More than one radio command can be sent to
the radio by either placing a \ character between the radio commands or by
concatenating them together. Spaces before or after the \ character are
sent to the radio. Multiple radio commands using the \ separator are broken
into individual radio commands and sent to the radio using internal command
pacing.


In other words, if you want to execute a series of radio control commands
from a single N1MM+ function key, you should place them all in a single
CAT1ASC macro. They do not need to be separated by anything other than the
; command terminator, in which case they will all be sent to the radio at
once -- or, if you place a \ between two commands within a CAT1ASC macro,
N1MM+ will send them to the radio in separate polls. I'm not sure what the
polling rate is, but note that you have some control over it - there is a
control in the radio control port setup dialog that allows you to select
slower polling rates (505 slower or 100% slower).

Perhaps some experimentation with the \ separator and/or the DEnnn; command
will let you put the first bank switching and message sending command
together into one function key message. The second bank switching command
could be more of a problem, as the required delay may depend on the length
of the message.

Note also that when you use the radio's voice keyer, N1MM+ has no way of
knowing how long the message will take. This may lead to undesirable side
effects. If any of these side effects is unacceptable, the solution will be
to use N1MM+'s own digital voice keyer instead of the DVR messages in the
radio.

73,
Rich VE3KI
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]