Project

General

Profile

Actions

Bug #5279

closed

Ubunutu 16.04 LTS fails to connect /dev/ttyUSB0 -> Baofeng UV-5r, etc.

Added by david knight over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
10/24/2017
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
Linux
Debug Log:
I read the instructions above:

Description

The programming cable I have connects as /dev/ttyUSB0. chirpw now (it used to work fine) fails to connect and reports that "serial" has no setTimeout attribute.

ERROR: -- Exception: --
ERROR: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/chirp/ui/clone.py", line 238, in run
self.__radio.sync_in()
File "/usr/lib/python2.7/dist-packages/chirp/drivers/uv5r.py", line 705, in sync_in
raise errors.RadioError("Failed to communicate with radio: %s" % e)
RadioError: Failed to communicate with radio: 'Serial' object has no attribute 'setTimeout'

ERROR: ----------------
ERROR: Clone failed: Failed to communicate with radio: 'Serial' object has no attribute 'setTimeout'
ERROR: --- Exception Dialog: Failed to communicate with radio: 'Serial' object has no attribute 'setTimeout' ---
ERROR: None

ERROR: ----------------------------

If I kludge the chirp uv5r driver thusly:

sudo chmod 666 /usr/lib/python2.7/dist-packages/chirp/drivers/uv5r.py
vi /usr/lib/python2.7/dist-packages/chirp/drivers/uv5r.py

edit:

...
407
408
409 def _do_ident(radio, magic):
410 serial = radio.pipe
411 #DMK# serial.setTimeout(1)
412
413 LOG.info("Sending Magic: %s" % util.hexprint(magic))
...
`
Save and rerun chirpw. chirp now connects to the Baofeng UV-5R, etc. and can download/upload as before.

My guess: ubuntu changed the python2.7 "serial" class...

The same failure occurs on all my Ubuntu 16.04 LTS systems (which are up to date as of this morning), but chirpw on the Raspberry pies here (wheezy and jessie distros, also up to date as of thie AM)) all work fine, using the same cable (connects as /dev/ttyUSB0 on all systems).


Files

chirpFail (1.64 KB) chirpFail david knight, 10/24/2017 12:24 PM
Actions #1

Updated by david knight over 6 years ago

Ubuntu distro version of chirp is 20161010(?)... fails.

Installed new version from danplanet, and problem is fixed.

Please close this bug.

Actions #2

Updated by Bernhard Hailer over 4 years ago

  • Status changed from New to Closed
  • Chirp Version changed from 0.4.0 to daily

Closed as per request by submitter.

Actions

Also available in: Atom PDF