Boost logo

Boost Users :

Subject: Re: [Boost-users] ASIO?
From: Stian Zeljko Vrba (vrba_at_[hidden])
Date: 2018-09-05 12:07:15


On windows, the easiest way is trying to open COM1, COM2 in sequence and see whether open succeeded.
If you'll enumerate more than 10 ports, you should name them as \\.\COM10<file://./COM10> etc.

From: Boost-users <boost-users-bounces_at_[hidden]> On Behalf Of Tim Burgess via Boost-users
Sent: Wednesday, September 5, 2018 12:46
To: boost-users list <boost-users_at_[hidden]>
Cc: tim_at_[hidden]
Subject: [Boost-users] ASIO?

Hi,

I'm looking for a mechanism allowing me to enumerate serial (Com) ports on Windows/Mac. I also need to be able to retrieve the name of a given serial device. I've had a quick look at boost::asio, but it isn't clear to me if it can do what I want.

I'd be grateful for any advice, including alternatives if boost and/or ASIO aren't up to the job.

Best wishes.

Tim Burgess
Raised Bar Ltd.
E: tim_at_[hidden]<mailto:tim_at_[hidden]>
M: +44 (0)7989 486976



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net