[SOLVED] Programming a portable radio - What Port am I using?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
INOV8TN
Level 1
Level 1
Posts: 19
Joined: Thu Feb 09, 2017 4:03 pm
Location: Clemmons, NC

[SOLVED] Programming a portable radio - What Port am I using?

Post by INOV8TN » Tue Feb 19, 2019 2:15 am

I installed the CHIRP software and it seems to work but I don't seem to be able to connect to the radio.

The program gives me the opportunity to choose a Port when I specify the Radio Vendor & Model but regardless of what I select as the port I get the error message: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0' this example shows the result for /dev/ttyS0 but going up to -S5 gets me the same message.

I plugged a Thumb Drive in the USB port that I have been using and entered the wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ usb-devices command and found the Thumb Drive:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=090c ProdID=1000 Rev=11.00
S: Manufacturer=SMI Corporation
S: Product=USB DISK
S: SerialNumber=1302027403007726
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

Along with 5 other USB Devices

But I haven't been able to convert all this data into a /dev/ttyS0 type Port ID

The inxi -Fxz command returned:

wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ inxi -Fxz
System: Host: wl-HP-Pavilion-dv1000-EH443UA-ABA Kernel: 4.15.0-45-generic i686
bits: 32 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Linux Mint 19 Tara
Machine: Device: laptop System: Hewlett-Packard product: HP Pavilion dv1000 (EH443UA#ABA) v: Rev 1 serial: N/A
Mobo: Quanta model: 308F v: 46.11 serial: N/A
BIOS: Hewlett-Packard v: F.12 date: 09/12/2005
Battery BAT0: charge: 32.2 Wh 95.8% condition: 33.6/88.8 Wh (38%)
model: Hewlett-Packard JM-6 status: Charging
CPU: Single core Intel Celeron M (-UP-) arch: Dothan rev.8 cache: 1024 KB
flags: (nx pae sse sse2) bmips: 2992 speed: 1496 MHz (max)
Graphics: Card: Intel Mobile 915GM/GMS/910GML Express Graphics Controller bus-ID: 00:02.0
Display Server: x11 (X.Org 1.19.6 )
drivers: intel (unloaded: modesetting,fbdev,vesa)
Resolution: 1280x768@59.99hz
OpenGL: renderer: Mesa DRI Intel 915GM x86/MMX/SSE2
version: 1.4 Mesa 18.2.2 Direct Render: Yes
Audio: Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller
driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1e.2
Sound: Advanced Linux Sound Architecture v: k4.15.0-45-generic
Network: Card-1: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
driver: 8139too v: 0.9.28 port: 3000 bus-ID: 06:00.0
IF: enp6s0 state: down mac: <filter>
Card-2: Broadcom Limited BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller
driver: b43-pci-bridge bus-ID: 06:06.0
IF: wlan0 state: up mac: <filter>
Drives: HDD Total Size: 96.3GB (45.5% used)
ID-1: /dev/sda model: HTS721080G9AT00 size: 80.0GB
ID-2: USB /dev/sdb model: Drive_SM_USB20 size: 16.2GB
Partition: ID-1: / size: 71G used: 28G (42%) fs: ext4 dev: /dev/dm-0
ID-2: swap-1 size: 2.13GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 56.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 165 Uptime: 2:53 Memory: 819.3/2003.1MB
Init: systemd runlevel: 5 Gcc sys: 7.3.0 Client: Shell (bash 4.4.191) inxi: 2.3.56

I've run out of possibilities so any help would be greatly appreciated.
Last edited by INOV8TN on Sat Jul 06, 2019 1:35 pm, edited 1 time in total.

User avatar
trytip
Level 10
Level 10
Posts: 3403
Joined: Tue Jul 05, 2016 1:20 pm

Re: Programming a portable radio - What Port am I using?

Post by trytip » Tue Feb 19, 2019 2:34 am

Permission denied:
sudo chmod 666 /dev/ttyS0
Command chmod 666 means that all users will have read and write permissions.
Image

INOV8TN
Level 1
Level 1
Posts: 19
Joined: Thu Feb 09, 2017 4:03 pm
Location: Clemmons, NC

Re: Programming a portable radio - What Port am I using?

Post by INOV8TN » Wed Feb 20, 2019 1:53 am

Hi -

Thanks for the quick resonse

I think I'm closer but no joss.

I ran the chmod command to set successive ports:

wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS0
[sudo] password for wl:
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS1
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS2
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS3
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS4
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ sudo chmod 666 /dev/ttyS5
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$ ^C
wl@wl-HP-Pavilion-dv1000-EH443UA-ABA:/dev$

I get the same error message regardless of the port I select so I'm thinking that I must be plugged into S5.

Here's the error msg: Could not configure port: (5, 'Input/output error')

How can I diagnose a port or all of them (in case I'm not in 5?

Thanks again

- Bill

User avatar
trytip
Level 10
Level 10
Posts: 3403
Joined: Tue Jul 05, 2016 1:20 pm

Re: Programming a portable radio - What Port am I using?

Post by trytip » Wed Feb 20, 2019 2:03 am

https://chirp.danplanet.com/projects/ch ... ing_Ubuntu the best i can do without having hardware for testing.
Image

INOV8TN
Level 1
Level 1
Posts: 19
Joined: Thu Feb 09, 2017 4:03 pm
Location: Clemmons, NC

Re: Programming a portable radio - What Port am I using?

Post by INOV8TN » Sat Jul 06, 2019 1:34 pm

Thanks All - This turned out to be doable on W10 - Pretty much grinding out port-by-port but at least it got done!

Post Reply

Return to “Newbie Questions”