Question on Freebsd 9.1, usb interface to a UPSonic CXR 2000 using NUT code.

2014-02-12 Thread Chris Duffy

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 -

   0.00debug level is '4'
   0.176793Checking 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.183714Trying to match device
   0.183718Device matches
   0.183746Trying megatec protocol...
   0.184566send: Q1
   0.423946read: (239.3 239.3 229.9 027 50.0 2.19 22.8 0001
   0.423988Status read in 1 tries
   0.424000Supported UPS detected with megatec protocol
   1.455927send: Unknown error
   1.455973Permissions 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


___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


new usb device probably, needs quirks

2014-02-12 Thread Volodymyr Kostyrko

Hi all.

# usbconfig -d 5.2 dump_device_desc
ugen5.2:  at usbus5, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (200mA)


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0930
  idProduct = 0x6544
  bcdDevice = 0x0100
  iManufacturer = 0x0001  <>
  iProduct = 0x0002  
  iSerialNumber = 0x0003  
  bNumConfigurations = 0x0001

# usbconfig -d 5.2 reset

Feb 12 17:44:56 urquan kernel: umass0: at uhub5, port 4, addr 2 
(disconnected)
Feb 12 17:44:57 urquan kernel: umass0: class 0/0, rev 2.00/1.00, addr 2> on usbus5

Feb 12 17:44:57 urquan kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4100
Feb 12 17:44:57 urquan kernel: umass0:1:0:-1: Attached to scbus1
Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0
Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> Removable 
Direct Access SCSI-0 device

Feb 12 17:44:57 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F
Feb 12 17:44:57 urquan kernel: da7: 40.000MB/s transfers
Feb 12 17:44:57 urquan kernel: da7: 7397MB (15149056 512 byte sectors: 
255H 63S/T 942C)

Feb 12 17:44:57 urquan kernel: da7: quirks=0x2
Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): got CAM status 0x50
Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): fatal error, 
failed to attach to device

Feb 12 17:44:57 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0
Feb 12 17:44:57 urquan kernel: da7: < USB Flash Memory 1.00> s/n 
E954F90DBA26CC60EDC50A0F detached

Feb 12 17:44:57 urquan kernel: (da7:umass-sim0:0:0:0): Periph destroyed

# usbconfig -d 5.2 add_quirk UQ_MSC_NO_PREVENT_ALLOW
# usbconfig -d 5.2 reset

Feb 12 17:47:51 urquan kernel: umass0: at uhub5, port 4, addr 2 
(disconnected)
Feb 12 17:47:51 urquan kernel: umass0: class 0/0, rev 2.00/1.00, addr 2> on usbus5

Feb 12 17:47:51 urquan kernel: umass0:  SCSI over Bulk-Only; quirks = 0xc100
Feb 12 17:47:51 urquan kernel: umass0:1:0:-1: Attached to scbus1
Feb 12 17:47:52 urquan kernel: da7 at umass-sim0 bus 0 scbus1 target 0 lun 0
Feb 12 17:47:52 urquan kernel: da7: < USB Flash Memory 1.00> Removable 
Direct Access SCSI-0 device

Feb 12 17:47:52 urquan kernel: da7: Serial Number E954F90DBA26CC60EDC50A0F
Feb 12 17:47:52 urquan kernel: da7: 40.000MB/s transfers
Feb 12 17:47:52 urquan kernel: da7: 7397MB (15149056 512 byte sectors: 
255H 63S/T 942C)

Feb 12 17:47:52 urquan kernel: da7: quirks=0x2

--
Sphinx of black quartz, judge my vow.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"