Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-27 Thread Mario Giammarco
I am not able to do the test
When I put protocol=zinto I get:

Fatal error: 'protocol' is not a valid variable name for this driver.

I have also tried subdriver=zinto without luck

2012/2/21 Arnaud Quette aquette@gmail.com:
 2012/2/16 Mario Giammarco mgiamma...@gmail.com:
 Tomorrow I will do the test!

 Marco, Thomas,

 before I switched to something else, I'd like to complete this case.
 have you been able to do some testing on your side?

 cheers,
 Arnaud
 --
 Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com
 Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
 Debian Developer - http://www.debian.org
 Free Software Developer - http://arnaud.quette.free.fr/

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-16 Thread Mario Giammarco
Tomorrow I will do the test!

2012/2/16 Arnaud Quette aquette@gmail.com:
 Halo Thomas und Mario ;-)

 2012/2/14 Thomas Maisl exp-122...@maisl.com:

 attached information was retrieved while UPS was operating _offline_ (doing
 a runtime test)

 thanks a lot for your test results.

 1. lsusb -v -d06dA:0002
 2-6. blazer_usb using subdriver cypress|phoenix|ippon|krauler
     with and w/o protocol zinto

 IMO cypress with zinto produced the best result, ippon and krauler didn't 
 work

 indeed cypress with zinto is the best fit, though your unit doesn't
 answer to anything else than the basic 'Q1'
 phoenix also provides the same support.

  [YQ450]
        driver = blazer_usb
        subdriver = cypress
        protocol = zinto
        vendorid = 06da
        productid = 0002
        port = auto
        desc = Yunto YQ450 via USB

 I've just committed a patch to the trunk (r3447) which links
 06da:0002 to the cypress subdriver, and added the following HCL
 entry:

 Online        ups   2     Yunto YQ450         blazer_usb

 This means that you now (using the latest trunk) just need to specify:
 [YQ450]
      driver = blazer_usb
      protocol = zinto
      port = auto
      desc = Yunto YQ450 via USB

 Moreover, specifying zinto is not that useful, since only Q1 is supported.
 So you can omit it.

 Can you please counter check, and report back upsc/upsrw/upscmd
 output, along with the shutdown test:
 http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#Shutdown_design

 the remaining point is still with the other unit (06da:0601) from Mario...
 @Mario: as  per your previous feedback, your unit reports 'Q1', 'F',
 but not 'I'.
 so could you please do the same tests I asked Thomas, with protocol=zinto?
 this should use 'FW?' and provide vendor info.

 cheers,
 Arnaud

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-03 Thread Mario Giammarco
2012/2/2 Arnaud Quette aquette@gmail.com:
 2012/2/1 Mario Giammarco mgiamma...@gmail.com:
 Here we go!

 This one for 06da:0601:
 ...

 ok, so that one seems almost good.
 can you please send also upsc / upscmd / upsrw output?


upsc:

 upsc mieionline
Error: Driver not connected

upsd:

upsd 2.6.1
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Can't connect to UPS [mieionline] (blazer_usb-mieionline): No such
file or directory




  ...
   0.478318     Ratings read in 1 tries
   0.480405     send: I
   0.622185     read: I

 this command seems not supported by your unit.
 not sure if there is a more suitable subdriver, but you may want to
 test with other available ones (check the manpage or blazer_usb -h for
 a list)

I have tried other subdrivers and it seems to me that they give more
error than ippon.

Is I command so important?

Thanks again,
Mario

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-03 Thread Mario Giammarco
Bus 002 Device 004: ID 06da:0002 Phoenixtec Power Co., Ltd UPS
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.10
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor   0x06da Phoenixtec Power Co., Ltd
  idProduct  0x0002 UPS
  bcdDevice0.02
  iManufacturer   1 ONLINE
  iProduct2 YUNTO
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   34
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  3
bmAttributes 0x80
  (Bus Powered)
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 3 Human Interface Device
  bInterfaceSubClass  0 No Subclass
  bInterfaceProtocol  0 None
  iInterface  4 Sample HID
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.00
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength  31
  Report Descriptor: (length is 31)
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x05 ] 5
Gamepad
Item(Main  ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage, data= [ 0x06 ] 6
Keyboard
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
Pointer
Item(Local ): Usage Maximum, data= [ 0xf0 ] 240
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main  ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Local ): Usage, data= [ 0x07 ] 7
Keypad
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x10 ] 16
Item(Main  ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position
Non_Volatile Bitfield
Item(Main  ): End Collection, data=none
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval  32
Device Status: 0x
  (Bus Powered)


2012/2/2 Arnaud Quette aquette@gmail.com:
 2012/2/1 Mario Giammarco mgiamma...@gmail.com:
 And for 06da:0002:
 ...

 this one has a problem.
 could you please send back the following output (as root):
 $ lsusb -v -d 06da:0002

 it may turn out to be a HID device more than a megatec / Q1.
 as for the other unit, you may also try other subdrivers...

 cheers,
 Arnaud
 --
 Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com
 Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
 Debian Developer - http://www.debian.org
 Free Software Developer - http://arnaud.quette.free.fr/

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-02 Thread Mario Giammarco
2012/1/31 Arnaud Quette aquette@gmail.com:

 so you should also use sudo, Ie:
  $ sudo /path/to/blazer_usb -D -a upsname



Unfortunately I am already root. I have enabled the root account I am
tired to to always use sudo. Even as root the problem persists.

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-02 Thread Mario Giammarco
I have searched and killed all processes that I think can use usb, so
I do not know what is happening

2012/2/1 Mario Giammarco mgiamma...@gmail.com:
 2012/1/31 Arnaud Quette aquette@gmail.com:

 so you should also use sudo, Ie:
  $ sudo /path/to/blazer_usb -D -a upsname



 Unfortunately I am already root. I have enabled the root account I am
 tired to to always use sudo. Even as root the problem persists.

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-01 Thread Mario Giammarco
Here we go!

This one for 06da:0601:

   0.00 send_to_all: SETINFO driver.parameter.port auto
   0.000117 send_to_all: SETINFO driver.parameter.subdriver ippon
   0.000179 send_to_all: SETINFO driver.parameter.vendorid 06da
   0.000230 send_to_all: SETINFO driver.parameter.productid 0601
   0.000315 debug level is '5'
   0.002600 Checking device (1D6B/0003) (009/001)
   0.002832 - VendorID: 1d6b
   0.002879 - ProductID: 0003
   0.002916 - Manufacturer: Linux 3.0.0-16-generic xhci_hcd
   0.002955 - Product: xHCI Host Controller
   0.002992 - Serial Number: :03:00.0
   0.003028 - Bus: 009
   0.003063 Trying to match device
   0.003118 Device does not match - skipping
   0.003165 Checking device (1D6B/0002) (008/001)
   0.003245 - VendorID: 1d6b
   0.003285 - ProductID: 0002
   0.003321 - Manufacturer: Linux 3.0.0-16-generic xhci_hcd
   0.003417 - Product: xHCI Host Controller
   0.003453 - Serial Number: :03:00.0
   0.003489 - Bus: 008
   0.003524 Trying to match device
   0.003562 Device does not match - skipping
   0.003604 Checking device (1D6B/0001) (007/001)
   0.003677 - VendorID: 1d6b
   0.003716 - ProductID: 0001
   0.003751 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.003787 - Product: OHCI Host Controller
   0.003823 - Serial Number: :00:16.0
   0.003859 - Bus: 007
   0.003894 Trying to match device
   0.003932 Device does not match - skipping
   0.003974 Checking device (1D6B/0001) (006/001)
   0.004045 - VendorID: 1d6b
   0.004083 - ProductID: 0001
   0.004118 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.004154 - Product: OHCI Host Controller
   0.004190 - Serial Number: :00:14.5
   0.004226 - Bus: 006
   0.004260 Trying to match device
   0.004299 Device does not match - skipping
   0.004340 Checking device (1D6B/0001) (005/001)
   0.004410 - VendorID: 1d6b
   0.004454 - ProductID: 0001
   0.004489 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.004526 - Product: OHCI Host Controller
   0.004562 - Serial Number: :00:13.0
   0.004834 - Bus: 005
   0.004872 Trying to match device
   0.004911 Device does not match - skipping
   0.004954 Checking device (1D6B/0001) (004/001)
   0.005027 - VendorID: 1d6b
   0.005065 - ProductID: 0001
   0.005101 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.005138 - Product: OHCI Host Controller
   0.005174 - Serial Number: :00:12.0
   0.005211 - Bus: 004
   0.005248 Trying to match device
   0.005288 Device does not match - skipping
   0.005329 Checking device (1D6B/0002) (003/001)
   0.005449 - VendorID: 1d6b
   0.005524 - ProductID: 0002
   0.005560 - Manufacturer: Linux 3.0.0-16-generic ehci_hcd
   0.005597 - Product: EHCI Host Controller
   0.005634 - Serial Number: :00:16.2
   0.005670 - Bus: 003
   0.005705 Trying to match device
   0.005744 Device does not match - skipping
   0.005787 Checking device (058F/6387) (002/006)
   0.008028 - VendorID: 058f
   0.008069 - ProductID: 6387
   0.008080 - Manufacturer: Generic
   0.008092 - Product: Mass Storage
   0.008103 - Serial Number: FFB279FA
   0.010059 - Bus: 002
   0.010090 Trying to match device
   0.010168 Device does not match - skipping
   0.010201 Checking device (046D/C50E) (002/005)
   0.017189 - VendorID: 046d
   0.017231 - ProductID: c50e
   0.017241 - Manufacturer: Logitech
   0.017252 - Product: USB Receiver
   0.017262 - Serial Number: unknown
   0.017272 - Bus: 002
   0.017282 Trying to match device
   0.017304 Device does not match - skipping
   0.017330 Checking device (06DA/0002) (002/004)
   0.020214 - VendorID: 06da
   0.020359 - ProductID: 0002
   0.020370 - Manufacturer: ONLINE
   0.020382 - Product: YUNTO
   0.020392 - Serial Number: unknown
   0.020402 - Bus: 002
   0.020412 Trying to match device
   0.020496 Device does not match - skipping
   0.020528 Checking device (06DA/0601) (002/003)
   0.032763 - VendorID: 06da
   0.032814 - ProductID: 0601
   0.032825 - Manufacturer: ONLINE
   0.032835 - Product: ZINTO
   0.032848 - Serial Number: unknown
   0.032858 - Bus: 002
   0.032868 Trying to match device
   0.032939 Device matches
   0.033027 failed to claim USB device: could not claim interface
0: Device or resource busy
   0.033429 detached kernel driver from USB device...
   0.035076 send_to_all: SETINFO ups.vendorid 06da
   0.035123 send_to_all: SETINFO ups.productid 0601
   0.035153 send_to_all: SETINFO device.type ups
   0.035182 send_to_all: SETINFO driver.version 2.6.1
   0.035198 send_to_all: SETINFO driver.version.internal 0.03
   0.035213 send_to_all: SETINFO driver.name 

Re: [Nut-upsuser] Support for Online Yunto and Zinto

2012-02-01 Thread Mario Giammarco
And for 06da:0002:

   0.00 send_to_all: SETINFO driver.parameter.port auto
   0.000198 send_to_all: SETINFO driver.parameter.subdriver ippon
   0.000248 send_to_all: SETINFO driver.parameter.vendorid 06da
   0.000332 send_to_all: SETINFO driver.parameter.productid 0002
   0.000415 debug level is '5'
   0.002832 Checking device (1D6B/0003) (009/001)
   0.003011 - VendorID: 1d6b
   0.003058 - ProductID: 0003
   0.003096 - Manufacturer: Linux 3.0.0-16-generic xhci_hcd
   0.003134 - Product: xHCI Host Controller
   0.003170 - Serial Number: :03:00.0
   0.003245 - Bus: 009
   0.003322 Trying to match device
   0.003373 Device does not match - skipping
   0.003419 Checking device (1D6B/0002) (008/001)
   0.003495 - VendorID: 1d6b
   0.003536 - ProductID: 0002
   0.003571 - Manufacturer: Linux 3.0.0-16-generic xhci_hcd
   0.003608 - Product: xHCI Host Controller
   0.003681 - Serial Number: :03:00.0
   0.003718 - Bus: 008
   0.003753 Trying to match device
   0.003798 Device does not match - skipping
   0.003847 Checking device (1D6B/0001) (007/001)
   0.003919 - VendorID: 1d6b
   0.003967 - ProductID: 0001
   0.004014 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.004050 - Product: OHCI Host Controller
   0.004085 - Serial Number: :00:16.0
   0.004128 - Bus: 007
   0.004171 Trying to match device
   0.004209 Device does not match - skipping
   0.004348 Checking device (1D6B/0001) (006/001)
   0.004424 - VendorID: 1d6b
   0.004469 - ProductID: 0001
   0.004504 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.004550 - Product: OHCI Host Controller
   0.004593 - Serial Number: :00:14.5
   0.004629 - Bus: 006
   0.004671 Trying to match device
   0.004719 Device does not match - skipping
   0.004761 Checking device (1D6B/0001) (005/001)
   0.004831 - VendorID: 1d6b
   0.004872 - ProductID: 0001
   0.004907 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.004950 - Product: OHCI Host Controller
   0.004996 - Serial Number: :00:13.0
   0.005032 - Bus: 005
   0.005067 Trying to match device
   0.005107 Device does not match - skipping
   0.005149 Checking device (1D6B/0001) (004/001)
   0.005245 - VendorID: 1d6b
   0.005292 - ProductID: 0001
   0.005328 - Manufacturer: Linux 3.0.0-16-generic ohci_hcd
   0.005364 - Product: OHCI Host Controller
   0.005404 - Serial Number: :00:12.0
   0.005446 - Bus: 004
   0.005482 Trying to match device
   0.005520 Device does not match - skipping
   0.005560 Checking device (1D6B/0002) (003/001)
   0.005633 - VendorID: 1d6b
   0.005672 - ProductID: 0002
   0.005709 - Manufacturer: Linux 3.0.0-16-generic ehci_hcd
   0.005755 - Product: EHCI Host Controller
   0.005790 - Serial Number: :00:16.2
   0.005825 - Bus: 003
   0.005870 Trying to match device
   0.005908 Device does not match - skipping
   0.005949 Checking device (058F/6387) (002/006)
   0.008146 - VendorID: 058f
   0.008226 - ProductID: 6387
   0.008266 - Manufacturer: Generic
   0.008310 - Product: Mass Storage
   0.008350 - Serial Number: FFB279FA
   0.008386 - Bus: 002
   0.008421 Trying to match device
   0.008510 Device does not match - skipping
   0.008562 Checking device (046D/C50E) (002/005)
   0.015983 - VendorID: 046d
   0.016030 - ProductID: c50e
   0.016041 - Manufacturer: Logitech
   0.016052 - Product: USB Receiver
   0.016062 - Serial Number: unknown
   0.016072 - Bus: 002
   0.016081 Trying to match device
   0.016103 Device does not match - skipping
   0.016130 Checking device (06DA/0002) (002/004)
   0.019975 - VendorID: 06da
   0.020496 - ProductID: 0002
   0.020540 - Manufacturer: ONLINE
   0.020578 - Product: YUNTO
   0.020622 - Serial Number: unknown
   0.020659 - Bus: 002
   0.020695 Trying to match device
   0.020829 Device matches
   0.020908 failed to claim USB device: could not claim interface
0: Device or resource busy
   0.141642 detached kernel driver from USB device...
   0.143605 send_to_all: SETINFO ups.vendorid 06da
   0.143653 send_to_all: SETINFO ups.productid 0002
   0.143686 send_to_all: SETINFO device.type ups
   0.143718 send_to_all: SETINFO driver.version 2.6.1
   0.143734 send_to_all: SETINFO driver.version.internal 0.03
   0.143748 send_to_all: SETINFO driver.name blazer_usb
   0.143761 Trying megatec protocol...
   0.144436 send: Q1
   1.145382 read: Connection timed out
   1.145429 blazer_status: short reply
   1.145442 Status read 1 failed
   1.146106 send: Q1
   2.147258 read: Connection timed out
   2.147308 blazer_status: short reply
   2.147320 Status read 2 failed
   2.147972 send: Q1