On 31/03/2015 20:54, John C. Peterson wrote: Hi John, > On 03/30/15 14:31, Bill Somerville wrote: >> On 30/03/2015 20:37, John C. Peterson wrote: >>> I'm working a cleaning up some other small problems with WSPR-X and one >>> of them is getting the ComboBox widgets with serial port entries (for >>> CAT, PTT) to have entries that are meaningful for the given target >>> platform (e.g. MACX, UNIX or WIN32). >>> [...snip...] >> Hi John, >> Simple answer, QtSerialPortInfo::availablePorts(). For an implementation >> that uses it look at Configuration.cpp in ^/branches/wsjtx recently >> added code to use it to enumerate ports. Works FB on Windows/Mac/Linux. >> WSJT-X has a couple of complexities with port names but the principle is >> very simple. Beware of QSerialPortInfo::isBusy() to check for free ports >> as that opens the port which will toggle DTR & RTS on Linux and Mac >> which might interfere with PTT switching arrangements. > Thanks Bill, that looks like a nice and clean solution. I tinkered with > it a bit last night and it seems to work just as advertised. > > Chuck - It looks to me like Bill's approach should just work. I can't > think of any reason why custom udev rules would make any difference. The > Qt wiki indicates that QtSerialPort is fully supported on Linux, MacOSX, > and Windows. With respect to this, in WSJT-X I have made the serial port combo boxes editable so that the user can put in anything they wish, just in case an oddball udev rule on Linux or a strange device driver doesn't get picked up by the Qt internal enumeration. > > 73 Bill G4WJS.
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
