From owner-freebsd-ports@FreeBSD.ORG Mon Jun 28 08:08:47 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1149B16A4CE for ; Mon, 28 Jun 2004 08:08:47 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BD3F43D2F for ; Mon, 28 Jun 2004 08:08:38 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i5S88OO9070516 for ; Mon, 28 Jun 2004 10:08:26 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.12.10/8.12.10/Submit) id i5S88ODw070515 for freebsd-ports@freebsd.org; Mon, 28 Jun 2004 10:08:24 +0200 (SAST) (envelope-from jhay) Date: Mon, 28 Jun 2004 10:08:24 +0200 From: John Hay To: freebsd-ports@freebsd.org Message-ID: <20040628080823.GA70152@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: tcl serial port support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 08:08:47 -0000 Hi, I have been trying to get gpsman 6.1.1 (astro/gpsman) to work with the gps on my serial port, but it looks like our tcl does not support serial port access. I have used tcl-8.4.6,1 from the -current packages on a -current machine. On the gpsman web site there is a piece about some tcl ports not being configured correctly and then not being able to use serial ports. They also have a test program there and its output looks like this: ###################### angel:~ > tmp/testTclserial.tcl Error in startup script: bad option "-mode": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation while executing "fconfigure $SRLFILE -blocking 0 -mode 9600,n,8,1 -translation binary" (file "tmp/testTclserial.tcl" line 48) ###################### The gpsman known problem page is at: http://www.ncc.up.pt/gpsman/wGPSMan_6.html The serial port test program is at: http://www.ncc.up.pt/gpsman/gpsmanhtml/testTclserial.tcl In the testTclserial.tcl program I have changed the "exec wish" to wish8.4 and the "set DEVICE /dev/ttyS0" to /dev/cuaa0 which is where my gps is connected. So have anybody used tcl with serial ports or maybe have an idea how to get our tcl to work with serial ports? Thanks. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org