<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>There are plenty of issues related to settings not "sticking" or taking effect for Baofeng 888 and derivative radios. I experienced this personally on a Radioddity GA-2S.<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Changes based on serial capture of Baofeng "V12" programming software. Many thanks to Dan Clemmensen's notes on easy Linux serial capture.<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Tony<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>---</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span># HG changeset patch<br>
</span>
<div># User Tony F <goldstar611@hotmail.com><br>
</div>
<div># Date 1566262713 18000<br>
</div>
<div># Mon Aug 19 19:58:33 2019 -0500<br>
</div>
<div># Branch issue_6969<br>
</div>
<div># Node ID e8b99ab1ca358bbe25a662b02a7006cd292e0bf9<br>
</div>
<div># Parent 1da5155c550477777c021fd6fbaf5036f0b0b5c0<br>
</div>
<div>[h777] Fix some settings not taking effect on Baofeng 888 and variants<br>
</div>
<div>Fix #6969 https://chirp.danplanet.com/issues/6969<br>
</div>
<div>Changes based on serial output of latest "V12" programming software<br>
</div>
<div>List of settings that were affected:<br>
</div>
<div>- Scan On/Off<br>
</div>
<div>- Voice Prompt On/Off<br>
</div>
<div>- Language English/Chinese<br>
</div>
<div>- Vox On/Off<br>
</div>
<div>- Vox Level<br>
</div>
<div>- Vox Inhibit on Rx (Untested)<br>
</div>
<div>- Alarm On/Off<br>
</div>
<div>- Radio On/Off (Untested)<br>
</div>
<div>- Low Voltage Inhibit (Untested)<br>
</div>
<div>- High Voltage Inhibit (Untested)<br>
</div>
<div><br>
</div>
<div>To the best of my knowledge, also<br>
</div>
<div>Fixes #5027<br>
</div>
<div>Fixes #5985<br>
</div>
<div>Fixes #6283<br>
</div>
<div>Fixes #4959<br>
</div>
<div>Fixes #5153<br>
</div>
<div>Fixes #5343<br>
</div>
<div>Fixes #5797<br>
</div>
<div>Fixes #5833<br>
</div>
<div>Fixes #5831<br>
</div>
<div>Fixes #5857<br>
</div>
<div><br>
</div>
<div>diff --git a/chirp/drivers/h777.py b/chirp/drivers/h777.py<br>
</div>
<div>--- a/chirp/drivers/h777.py<br>
</div>
<div>+++ b/chirp/drivers/h777.py<br>
</div>
<div>@@ -166,7 +166,10 @@<br>
</div>
<div> def _h777_write_block(radio, block_addr, block_size):<br>
</div>
<div> serial = radio.pipe<br>
</div>
<div> <br>
</div>
<div>- cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)<br>
</div>
<div>+ if 0x02B0 <= block_addr <= 0x02C0:<br>
</div>
<div>+ cmd = struct.pack(">cHb", 'Y', block_addr, BLOCK_SIZE)<br>
</div>
<div>+ else:<br>
</div>
<div>+ cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)<br>
</div>
<div> data = radio.get_mmap()[block_addr:block_addr + 8]<br>
</div>
<div> <br>
</div>
<div> LOG.debug("Writing Data:")<br>
</div>
<div>@@ -281,8 +284,8 @@<br>
</div>
<div> <br>
</div>
<div> _ranges = [<br>
</div>
<div> (0x0000, 0x0110),<br>
</div>
<div>+ (0x0380, 0x03E0),<br>
</div>
<div> (0x02B0, 0x02C0),<br>
</div>
<div>- (0x0380, 0x03E0),<br>
</div>
<div> ]<br>
</div>
<div> _memsize = 0x03E0<br>
</div>
<div> _has_fm = True<br>
</div>
<span></span><br>
</div>
</body>
</html>