View Issue Details

IDProjectCategoryView StatusLast Update
0001129SkyChart1-Softwarepublic14-03-29 17:55
ReporterFerran Casarramona Assigned ToPatrick Chevalley  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformx86 Mac OS 10.8OSOSXOS Version10.8
Product Version3.6 
Target Version3.10Fixed in Version3.9 SVN 
Summary0001129: LX200 interface don't work under OSX
DescriptionWhen connecting to a LX200 telescope with the LX200 interface (not INDI interface) the program shows the error "Port /dev/cu.serialport-A1000zbJ cannot be opened! Not a typewriter"

The same hardware configuration works Ok with INDI.
Steps To ReproduceSelect LX200 interface for telescope.
Open telescope control panel and configure the appropriate port.
Push the connect button.
Additional InformationIn BSD like operating systems (like OSX) serial ports behave a bit different than in Linux.

For every serial port there exist 2 devices, one starts with tty (like Linux ones) an another starts with cu, for exemple, in my computer I have /dev/tty.usbserial-A1000zbJ and /dev/cu.usbserial-A1000zbJ.

For legacy reasons tty devices are used as a "dial-in" device for modems. That is, when open a tty device it looks for carrier signal until a entry call is detected.

On the other hand cu devices are used for "dial-out" devices, and it behaves like a Linux tty device.

This architecture allows one process to "listen" in a serial port without blocking the "dial-out" device, and other process can use it if needed.

See: http://freebsd.active-venture.com/faq/serial.html#ACCESS-SERIAL-PORTS

So for a telescope control on OSX cu device is need, but the LX200 interface seems is checking the device must start with tty. If you configure the port as the tty, the "Not a typewriter" error don't appear and the program hangs because the operating system don't return from the open port command until a dial-in call is detected.
TagsNo tags attached.

Activities

Patrick Chevalley

13-01-27 16:13

administrator   ~0002441

Yes, this part is totally untested on the Mac.

I find a lot of thing to change for using correctly the serial port on the Mac, both with the Synaser library and Freepascal.
But unfortunately I not have a configuration available for testing right now, I let my usb-serial converter at the observatory, 400km from home. Will try to find another one.

In the mean time I have disabled this option for the Mac beta version to avoid people lost time to try to configure it.

Patrick Chevalley

13-04-28 18:05

administrator   ~0002516

This is fixed in revision 2511:
https://sourceforge.net/p/skychart/code/2511

For me it now work with both /dev/cu.usbserial... and /dev/tty.usbserial...

Issue History

Date Modified Username Field Change
13-01-27 14:53 Ferran Casarramona New Issue
13-01-27 16:13 Patrick Chevalley Note Added: 0002441
13-01-27 16:13 Patrick Chevalley Assigned To => Patrick Chevalley
13-01-27 16:13 Patrick Chevalley Status new => assigned
13-01-27 16:13 Patrick Chevalley Target Version 0.3.0 => 3.10
13-04-28 18:05 Patrick Chevalley Note Added: 0002516
13-04-28 18:05 Patrick Chevalley Status assigned => resolved
13-04-28 18:05 Patrick Chevalley Resolution open => fixed
13-04-28 18:05 Patrick Chevalley Fixed in Version 0.3.0 => 3.9 SVN
14-03-29 17:55 Patrick Chevalley Status resolved => closed