From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 21:52:11 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D07691065674 for ; Wed, 9 Nov 2011 21:52:11 +0000 (UTC) (envelope-from juanestrod@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 659FB8FC12 for ; Wed, 9 Nov 2011 21:52:09 +0000 (UTC) Received: by wwg14 with SMTP id 14so862875wwg.31 for ; Wed, 09 Nov 2011 13:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=6n+t+i1eHlAjYNFXr2EI6+GSMind1RefskuxO5hdk1M=; b=twiHdj2dC5J6RFC9yXgk5nRcxf0PB9FVxADqL1gOFZfF4u/1ozitTGSEiQY5TsEyuD 41uLEJt3qBn53OanW4Fkuh0jW4nOMBGtnzYxTQpzmhGgZkGKOvZadB1kIlZLCYR0hC0A o9eCgflHU/NRLEgkFNZmaRGy+3J82ZP0B+nro= MIME-Version: 1.0 Received: by 10.180.75.204 with SMTP id e12mr4778771wiw.61.1320873933407; Wed, 09 Nov 2011 13:25:33 -0800 (PST) Received: by 10.180.8.233 with HTTP; Wed, 9 Nov 2011 13:25:33 -0800 (PST) Date: Wed, 9 Nov 2011 18:25:33 -0300 Message-ID: From: Juan Rodriguez To: freebsd-questions@freebsd.org X-Mailman-Approved-At: Wed, 09 Nov 2011 22:06:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problems with ioctl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 21:52:11 -0000 Hi!!.. I read your post on http://lists.freebsd.org/pipermail/freebsd-questions/2011-August/232945.html, and I have a similar problem. I my case I try to set and unset the RTS pin of the serial port, I use the ioctl() function with the TIOCMGET and TIOCMGET, the program works very well when I use the serial port (COM1) but when I use a USB<->COM (like you) converter the ioctl() function return me a fail, the error is "Invalid Argument". I need some solution or if you can recommend me any page or put me in contact with any other person. Any help will be very useful. My name is Juan Rodriguez and I'm from Paraguay. Thanks!!. P.S.: Sorry my English is not very good.