[chirp_users] Problem with CHIRP under Ubuntu Linux
I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC
Pat, My opinion is that a cheap generic cable will work just fine. That's what I use with my UV5R and Mint Linux. I never have problems with Linux and driver's. Anything I plug into my laptop just seems to work fine. It is possible that the radio has a problem but it isn't likely. Anyway, I suspect that there are plenty of Hams around you that have a cable you could use to check it out. Thanks, David, KD7UCH@gmail.com
On Sun, Jan 13, 2019, 09:22 Pat Anderson <anderson5420@gmail.com wrote:
I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to David Evans at kd7uch@arrl.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Try pushing the cable harder into the radio. It might not be seating properly.
Jardy Dawson WA7JRD Message sent through sub space hailing frequencies using the Universal Translator.
On Jan 13, 2019, at 09:31, David Evans kd7uch@gmail.com wrote:
Pat, My opinion is that a cheap generic cable will work just fine. That's what I use with my UV5R and Mint Linux. I never have problems with Linux and driver's. Anything I plug into my laptop just seems to work fine. It is possible that the radio has a problem but it isn't likely. Anyway, I suspect that there are plenty of Hams around you that have a cable you could use to check it out. Thanks, David, KD7UCH@gmail.com
On Sun, Jan 13, 2019, 09:22 Pat Anderson <anderson5420@gmail.com wrote: I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to David Evans at kd7uch@arrl.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Jardy at jardy72@yahoo.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Yes, do try pushing the cable into your radio with more force, there is an issue of some cables not fitting the radio very well.
I forgot about this, otherwise proceed to my message about seeing if you're in the right group in your Ubuntu installation.
This is a normal usual step, often people do not read the various pages explaining how to install CHIRP.
CHIRP has such a page: https://chirp.danplanet.com/projects/chirp/wiki/Running_Under_Linux
It also says under Ubuntu the serial ports are in group "dialout" and tells you how to get your user into that group. Don't change "$USERNAME" that's just a universal shortcut for the user's username. In terminal do this: sudo addgroup "$USERNAME" dialout
*serial port permissions* Note that you may need to adjust permissions on the /dev/tty(something) device, or add your users who want to use Chirp to the "dialout" group in order to let non-privileged users access the serial device.
This issue is often indicated by an "access denied" error when accessing serial port.
On most Linux distros this is accomplished with:
sudo addgroup "$USERNAME" dialout
You will then need to log out and back in for it to take effect.
Regards,
David
I also purchased a $24 Baofeng from Amazon, and then faked up a cable and got it to communicate with CHIRP under Linux. I think I made every possible mistake first, so after you are sure Linux has recognized your USB cable, check the following: 1) Push the plugs in to the radio really hard. If there is still an air gap, it's not in far enough 2) Tune the radio to an unused channel and set the squelch. Apparently, the serial signal on the cable is shared with the speaker signal. 3) turn the volume all the way up. (see 2 above). I found these instructions in the CHIRP setup messages for the radio.
My faked cable simply connects the 3.3V serial port TxD and RxD from my Raspberry Pi GPIO via 2k resistors, and GND, to the proper plug pins on the Baofeng: no USB at all. This works because Baofeng uses 3.3V serial. This is NOT a serial standard but has become a de facto standard for modern CMOS direct serial connections. In addition to converting USB to serial, a programming cable also converts to the proper voltages plug pinouts for the specific radios the cable is specified for.
On Sun, Jan 13, 2019 at 9:59 AM D.J.J. Ring, Jr. n1ea@arrl.net wrote:
Yes, do try pushing the cable into your radio with more force, there is an issue of some cables not fitting the radio very well.
I forgot about this, otherwise proceed to my message about seeing if you're in the right group in your Ubuntu installation.
This is a normal usual step, often people do not read the various pages explaining how to install CHIRP.
CHIRP has such a page: https://chirp.danplanet.com/projects/chirp/wiki/Running_Under_Linux
It also says under Ubuntu the serial ports are in group "dialout" and tells you how to get your user into that group. Don't change "$USERNAME" that's just a universal shortcut for the user's username. In terminal do this: sudo addgroup "$USERNAME" dialout
*serial port permissions* Note that you may need to adjust permissions on the /dev/tty(something) device, or add your users who want to use Chirp to the "dialout" group in order to let non-privileged users access the serial device.
This issue is often indicated by an "access denied" error when accessing serial port.
On most Linux distros this is accomplished with:
sudo addgroup "$USERNAME" dialout
You will then need to log out and back in for it to take effect.
Regards,
David
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Dan Clemmensen at danclemmensen@gmail.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
I did not think you could use a cable that was made for another radio. That is interesting if you have done this in the past. I figured that the chip was specific to the radio. Glenn ----- Original Message ----- From: Pat Anderson To: Discussion of CHIRP Sent: Sunday, January 13, 2019 11:18 AM Subject: [chirp_users] Problem with CHIRP under Ubuntu Linux
I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC
--------------------------------------------------------------------------------
_______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Glenn at glennervin@cableone.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
The vast majority of radios just use serial protocol. The chip in the cable just converts from USB to the older serial protocols. I have a multi-radio USB cable that has different tips for different radios. It will work across the Baofeng, Wouxun, and Yaesu radios that I have.
The drivers in the OS make the USB chip look like a standard serial port and CHIRP interfaces with that.
As to this issue... if you don't see the cable in Ubuntu using 'lsusb' after plugging it in, then you have a potential bad cable. You might try comparing the output of lsusb from before and after plugging in the cable to see if it's recognized and, if so, what the Chromebook is seeing it as (the USB ID is what it uses to determine which driver to load).
On 1/13/19 11:38 AM, Glenn At Home wrote:
I did not think you could use a cable that was made for another radio. That is interesting if you have done this in the past. I figured that the chip was specific to the radio. Glenn ----- Original Message ----- *From:* Pat Anderson mailto:anderson5420@gmail.com *To:* Discussion of CHIRP mailto:chirp_users@intrepid.danplanet.com *Sent:* Sunday, January 13, 2019 11:18 AM *Subject:* [chirp_users] Problem with CHIRP under Ubuntu Linux
I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Glenn at glennervin@cableone.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Aubrey Turner at aubrey.c.turner@gmail.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Remove the USB cable from your computer. Wait 10 to 15 seconds, then plug it back in.
Open a terminal.
type dmesg | tail
You should see what the cable is and where it got connected.
For example
# dmesg | tail
[52106.249452] cp210x 1-1:1.0: device disconnected [52109.834253] usb 1-1: new full-speed USB device number 8 using xhci_hcd [52109.976525] usb 1-1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00 [52109.976531] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [52109.976536] usb 1-1: Product: CP2102 USB to UART Bridge Controller [52109.976540] usb 1-1: Manufacturer: Silicon Labs [52109.976544] usb 1-1: SerialNumber: 0001 [52109.980356] cp210x 1-1:1.0: cp210x converter detected [52109.982965] usb 1-1: cp210x converter now attached to ttyUSB0
It tells me that my USB device is made by Silicon Labs, it's a cp210x converter and it's attached to ttyUSB0 which is a device, so it's location is: /dev/ttyUSB0
If for some reason the device is different, in what follows substitute what dmesg told you for what I wrote.
Now list in long format /dev/ttyUSB0 using ls -l
# ls -l /dev/ttyUSB0 crw-rw---- 1 root uucp 188, 0 Jan 13 12:39 /dev/ttyUSB0
It says that this device is owned by "root" and is in the group uucp and both root and anyone in uucp have read and write (rw) privledges.
Now see if I'm in that group. So I change back to my user prompt.
type exit in terminal, then you should have user prompt $.
Type in "groups" to see what groups you're in (no quotes, just what is inside the quotes!)
$ groups cups video uucp wheel djringjr
I'm in those groups - uucp is one of the groups.
The group of /dev/TTYUSB0 is probably different in Ubuntu, so adjust what I am saying to match what you got when you listed /dev/ttyUSB0 in long format. Your user has to be in the group that owns ttyUSB0.
If it isn't you have to put your user into that group.
Back up to root admiinistrator privledges.
sudo su or if you don't have sudo you can just enter su or su root and give the root password.
sudo su
#
Now we have the # prompt, we are root now.
Enter "gpasswd -a yourusername uucp"
Where yourusername is your user name. Mine is djringjr so do this:
# gpasswd -a djringjr uucp Adding user djringjr to group uucp
Now reboot your computer and you'll have access to /dev/USB01
Sometimes just logging out and back in will recognize the device, but rebooting always does.
73 David N1EA
Are you sure your TYT programming cable isn't for a DMR radio? My TYT programming cable is wired straight through (no UART inside) because that is handled internally by the radio itself. This programming cable will not work for most radios supported by CHIRP.
Jim
On Sun, Jan 13, 2019, 12:21 PM Pat Anderson <anderson5420@gmail.com wrote:
I have CHIRP installed on an Asus C302 Chromebook with Ubuntu 16.04 (Xenial) installed with crouton, I live in Washington State but am in Arizona for the winter, and just bought another BaoFeng UV-5R to use here ($24.99 on Amaqzon, how could I not). I had no programming cable, so I borrowed one from a friend here at the RV Park, it is a labelled "TYT." I also have a 2011 MacBook Pro with CHIRP installed which I have used successfully many times before. What is happening is that when I connect the BaoFeng via the cable (turned off), and go toe "Download from Radio," I can put "BaoFeng" and" UV-5R" in the dialog box from the dropdown lists but the in Port dialog, nothing shows up. Naturally, when I turn the radio on and press the button to download, it gives a "Device not found" error. There is a /dev/tty file that I have CHMODed to 777, and I tried typing "/dev/tty" in the box same error. The cable is pushed fully into the radio, so that is not the problem. When I connect to the MacBook, and do the same thing, the only device that shows up is the Bluetooth device.
I have deduced it must be the cable. I have several programming cables back home that I know work - and they were cheap generic cables that would make Windows choke (fake Prolific chips). I don't want to buy a cable on Amazon or Cheapham without knowing whether it will work or not.I don't know if Linux cares about the chip. I don't think MacOS cares.
What cable would you recommend, or what else could I try in Ubuntu if it is not the cable?
Thanks!
Pat Anderson KD7OAC _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Jim at rock.unroe@gmail.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
participants (8)
-
Aubrey Turner
-
D.J.J. Ring, Jr.
-
Dan Clemmensen
-
David Evans
-
Glenn At Home
-
Jardy
-
Jim Unroe
-
Pat Anderson