<html><body><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><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></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></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></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><span></span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <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 dir="ltr"> <font face="Arial" size="2"> On Tuesday, October 29, 2013 6:32 PM, Dan Smith <dsmith@danplanet.com> wrote:<br> </font> </div> <div class="y_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="yqt0744163151" id="yqtfd93548"><br
clear="none"></div><br>_______________________________________________<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><br><br></div> </div> </div> </div> </div></body></html>