From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 21 02:35:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D663A37B404 for ; Sat, 21 Jun 2003 02:35:26 -0700 (PDT) Received: from little-jim.newcastle.edu.au (little-jim.newcastle.edu.au [134.148.24.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FFBD43FA3 for ; Sat, 21 Jun 2003 02:35:25 -0700 (PDT) (envelope-from samuel.lawrance@studentmail.newcastle.edu.au) Received: from CONVERSION-DAEMON.mx.newcastle.edu.au by mx.newcastle.edu.au (PMDF V6.2 #30731) id <0HGT00101RYZM7@mx.newcastle.edu.au> for hackers@freebsd.org; Sat, 21 Jun 2003 19:35:23 +1000 (EST) Received: from banerjee ([134.148.4.49]) by mx.newcastle.edu.au (PMDF V6.2 #30731) with ESMTP id <0HGT0012QRYZAG@mx.newcastle.edu.au> for hackers@freebsd.org; Sat, 21 Jun 2003 19:35:23 +1000 (EST) Received: from studentmail.newcastle.edu.au (localhost [127.0.0.1]) by banerjee.newcastle.edu.au (iPlanet Messaging Server 5.2 HotFix 1.10 (built Jan 23 2003)) with ESMTP id <0HGT00HQMRYRB0@banerjee.newcastle.edu.au> for hackers@freebsd.org; Sat, 21 Jun 2003 19:35:15 +1000 (EST) Received: from [203.12.144.232] by banerjee.newcastle.edu.au (mshttpd); Sat, 21 Jun 2003 19:35:15 +1000 Date: Sat, 21 Jun 2003 19:35:15 +1000 From: SAMUEL ISAAC LAWRANCE To: hackers@freebsd.org Message-id: <7969777b1e.77b1e79697@studentmail.newcastle.edu.au> MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.10 (built Jan 23 2003) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Subject: ucom driver, device/tty problems for new driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2003 09:35:27 -0000 Hi, I'm a kernel-internals newbie in the middle of creating a serial over usb driver to connect Pocket PCs to FreeBSD. Presently the driver works, although I'm trying to figure out some behaviour regarding the ucom tty device that I don't understand. The driver is ucom-based. All it does is fire of a couple of 'magic' requests to the Pocket PC to kick off serial mode. After that everything coming in and going out of the pipes is all data, so ucom is able to handle the rest. I've done enough debugging to know that the ucom driver is handing off incoming data to its tty correctly. The problem: The first thing that should come out of ucom0 when it is opened is the string 'CLIENT'. This happens correctly when I open the device with userlevel ppp. In fact once user ppp opens the device it does everything I want it to. It fails however if I do a 'cat /dev/ucom0' or 'cu -l /dev/ucom0'. Using either of these commands, I can see the ucom driver giving the data to the tty; but nothing shows up at the user end. I'm wondering whether I should be setting some sort of state on the ucom tty to 'make it go'. PPP must do something to it, but I just can't figure out what. Any help appreciated. Cheers, Sam Lawrance.