101Commander 0.15  -  CAT commands to the Yaesu FTDX101D / FTDX101MP through OmniRig
by OE1MWW & Claude.ai

START
  pip install pywin32        (once)
  run_101commander.bat       (or: python 101Commander.py)
  OmniRig must be installed, with the FTDX101 set up as Rig 1 or Rig 2
  (FTDX101D or FTDX101MP rig file, same baud rate as menu CAT RATE).

START PAGE (from top to bottom)
  [TUNE] or [TUNE] [second tuner button]      light blue, as chosen in Setup - Tuner
  [Operational Settings] [Mode] [Receive] [Transmit]
  [Width / Shift / Notch] [Data / Audio] [VFO / Split / Sync] [SUB receiver]
  [CAT] [Search (Ctrl+F)]
  A button opens its page; a click on a function sends the command at once.
  The status bar shows "Sent: ..." for 3 seconds. Esc or Ctrl+W return to the
  start page, Ctrl+R reloads the command file.

TUNER  (Setup - Tuner; the options of FTDX101-Control)
  built-in         [TUNE] starts the tune cycle (AC001; AC002;) and waits until
                   the radio reports the end; [Built-in tuner ON / OFF] shows
                   and switches the tuner.
  external         hold [TUNE]: the radio is switched to AM with the tune power
                   and keyed (TX1;); let go: unkeyed (checked with TX;), mode
                   and power restored.
  Tuner Genius XL  as external, with a short wake-up blip first;
                   hold [TUNE + XL] also sends the autotune command to the TGXL
                   over the network (IP / port in Setup - Tuner).
  Max. TUNE time ends the carrier at the latest. With an external tuner or
  the TGXL the built-in tuner is switched off when the radio comes on-line.
  TUNE needs OmniRig replies (mode and power are read and saved first).
  While TUNE is held the program reads TX; about every half second. If the
  radio itself goes back to RX, it says so and restores mode and power.
  tune_debug.log (program folder, Setup - Tuner) records every TUNE step
  with time stamps: button down / up, each command, the TX; answers, the
  OmniRig status and why the carrier ended.

POWER SLIDERS  (top of the Transmit page)
  RF power (PC), HF max, 50 MHz max, 70 MHz max and AM max power
  (EX030401 - EX030404). The sliders show what the radio reports; drag one
  and let go to send the new value. The radio model is read with ID;
  (FTDX101D: 100 W / AM 25 W, FTDX101MP: 200 W / AM 50 W).

OPERATIONAL SETTINGS
  RTTY, RTTY wide shift, FT8, FT8 weak signal, PSK31, SSTV, CW, CW contest,
  SSB USB / LSB, microphone profiles Natural / DX Punch / Hi-Fi, AM, FM,
  "Noisy band", "Clean receive". FT8, CW and SSB carry the profile settings
  of FTDX101-Control ([FT8], [FT8-WeakSignal], [CW], [CommonSSB]).
  Microphone profiles: the 20 TX AUDIO menu items of the FTDX101-Control
  profile + parametric EQ on. First SSB USB or SSB LSB, then a.), b.) or c.)
  (the buttons say so in small print). The red
  dot shows the profile in use: menu EQ3 width (EX030311) is the marker
  (02 Natural, 04 DX Punch, 06 Hi-Fi).
  Every function row shows what its command does; for long setups move the
  mouse over "n commands" for the list and the full note (the row shows
  the note on one line).

YOUR CAT COMMAND
  Every page has a field "Your CAT cmd:" left of "Back to Start". Type a
  command ending with ; (several are allowed, e.g. NB01;NR01;) and press
  Enter: the value is read before, the command is sent, the value is read
  after; a yellow pop-up shows both until you click anywhere (or press Esc),
  then the field is cleared for the next command.
  A read command (e.g. MD0;) shows the answer. TX1; TX2; MX1; are refused:
  they would key the transmitter and leave it keyed.

STATUS DOTS
  A red dot left of a function shows that it is ON in the radio right now.
  The open page is read back every 2.5 s and right after each click.
  Actions (MAIN to SUB, swap, SYNC + copy, clarifier clear, tune, zero-in)
  and lines with several commands have no dot, unless the line marks its
  status command with {STATUS} (microphone profiles).

SETUP
  Rig 1 / Rig 2, command file (*.ini in the program folder), OmniRig
  settings, Tuner. Saved in 101Commander-settings.ini.

COMMAND FILE  101Commander.ini   (never written by the program; created with
the FTDX101 defaults if missing)
  [WideButtons] / [Buttons]   group section = button label, in this order
  [group]                     function name = command | note
                              or one command per indented line:
                              function name = | note
                                  MD0C;      | description of this command
  {BR100}   pause of 100 ms        {SSB}    LSB below 10 MHz, USB above
  {STATUS}  next command decides the red dot (several: all must match)
  {POWER}   alone in a line: the five power sliders
  {small:text} in a function name: that part of the button label in small print
  Menu items: EX + group + submenu + item + value, e.g. EX0104131;
  Checked against the FTDX101MP/D CAT Operation Reference Manual 2308-L.

BUILD
  build_exe.bat makes ONE file, 101Commander.exe. Keep 101Commander.ini
  beside it (created with the defaults if missing).
