Best practice Serial (COM) port handling across Targets?

Hello all,

Up until now, I had been programming with the thought of using my apps on targets other than Windows. Now, the time has come to expand the project to run on Linux. Among other things, I have found that Linux Serial COM Port names for opening (COMn in Windows) is much different in Linux/MAC than Windows. This is a pretty fundamental mistake on my part not being aware of the signifcant difference between OS’s. My code uses a database to remember what COM ports to use so it is a little larger - perhaps - than a first glance may show.

So, before jumping in and trying to shoehorn code changes to make this work for Linux, I thought I would ask the forum users what they have done to best manage this situation and other similar situations.

Any suggestions would be appreciated!

Thanks,
Tim