Project

General

Profile

MacOS Tips » History » Version 36

Dan Smith, 12/07/2022 06:22 PM

1 35 Dan Smith
# MacOS Tips
2 24 Tom Hayward
3 33 Dan Smith
{{>toc}}
4
5 35 Dan Smith
# CHIRP Beginners Guide
6 18 Dave Nathanson
7
The Beginners Guide has general help. Click here for the [[Beginners Guide]] 
8
If you need Mac-specific help, you are at the right page. 
9
10
Join the Mailing list & search the archives for similar problem reports & how they were resolved, and/or ask the group. Please include enough info about the problem and situation so the community will be able to help you. 
11
12 35 Dan Smith
# Application Security in MacOS 10.9+
13 13 Dan Smith
14 27 Dave Nathanson
As of MacOS 10.9, signed packages are required by default. Apple charges for this capability, and requires use of their tooling to do it. For the time being, MacOS users may need to disable signed package checking for CHIRP. Instructions provided by Jim, K2SON:
15 13 Dan Smith
16 35 Dan Smith
 1. Locate the app in Finder. 
17
 1. Right click (control-click if you don't have a 2 button mouse) on the app and click Open.
18
 1. You will get a dialog box about it being an unsigned app, click the Open button.
19
 1. Enter an Administrator userid and password.
20
 1. The app will now be flagged to allow it to be opened normally in the future.
21 13 Dan Smith
22
Alternately, you can disable them for your entire system, although this has security implications that should not be ignored. Instructions for this provided by Tom, KD7LXL:
23
24 35 Dan Smith
 1. Open your System Preferences
25
 1. Go to Security & Privacy, General tab.
26
 1. Click the lock
27
 1. Then choose Allow apps downloaded from: Anywhere.
28 25 Neil Katin
29 32 Tony Fuller
30 35 Dan Smith
# Application Security in MacOS 10.12 - 10.14
31 25 Neil Katin
32
As of 10.12 (Sierra) the UI for disabling app security was removed.  The functionality is still there, but must be enabled from the command line.
33
34
To whitelist a single application (like an unzipped chirp-daily.app):
35 35 Dan Smith
1. unzip chirp.zip
36 36 Dan Smith
1. control click on the unzipped application and select ??New Terminal at Folder??.  (Don't see that menu item?  [Instructions to enable it](https://lifehacker.com/launch-an-os-x-terminal-window-from-a-specific-folder-1466745514) )
37 35 Dan Smith
1. run this command in the newly opened terminal window:
38 25 Neil Katin
<pre>
39
spctl --add $PWD
40
</pre>
41
42
Alternately, you can disable them for your entire system, although this has security implications that should not be ignored. Run this command in a terminal:
43
<pre>
44
sudo spctl --master-enable
45
</pre>
46
47 36 Dan Smith
references: [single command](http://osxdaily.com/2015/07/15/add-remove-gatekeeper-app-command-line-mac-os-x/) [global](http://osxdaily.com/2016/09/27/allow-apps-from-anywhere-macos-gatekeeper)
48 13 Dan Smith
49 35 Dan Smith
# Application Security in MacOS 10.15+ (Catalina)
50 28 Dan Smith
51
Unfortunately, Apple has made significant changes in 10.15 which cause major issues for independent software developers. CHIRP is significantly impacted and the future is unclear.
52
53
At the very least, Catalina users should use the "unified" build of the app provided on the download page, which uses the system's 64-bit python runtime. Also note that there are significant limitations on what files unsigned applications can access which makes it very difficult to open, save, find, and otherwise organize image and CSV files with chirp. Please see issue #7147 for the current information about workarounds.
54 32 Tony Fuller
55
You can also try manually signing the CHIRP app
56
57
<pre>
58
xattr -c /Applications/CHIRP.app
59
xattr -c /Applications/CHIRP.app/Contents
60
codesign --force --deep --sign - /Applications/CHIRP.app
61
</pre>
62 1 Dan Smith
63 35 Dan Smith
# MacOS 12.3+ (Monterey)
64 33 Dan Smith
65 36 Dan Smith
As of macOS 12.3, Apple has removed python2.x support. However, you can install the [open-source python](https://www.python.org/downloads/release/python-2716/) distribution package to restore it. This is only needed once per system, after which the .app will work normally. Download it directly from [python.org](https://www.python.org/ftp/python/2.7.16/python-2.7.16-macosx10.9.pkg) or use the [local mirror](https://trac.chirp.danplanet.com/chirp_daily/MacOS/python-2.7.18-macosx10.9.pkg) .
66 33 Dan Smith
67
This reportedly works in macOS 12.3 on Intel and Apple Silicon machines.
68
69 35 Dan Smith
# Mac USB Drivers
70 1 Dan Smith
71
USB to serial cables are not merely wire, they contain small computer circuits at one end of the cable that respond as a USB device and convert the data to serial. These cables are not all the same, so the computer needs a software "driver" so it can recognize the cable and speak to it correctly. You will need to install one of these 5 below. 
72 23 Tom Hayward
73 35 Dan Smith
## FTDI cables
74 23 Tom Hayward
75
Note that with Mac OSX 10.9 "Mavericks", Apple provides their own driver for FTDI chipset. You may need to remove the OEM FTDI driver and use only the Apple FTDI driver, or you may need to disable the Apple FTDI driver and install the OEM FTDI drivers. YMMV.
76
77
http://www.ftdichip.com/Drivers/VCP.htm
78 1 Dan Smith
Version 1.5.1 is available for Mac OS X on 64 bit, 32 bit and PPC machines. 
79 23 Tom Hayward
80 35 Dan Smith
## Prolific PL-2303 cables
81 1 Dan Smith
82 33 Dan Smith
Official drivers for the genuine Prolific cables
83
84 23 Tom Hayward
*FYI: your cable, if using Prolific chipset, is more likely to be using a counterfeit chip than an original.*
85
86 1 Dan Smith
http://www.prolific.com.tw/US/CustomerLogin.aspx 
87
Login as guest/ guest & look in the Support section. Specified to work with Mac OSX 10.6, 10.7, & 10.8. 
88 23 Tom Hayward
89 35 Dan Smith
## Generic PL-2303 cables
90 1 Dan Smith
91 33 Dan Smith
These are counterfeit and/or “Generic”. If you aren't sure what kind of inexpensive cable you have, try this one first. 
92 23 Tom Hayward
93 35 Dan Smith
### For Lion (10.7.x-10.9.x):
94 33 Dan Smith
95 23 Tom Hayward
You can try this one, which install open source pl2303 driver and remove any other driver versions:
96
http://1drv.ms/Nl68Ru At this web page you may need to right-click or control-click to link to get it to download. After downloading, you may need to control-right click, then open in order to bypass Mac Gatekeeper. 
97
98 35 Dan Smith
## RTSystems cables
99 23 Tom Hayward
100 35 Dan Smith
### for OSX 10.9.x (aka Mavericks):
101 1 Dan Smith
102
see [[RTSystemsCablesAndMavericks]]
103 23 Tom Hayward
104 35 Dan Smith
### for OSX < 10.9.x: 
105 23 Tom Hayward
106
https://www.rtsystemsinc.com/kb_results.asp?ID=9
107
http://www.rtsystems.us/downloads/MacDrivers/RTSystemUSBSerialDrivers.pkg.mpkg.zip
108
109 35 Dan Smith
## Silicon Labs CP210x
110 33 Dan Smith
111
These USB to UART Bridge VCP Drivers work for cables with this chip, including Kenwood TH-D72.
112 23 Tom Hayward
113
* http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
114
Macintosh OSX driver for the Intel and PowerPC Platforms versions 10.4, 10.5, 10.6, 10.7, 10.8, and 10.9.
115
116 35 Dan Smith
## WinChipHead CH340 series chipset
117 31 Bernhard Hailer
118
The WinChipHead CH340 series chipset is not compatible with the Prolific 2303 drivers. This chipset will report a Product ID of 0x7523 and a Vendor ID of 0x1a86. A signed driver compatible with Yosemite is available from http://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/ as the driver offered on the manufacturer's website (in Chinese) is not signed and requires allowing unsigned kernel extensions, which is a significant security risk on OS X.
119
120 35 Dan Smith
# Tips
121 1 Dan Smith
122 11 Tom Hayward
* In many cases you need to connect the cable to the radio first, then power the radio on, while holding down some buttons. The exact procedure varies by radio.
123
* Some radios need to be put into a "clone" mode to transfer to PC, some radios may need to be configured to use the mic/speaker jacks for PC transfer instead of for the speaker/mic. The exact procedure varies by radio. 
124
* You will need to download from the radio to CHIRP first, before uploading anything to the radio. CHIRP creates a template from the radio download so it knows how to talk to the radio. 
125
* If you want to download from one radio and upload those settings to another radio, first download from each radio to a separate “tab” of CHIRP. Then copy/paste from one tab to the other & upload back to the same radio that produced that tab. Do not try to upload to a radio directly from a tab that was not downloaded from that same radio. 
126
* Many USB to serial cables include a counterfeit Prolific chip. This can cause connection problems because the official Prolific driver will ignore the counterfeit chip. Some people have reported success by using an older version of the Prolific driver, or a 3rd party driver. 
127
* If you are using multiple USB cables, each will create a different “virtual port”, meaning that you will need to select the correct virtual port for your radio when connecting to your radio. CHIRP will give you this opportunity each time you download from the radio. 
128
* If your radio is not "Supported", you can try downloading the newest Daily Build to see if support was recently added.
129 1 Dan Smith
130 35 Dan Smith
# Troubleshooting
131 8 Dave Nathanson
132 11 Tom Hayward
You can verify that the drivers are installed & working by connecting the USB cable to your Mac, then running “System Profiler”, or “System Information” (found in  /Applications/Utilities ). When the USB cable is connected and drivers correctly installed, the cable will show up in the USB section of the System Profiler. 
133 6 Dave Nathanson
134 11 Tom Hayward
Another way to see that the driver is correctly installed is to open Terminal and type:
135 6 Dave Nathanson
136 11 Tom Hayward
    ls /dev/cu*
137 6 Dave Nathanson
138 11 Tom Hayward
It will return a list of virtual serial ports including something similar to:
139 6 Dave Nathanson
140 11 Tom Hayward
    /dev/cu.usbserial-A501XQ5I     (suffix will vary)
141 6 Dave Nathanson
142 11 Tom Hayward
You may also type:
143 6 Dave Nathanson
144 11 Tom Hayward
    kextstat
145 6 Dave Nathanson
146
That will return a long list of kexts, including something similar to this at the bottom (most recently installed are listed last):
147
148 11 Tom Hayward
    142    0 0xffffff7f81fc8000 0x8000      0x8000     com.FTDI.driver.FTDIUSBSerialDriver (2.2.18) <112 32 5 4 3 1>
149
150 6 Dave Nathanson
Look at the CHIRP log for clues.
151
152 11 Tom Hayward
    ~/.chirp/debug.log
153
154 23 Tom Hayward
Join the Mailing list & search the archives for similar problem reports & how they were resolved, and/or ask the group. Please include enough info about the problem and situation so the community will be able to help you.