
Hi Dan,
In help/about I see "CHIRP 0.1.11" GTK 2.16.6 PyGTK 2.14.1
When I click "Download from radio" I see the following :
Traceback (most recent call last): File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/mainapp.py", line 552, in mh self.do_download(*args) File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/mainapp.py", line 283, in do_download d = clone.CloneSettingsDialog(parent=self) File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/clone.py", line 140, in __init__ self.__make_ui(settings) File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/clone.py", line 115, in __make_ui self.__port = self.__make_port(settings and settings.port or None) File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/clone.py", line 61, in __make_port port = ports[0] IndexError: list index out of range
I see no pop-up for the radio/version/port etc..
In chirp/platform.py there is the following block :
def list_serial_ports(self): return sorted(glob.glob("/dev/ttyS*") + glob.glob("/dev/ttyUSB*") + glob.glob("/dev/cu.usbser*") + glob.glob("/dev/term/*") + glob.glob("/dev/tty.KeySerial*"))
On my system with device presented by the radio when plugged in it uses /dev/cu.SLAB_USBtoUART (Only when plugged in)
When I changed it to this : def list_serial_ports(self): return sorted(glob.glob("/dev/ttyS*") + glob.glob("/dev/ttyUSB*") + glob.glob("/dev/cu.usbser*") + glob.glob("/dev/term/*") + glob.glob("/dev/cu.SLAB_USBtoUART") + glob.glob("/dev/tty.KeySerial*"))
I see the Radio window pop up with the serial port listed, vendor and model. I select the radio and model and see the following :
PC->V71: ID V71->PC: PC->V71: ID V71->PC: PC->V71: ID V71->PC: PC->V71: ID V71->PC: --- Exception Dialog: Unable to probe radio model --- Traceback (most recent call last): File "/Users/mark/CHIRP/chirp-0.1.11/chirpui/clone.py", line 160, in run cs.radio_class = detect.DETECT_FUNCTIONS[vendor](cs.port) File "/Users/mark/CHIRP/chirp-0.1.11/chirp/detect.py", line 101, in detect_kenwoodlive_radio raise errors.RadioError("Unable to probe radio model") RadioError: Unable to probe radio model
It never iterates through the possible kenwood radios.
I then noticed in the detect.py that r_id = kenwood_live.get_id(s) is commented out and the tmv71_ll.get_id(s) is not as below.
def detect_kenwoodlive_radio(port): s = serial.Serial(port=port, baudrate=9600, timeout=0.5) r_id = None
for rate in [9600, 19200, 38400, 57600]: s.setBaudrate(rate) s.write("\r") s.read(25) try: #r_id = kenwood_live.get_id(s) r_id = tmv71_ll.get_id(s) break except errors.RadioError: pass s.close()
When I tried to reverse the comments, the radio detection stops after the first iteration.
So, here is where I'm stuck! :)
Mark (K6EF)
On Apr 21, 2011, at 8:16 AM, Dan Smith wrote:
Where is this patch, the stock download fails to detect the radio.
It's in 0.1.11. Does Help->About still show 0.1.10?
-- Dan Smith www.danplanet.com KK7DS
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Mark Cohen markc@binaryfaith.com
Science is a way of skeptically interrogating the universe with a fine understanding of human fallibility. -Carl Sagan, 1996