From: Rodolphe Pineau <pineau@rti-zone.org>

Date: November 21, 2005 11:16:42 AM MST

To: Astro_IIDC@yahoogroups.com

Subject: Re: [Astro_IIDC] Telescope control



On Nov 21, 2005, at 9:07 AM, Milton Aupperle wrote:


I have a 4 serial port keyspan usb-serial adapter and Astro IIDC

doesn't propose any option

to select a different port and choose port #1 by default (event if

it's already in use).

I have my GPS on serial port #1, my autostar on port #2 and use the

2 other port for micro controller communications


Actually no, it shouldn't select a port if it's marked for exclusive

use. When Astro IIDC tries to acquire a posix serial port, it scans

through all the available serial ports, then tries to open exclusive

access to each one. If another driver is using it, then the exclusive

use call should fail and it continue searching for a port. However if

the port isn't in use when we check, then it's assumed to be open and

the one your connected too.



Yesterday I was using port #1 with minicom abd when I started Astro IIDC It took the same port..

So may be minicom doesn't open the port in exclusive mode .



We will look into adding this feature in the 3.0 release of Astro IIDC.


Ok.

So In the mean time I'll reorganize my serial port usage.



Thanks,

Rodolphe


PS : If your code is in C/C++ using carbon I have a class ready to use for serial port selection, the one I use in AutoStarX


--


Rodolphe Pineau                       Sr System Programmer

Cnet  235 Second Street           #5262

San Francisco CA 94105