[chirp_devel] [PATCH 0 of 4 ] More and more clone instructions
Here is another chunk of patches with clone instructions. I taken the descriptions from original yaesu manuals but still please check messages for typos before to commit.
73 de IZ3GME Marco
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1381319224 -7200 # Node ID fef15d9154725c6203ec6548d012945ca4dbb0a3 # Parent 7df389706e675384769651131464cb4d8527665f [vx3] Add instructions for clone mode part of feature #1163
diff --git a/chirp/vx3.py b/chirp/vx3.py --- a/chirp/vx3.py +++ b/chirp/vx3.py @@ -16,6 +16,7 @@
from chirp import chirp_common, yaesu_clone, directory from chirp import bitwise +from textwrap import dedent
#interesting offsets which may be checksums needed later #0x0393 checksum1? @@ -147,6 +148,23 @@ #attempts to speed it up appear unstable, more testing required _block_size = 8
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to MIC/SP jack. + 3. Press and hold in the [F/W] key while turning the radio on + ("CLONE" will appear on the display). + 4. <b>After clicking OK</b>, press the [BAND] key to send image.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to MIC/SP jack. + 3. Press and hold in the [F/W] key while turning the radio on + ("CLONE" will appear on the display). + 4. Press the [V/M] key ("-WAIT-" will appear on the LCD).""")) + return rp + def _checksums(self): return [ yaesu_clone.YaesuChecksum(0x0000, 0x7F49) ]
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1381319245 -7200 # Node ID 8a5b021abf99ca5889d532863e0e3a73d85630b6 # Parent fef15d9154725c6203ec6548d012945ca4dbb0a3 [vx6] Add instructions for clone mode part of feature #1163
diff --git a/chirp/vx6.py b/chirp/vx6.py --- a/chirp/vx6.py +++ b/chirp/vx6.py @@ -15,6 +15,7 @@
from chirp import chirp_common, yaesu_clone, directory from chirp import bitwise +from textwrap import dedent
# flags.{even|odd}_pskip: These are actually "preferential *scan* channels". # Is that what they mean on other radios as well? @@ -117,6 +118,23 @@ _block_lengths = [10, 32578] _block_size = 16
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to MIC/SP jack. + 3. Press and hold in the [F/W] key while turning the radio on + ("CLONE" will appear on the display). + 4. <b>After clicking OK</b>, press the [BAND] key to send image.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to MIC/SP jack. + 3. Press and hold in the [F/W] key while turning the radio on + ("CLONE" will appear on the display). + 4. Press the [V/M] key ("-WAIT-" will appear on the LCD).""")) + return rp + def _checksums(self): return [ yaesu_clone.YaesuChecksum(0x0000, 0x7F49) ]
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1381319290 -7200 # Node ID acae6ba675faabe8d051181084b3bb63e899b44a # Parent 8a5b021abf99ca5889d532863e0e3a73d85630b6 [yaesu_clone] Add generic instructions for clone mode part of feature #1163
diff --git a/chirp/yaesu_clone.py b/chirp/yaesu_clone.py --- a/chirp/yaesu_clone.py +++ b/chirp/yaesu_clone.py @@ -17,6 +17,7 @@
from chirp import chirp_common, util, memmap, errors import time, os +from textwrap import dedent
def _safe_read(pipe, count): buf = "" @@ -178,6 +179,21 @@ VENDOR = "Yaesu" _model = "ABCDE"
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect data cable. + 3. Prepare radio for clone. + 4. <b>After clicking OK</b>, press the key to send image.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect data cable. + 3. Prepare radio for clone. + 4. Press the key to receive the image.""")) + return rp + def _checksums(self): """Return a list of checksum objects that need to be calculated""" return []
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1381320914 -7200 # Node ID ac806dac91766e1625992e665710d0704a92ad82 # Parent acae6ba675faabe8d051181084b3bb63e899b44a [ftx800/ftx900] Add instructions for clone mode part of feature #1163
diff --git a/chirp/ft7800.py b/chirp/ft7800.py --- a/chirp/ft7800.py +++ b/chirp/ft7800.py @@ -16,6 +16,7 @@ import time from chirp import chirp_common, yaesu_clone, memmap, directory from chirp import bitwise, errors +from textwrap import dedent
from collections import defaultdict
@@ -183,6 +184,31 @@ VENDOR = "Yaesu" MODES = list(MODES)
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to DATA jack. + 3. Press and hold in the [MHz(PRI)] key while turning the + radio on. + 4. Rotate the DIAL job to select "F-7 CLONE". + 5. Press and hold in the [BAND(SET)] key. The display + will disappear for a moment, then the "CLONE" notation + will appear. + 6. <b>After clicking OK</b>, press the [V/M(MW)] key to send image.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to DATA jack. + 3. Press and hold in the [MHz(PRI)] key while turning the + radio on. + 4. Rotate the DIAL job to select "F-7 CLONE". + 5. Press and hold in the [BAND(SET)] key. The display + will disappear for a moment, then the "CLONE" notation + will appear. + 6. Press the [LOW(ACC)] key ("--RX--" will appear on the display).""")) + return rp + def get_features(self): rf = chirp_common.RadioFeatures() rf.memory_bounds = (1, 999) @@ -490,6 +516,31 @@
_memstart = 0x0000
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to DATA jack. + 3. Press and hold in the "left" [V/M] key while turning the + radio on. + 4. Rotate the "right" DIAL knob to select "CLONE START". + 5. Press the [SET] key. The display will disappear + for a moment, then the "CLONE" notation will appear. + 6. <b>After clicking OK</b>, press the "left" [V/M] key to + send image.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to DATA jack. + 3. Press and hold in the "left" [V/M] key while turning the + radio on. + 4. Rotate the "right" DIAL knob to select "CLONE START". + 5. Press the [SET] key. The display will disappear + for a moment, then the "CLONE" notation will appear. + 6. Press the "left" [LOW] key ("CLONE -RX-" will appear on + the display).""")) + return rp + def get_features(self): rf = FTx800Radio.get_features(self) rf.has_sub_devices = self.VARIANT == ""
participants (1)
-
Marco Filippi IZ3GME