From owner-freebsd-usb@FreeBSD.ORG Thu Jun 8 14:55:21 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA25A16A676 for ; Thu, 8 Jun 2006 12:56:28 +0000 (UTC) (envelope-from fulda@seznam.cz) Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by mx1.FreeBSD.org (Postfix) with SMTP id E41C943D45 for ; Thu, 8 Jun 2006 12:56:27 +0000 (GMT) (envelope-from fulda@seznam.cz) Received: (qmail 26827 invoked from network); 8 Jun 2006 12:56:25 -0000 Received: from unknown (HELO PC2088) (fulda@seznam.cz@62.141.6.4) by tic.go.seznam.cz with ESMTPA; 8 Jun 2006 12:56:25 -0000 X-Seznam-User: fulda@seznam.cz Message-ID: <028901c68afa$f2a5d850$9ebf9109@PC2088> From: "Jindra Fucik" To: Date: Thu, 8 Jun 2006 14:56:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: device uhid - read only device? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 14:55:25 -0000 Hi list, I'm trying to create usb device based on PIC16C745 chip (http://ww1.microchip.com/downloads/en/DeviceDoc/41124c.pdf) I have done test device (buttons and leds) My device working as generic uhid device. I have little problem with FreeBSD - if I have loaded device uhid, my device is recognized as /dev/uhid0 - it is OK, I can use evzen# usbhidctl -f /dev/uhid0 -a usbhidctl: device does not support immediate mode, only changes reported. Microsoft:0x0001.Microsoft:0x0001=0 Microsoft:0x0001.Microsoft:0x0002=1 Microsoft:0x0001.Microsoft:0x0003=63 Microsoft:0x0001.Microsoft:0x0004=51 ... It is fine - I can read status of buttons etc. Problem is writting to device. I see, that there is api for write usbhid(3) - hid_set_data, but nobody using this. I see, that usbhidctl are different than OpenBSD version - removed switch -w (write to device) It is mean, that uhid under FreeBSD are "read only"??? Jindra