From owner-freebsd-usb@FreeBSD.ORG Wed Feb 12 17:39:16 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94842138 for ; Wed, 12 Feb 2014 17:39:16 +0000 (UTC) Received: from g2host.com (mailfront3.g2host.com [208.42.184.241]) by mx1.freebsd.org (Postfix) with ESMTP id 619E61A5A for ; Wed, 12 Feb 2014 17:39:15 +0000 (UTC) Received: from [173.165.236.123] (account cjd@small-tree.com HELO cjd.local) by mailfront3.g2host.com (CommuniGate Pro SMTP 5.3.11) with ESMTPSA id 142897406; Wed, 12 Feb 2014 11:29:09 -0600 Message-ID: <52FBAF6A.5000304@small-tree.com> Date: Wed, 12 Feb 2014 11:29:14 -0600 From: Chris Duffy User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Question on Freebsd 9.1, usb interface to a UPSonic CXR 2000 using NUT code. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cjd@small-tree.com X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 17:39:16 -0000 I have a customer of mine that just bought a UPSonic CXR 2000 and is trying to connect the usb cable from this UPS to a Freebsd 9.1 system running the 2.6.5 NUT code. Freebsd/NUT does not see the device properly. I have also been working with the NUT people and they suggested that I discuss this issue with the freebsd-usb folks..... Here are some command output that the NUT people asked for and after seeing it, they think it may be a bug on Freebsd so here I am asking for help :) They also stated that they had thought that others may have gotten the blazer_usb driver to work properly on Freebsd but........ I deactivated the uhidd stuff since NUT suggested this in order to get more debug info.... # uhidd -v -u /dev/ugen1.3 ugen1.3[0]-> Report descriptor size = 27 ugen1.3[0]-> Kernel driver is active ugen1.3[0]-> kernel driver detached! ugen1.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 # /usr/local/libexec/nut/blazer_usb -a UPSonic -u root -DDDD 0.000000 debug level is '4' 0.176793 Checking device (06DA/0005) (/dev/usb//dev/ugen1.3) 0.183672 - VendorID: 06da 0.183696 - ProductID: 0005 0.183699 - Manufacturer: PPC 0.183703 - Product: USB UPS 0.183707 - Serial Number: unknown 0.183710 - Bus: /dev/usb 0.183714 Trying to match device 0.183718 Device matches 0.183746 Trying megatec protocol... 0.184566 send: Q1 0.423946 read: (239.3 239.3 229.9 027 50.0 2.19 22.8 00000001 0.423988 Status read in 1 tries 0.424000 Supported UPS detected with megatec protocol 1.455927 send: Unknown error 1.455973 Permissions problem: Input/output error Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 (2.6.5-Unversioned directory) I have checked all the ownership/permissions on the /dev related files and confirmed with NUT the proper stuff.... Is there something I am missing to support the usb attachment for UPS driver for this particular UPS? Thx for any pointers/help. Chris