You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to connect to a com port

I am trying to program an Arduino ESP32 and the program asks for a com port. But only a Bluetooth connection appears. Is there a com port function imilar o that on Windoze?


MacBook Pro (2017 – 2020)

Posted on Aug 18, 2023 2:06 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 23, 2023 12:44 PM

So the ESP32 is not recognized in the same manner as my screenshot examples... only those "unknowns" are shown? That's kind of a show-stopper.


It should be as simple as I wrote. Perhaps that's a consequence of newer IDE versions that presumably incorporate the required hardware drivers; I don't know.


I think the Arduino Community Forum would be the place to seek assistance, but before posting a new question have a look at this Arduino Support document: If your board does not appear on a port in Arduino IDE. That seems to describe what you're encountering perfectly.

17 replies
Question marked as Top-ranking reply

Aug 23, 2023 12:44 PM in response to bob.c

So the ESP32 is not recognized in the same manner as my screenshot examples... only those "unknowns" are shown? That's kind of a show-stopper.


It should be as simple as I wrote. Perhaps that's a consequence of newer IDE versions that presumably incorporate the required hardware drivers; I don't know.


I think the Arduino Community Forum would be the place to seek assistance, but before posting a new question have a look at this Arduino Support document: If your board does not appear on a port in Arduino IDE. That seems to describe what you're encountering perfectly.

Aug 21, 2023 10:56 PM in response to bob.c

bob.c wrote:

Hey John Galt, I gave this a shot but this time the IDE wold not open: I get an error msg saying "the app Arduino cannot be opened -47" and "There is no app available to open it."


You have to solve that problem first. Be sure to download the correct IDE for your Mac: either this one for Intel Macs running Mojave or newer, or this one for M series Macs running Big Sur or newer.


Then, drag it like so,


... which puts its components in the right place.

Launch it and throw caution to the wind

... upon which you will be asked to select which board you are using.


I am using the Arduino Uno in this example but the ESP32 ought to be identical.



If you can't get this far we need to resolve that problem first. Describe which macOS version you are using because if it's earlier than Mojave or Big Sur (Intel and M series respectively) we have to find the correct IDE to download for your systems. I did it before so I'm sure I can do it again.


At the bottom right you will see confirmation of the connected board and port:

Done.


Discussions regarding USB to serial port converters and ports are not relevant. You don't need anything like that. You just need a USB-C cable. macOS will recognize the Arduino and automatically assign it to the correct device in /dev as shown above. The same thing will occur on other Unix-like systems (such as Ubuntu Linux) that automatically detect connected hardware when it is connected.


As for Windows and its "COM ports" just forget about them. They are an outdated and antiquated holdover Microsoft stole from systems eons prior to it. The Arduino IDE is well-supported and works perfectly on Macs.

Aug 21, 2023 6:49 PM in response to bob.c

Hey John Galt, I gave this a shot but this time the IDE wold not open: I get an error msg saying "the app Arduino cannot be opened -47" and "There is no app available to open it." Oddly enough, the IDE is already open on my desktop, and that is where I cannot get a port to appear. (But does a Mac use the comm port idea like Win does, to connect to a device?)

BTW, I am trying out the Dr.Arduino site to build a mini weather station to go with my ham radio shack. I'm trying to also do the build on a win 10 pc but have stalled in that effort too...but getting direct help from the Dr's staff.

Aug 21, 2023 7:29 PM in response to bob.c

bob.c wrote:

…(But does a Mac use the comm port idea like Win does, to connect to a device?)…


MS-DOS and Windows via Microsoft and IBM and PC-DOS got its idea for a COM port from some earlier operating systems systems and mostly from the 1970s, and that probably including DEC RSX-11M and its schemes, while Windows NT arrived from DEC MICA and VAX/VMS, while Unix and macOS got their ideas for drivers and driver communications from some other inspirations. Similar purposes, same general function, but with differences. While interesting to some of us, none of the history here is particularly relevant to this case, either.


The serial port is long gone from Macs—last Mac I’ve worked with that sorta-kinda had a built-in serial port was Xserve—but you can get a serial port on most any Mac using a USB-to-serial adapter. Microsoft Windows officially dumped all that “junk I/O” (as it was sometimes called) with the end of legacy I/O, but various PCs still support legacy I/O.


For this case, I’ve found the Plugable brand USB-to-serial devices to work, though haven’t yet used one yet with Ventura. I’ve also used some of the older KeySpan adapters, but not those in recent years. An adapter with a Prolific PL-2303-derived series chipset will usually work. (There are counterfeits of this Prolific chipset and some other common chipsets around, so do try to avoid buying the cheapest available adapter choices. Some of the counterfeits don’t work all that well, and sometimes a vendor (such as FTDI) deliberately bricks counterfeits.)


There are some different command-line and UI tools to connect to the serial port including cu and tmux at the command line, and some UI-based Terminal emulators.such as Decisive Serial or Serial 2. There are other choices. The built-in Terminal app works dine, but doesn’t know from serial ports.

Aug 22, 2023 6:13 PM in response to John Galt

Hi John,

The Arduino download worked but it is version 2.1.1 while this project (from Dr. Duino website) requires version 1.8.19 for his Mini Weather Station project. The newer version doesn't work on this thing. It's odd that I did download version 1.8.19 once and I still have it open - don't want to close and lose it. I'm also proceeding with this project using an Asus Win 10 laptop but still running into walls with Win 10 (hate it!) I'll come back to this when I can get the Win 10 one to work......... Tnx, bob.c

Aug 22, 2023 7:28 PM in response to bob.c

I see the dilemma. I'm using the most current IDE version, and if they need an older one it might not work on your Mac.


I'm reluctant to believe that they really need an older version. Obviously it's best, generally speaking, to use the latest version of whatever software runs on whatever Mac hardware you have.


I'll also admit to a little bias regarding the Dr. Duino website. Seems like they're selling really expensive stuff. The whole Arduino community philosophy is centered on open source software and inexpensive hardware supported by volunteers who aren't trying to capitalize on anything.


But... that's just my opinion.


Maybe you should get involved in the Arduino Community Forum. It's analogous to Apple Support Communities, and is certain to be more active with much greater participation than the Dr. Duino website. Just a thought.

Aug 23, 2023 6:38 AM in response to John Galt

G/M John, yes the current IDE loaded quickly and cleanly, but would not address the ESP32 used for this project. I think Dr.Duino developed this project a year or so ago, hence an older program. And I do agree that his other kits are a bit pricey for what they do, although in his videos he does a nice job explaining the logical steps in his programs. His advert for the Weather Station was on the ARRL weekly letter, proving of some interest to the ham radio community. I will look into the Arduino forum for good ideas too. Thanks for your advice. 72 de k1qed, bob.c

Aug 24, 2023 7:18 PM in response to John Galt

John, .....Success! The one option at the port line with a /dev on it was the right one. I slogged on, trying to follow the video and the instructions together; finally produced a fine little Weather Station. Thanks for your help and also to MrHoffman for background on ports. Also grateful for the Arduino Community referral - an interesting site and neat projects too, altho not many related to ham radio. That was my original interest, but I might find some little projects to interest my great grandkids! 72/73 de k1qed, bob.c

Aug 24, 2023 8:02 PM in response to bob.c

Great! Glad to hear it.


I thought you had initially mistyped "73" but when you signed off with both I had to research the meaning of "72". Thanks for the history lesson.


Speaking of which I was active in the early days of packet radio, using an AEA PK-232 and a Macintosh SE. It occurred to me that if we could send (what we call now) "text messages" to one another over great distances with 2-meter repeaters, it should be possible to send computer programs the same way. It wasn't easy obtaining Mac software in those days, so why not try it? Other than floppy disks though the mail, the only other option was dialup and Compuserve — where what eventually came to be known as Apple Support Communities originated.


So I took a small program (ResEdit perhaps), compressed it (somehow), BinHex'd it, and sent the ASCII text file to another station using Red Ryder. It was abysmally slow even for those days. The receiving operator converted it, reassembling the pieces at the other end — and much to our surprise — it worked! Icon and everything.


For all I know we were the first to do it. We did it for laughs and never thought much about it after that.


k1qed is a cool call sign. I let my license lapse when talking to one another using a tiny handheld radio became mundane. I guess the novelty wore off.

Aug 25, 2023 6:22 AM in response to John Galt

Yeah, 72 is a bit of a joke for those of us who operate QRP: we don't have enough power to end 73 so we have to cut it back a bit! Wow, a PK-232, I had one and tried to link it up with a Commodore 64; I think I did get it to provide a signal to translate rtty as my Comm. printer (pin-feed with tear-off side strips!) pushed out a final news release from Radio Bulgaria, in English! I do remember hearing packet radio but could not decode it with a C-64!

I was a shortwave listener (SWL) until I got my license in 2001 in FL. There isn't much to listen to any more for the international broadcasts by various nations, since propaganda budgets have dried up. SWL was a lot of fun, though, but ham radio is still a blast for me, speaking to folks around the world right now in Solar Cycle 25 which has proven to be an exciting cycle.

The callsign came from my time as a high school math teacher - when you wrote the last line of a geometry problem, you'd write Q.E.D. or quod erat demonstrandum, or "That which was to be demonstrated" or in a bad translation, Thus I Proved it! But I have had a great time on the air, got my Extra upgrade last year and having fun building kits. 72/73 de k1qed, bob.c

how to connect to a com port

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.