<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:10pt"><div><span>Revisiting this to get some feedback from other developers.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;"><span>Looks as if this change has is giving at least one other person problems:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;"><span>http://chirp.danplanet.com/issues/1397<br></span></div><div><br></div><div>As this perhaps doesnt work for everyone, I was thinking of doing this to resolve:</div><div>1. add a boolean property "open_port_before_pre_upload_message" (or similar) that defaults to false to chirp_common.RadioPrompts class.</div><div>2. override this to true on the radio(s) which require this
(currently: ft-90.py)</div><div>3. in mainapp.py, only open port before showing prompts if this is true, else do old behavior (show prompts first, then open port after accepting message)</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;">This would set this on a per-radio basis.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;">Another thought was that this could be some environmental/local/cable issue that only affects individual users, and therefore perhaps needs to be a user-level setting (chirp.config)?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida
console,sans-serif; background-color: transparent; font-style: normal;">Thoughts on the most general way to approach this?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;">-Jens<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;"><br></div> <div style="font-family: lucida console, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Jens J. <kd4tjx@yahoo.com><br>
<b><span style="font-weight: bold;">To:</span></b> "chirp_devel@intrepid.danplanet.com" <chirp_devel@intrepid.danplanet.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, October 30, 2013 8:41 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [chirp_devel] [ft-90] radio will not go into clone rx mode        without port open #1187<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1535989006"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div><span>Thanks Dan, this might be the trick.</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>Yes, I was jumping through various hoops because the radio wants the port open. Then I was doing some close because,
at least on windows, i was getting access denied when I tried to open the port a second time ;) But all of this may be a moot point.</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br clear="none"><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>The attached patch seems to work fine for me on linux and winxp.</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;"><span><span style="font-weight:bold;">Will all other radios be fine with this change?</span> I know that some radios might have some procedures (power cycle, etc), and was slightly concerned that this might create junk chars on the serial lines. Would it be worthwhile doing a flush on the line before calling the clone procedure?</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span><br clear="none"></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>Note that I moved port open before clone instructions only on do_upload, not do_download, as:</span></div><div style="color:rgb(0, 0,
0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>1. I only needed it there, and</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>2. if there is some chance of noise, i thought it might come from
the radio side (e.g., power cycle, connecting cables, etc), and shouldn't be a problem on do_upload, but might cause some junk bytes waiting for chirp on do_download...</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">(this also might be over-paranoid conjecture ;)</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">-Jens</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;"><br clear="none"><span></span></div><div class="yiv1535989006yahoo_quoted" style="display:block;"> <br clear="none"> <br clear="none"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="yiv1535989006yqt1291543737" id="yiv1535989006yqtfd00506"><div dir="ltr"> <font face="Arial" size="2"> On Tuesday, October 29, 2013 6:32 PM, Dan Smith <dsmith@danplanet.com> wrote:<br clear="none"> </font> </div> <div class="yiv1535989006y_msg_container">> # radio likes to have port open <br clear="none">> self.pipe.open()<br clear="none">> + time.sleep(5)<br clear="none"><br clear="none">Hmm, why are you closing
and re-opening the serial port? Does the radio<br clear="none">need to start within five seconds of opening the port? That would be<br clear="none">...uncool.<br clear="none"><br clear="none">So, why wouldn't this solve the problem?<br clear="none"><br clear="none">diff -r 0c72e698e212 chirpui/mainapp.py<br clear="none">--- a/chirpui/mainapp.py Sun Oct 27 09:00:01 2013 -0700<br clear="none">+++ b/chirpui/mainapp.py Tue Oct 29 16:31:11 2013 -0700<br clear="none">@@ -612,8 +612,6 @@<br clear="none"> # User does not want to proceed with experimental driver<br clear="none"> return<br clear="none"><br clear="none">- self._show_instructions(rclass, rclass.get_prompts().pre_download)<br clear="none">-<br clear="none"> print "User selected %s %s on port %s" %
(rclass.VENDOR,<br clear="none">
rclass.MODEL,<br clear="none"> settings.port)<br clear="none">@@ -630,6 +628,8 @@<br clear="none"> d.destroy()<br clear="none"> return<br clear="none"><br clear="none">+ self._show_instructions(rclass, rclass.get_prompts().pre_download)<br clear="none">+<br clear="none"> radio = settings.radio_class(ser)<br clear="none"><br clear="none"> fn = tempfile.mktemp()<br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Dan Smith<br clear="none">www.danplanet.com<br clear="none">KK7DS<div class="yiv1535989006yqt0744163151" id="yiv1535989006yqtfd93548"><br
clear="none"></div><br clear="none">_______________________________________________<br clear="none">chirp_devel mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:chirp_devel@intrepid.danplanet.com" target="_blank" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br clear="none">Developer docs: <a rel="nofollow" shape="rect" target="_blank" href="http://chirp.danplanet.com/projects/chirp/wiki/Developers">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br clear="none"><br clear="none"></div> </div></div><div class="yiv1535989006yqt1291543737" id="yiv1535989006yqtfd93409"> </div></div><div class="yiv1535989006yqt1291543737" id="yiv1535989006yqtfd18156"> </div></div><div
class="yiv1535989006yqt1291543737" id="yiv1535989006yqtfd30144"> </div></div></div></div><br><div class="yqt1291543737" id="yqtfd33045">_______________________________________________<br clear="none">chirp_devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:chirp_devel@intrepid.danplanet.com" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br clear="none"><a shape="rect" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br clear="none">Developer docs: <a shape="rect" href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></div><br><br></div> </div> </div> </div></body></html>