Re: Ippon Back Power Pro LCD connection flickers

2017-05-23 Thread Lev Serebryakov
On 23.05.2017 21:55, Hans Petter Selasky wrote:

> You might try to plug the device to Linux and install the same software
> package and see what happens.
 As I said, if disconnect/connect every several seconds without any
software, it is independent to software or presence of uhid module

> Linux usually have more quirks than we do in FreeBSD. Try searching the
> internet for the idVendor and idProduct values. It was first thing I did, no 
> luck.

 BTW, FreeBSD have same quirks for one product of this idVendor:

 USB_QUIRK(LIEBERT, POWERSURE_PXT, 0x, 0x, UQ_HID_IGNORE),

 But this product have "generic" id 0x. Maybe, it should be added to
quirks table too? Or "import" this table:

https://fossies.org/linux/nut/scripts/hotplug/libhid.usermap

 I'll try Linux in next several days.

-- 
// Lev Serebryakov



signature.asc
Description: OpenPGP digital signature


Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Lev Serebryakov
On 22.05.2017 17:58, abi wrote:

> I use COM now  No COM/RS232 on this model, it is very new one.

  Previous Ippon I bought (Smart Power Pro 1000) works perfectly (but
with megatec_usb, not hid, driver), but it was bought many years ago.

 But if it worked under Linux, it should be possible to fix on FreeBSD!

-- 
// Lev Serebryakov



signature.asc
Description: OpenPGP digital signature


Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread abi

I have the same issue with POWERCOM MACAN-1000

I use COM now

http://freebsd.1045724.x6.nabble.com/UPS-disconnects-every-3-sec-td6142681.html



On 22.05.2017 14:30, Lev Serebryakov wrote:

  I've bought new UPS for my router, and I'm not sure, is it UPS problem
or FreeBSD preoblem, but it connects and disconnects every several
seconds, like this:

May 22 14:26:28 gateway kernel: ugen1.2:  at usbus1
May 22 14:26:43 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:26:48 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:03 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:08 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:23 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:28 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:43 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:48 gateway kernel: ugen1.2:  at usbus1

  It works (with sysutils/nut) when it is connected, but flickers!

  Is here any way to be sure, that this is UPS problem and not FreeBSD one?

  I'm running

FreeBSD gateway.home.serebryakov.spb.ru 12.0-CURRENT FreeBSD
12.0-CURRENT #0 r318590M: Sun May 21 15:26:16 MSK 2017

  But 11.0-CURRENT (year old, before release) showed same behavior.



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


Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Lev Serebryakov
On 22.05.2017 15:57, Hans Petter Selasky wrote:

> What is the occurrence rate of this IOERROR? Once per attach/detach.
 Lets try do tun dump together with dmesg...
 ERR=IOERROR and ERR=CANCELLED are correlated with disconnects, one of
these two is always at same time as disconnect.

> Did you try to connect the USB device to a different port and/or USB HUB.
 I've tried different port, but not hub (I don't have any). I've tried
other cable too.

> It might also be that the user-space driver tries to reset the device
> when it sees this error. To figure that out you'll need to enable
> debugging in the UPS software package.
 If UPS software is not running, flickering is the same. It doesn't
depend on running of UPS software (sysutils/nut, nothing fancy or
closed-sourced).

-- 
// Lev Serebryakov



signature.asc
Description: OpenPGP digital signature


Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Hans Petter Selasky

Hi,

On 05/22/17 14:23, Lev Serebryakov wrote:

15:21:08.960407 usbus1.2
DONE-INTR-EP=0081,SPD=LOW,NFR=1,SLEN=0,IVAL=100,ERR=IOERROR


What is the occurrence rate of this IOERROR? Once per attach/detach.

Did you try to connect the USB device to a different port and/or USB HUB.

It might also be that the user-space driver tries to reset the device 
when it sees this error. To figure that out you'll need to enable 
debugging in the UPS software package.


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


Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Hans Petter Selasky

On 05/22/17 13:30, Lev Serebryakov wrote:


  I've bought new UPS for my router, and I'm not sure, is it UPS problem
or FreeBSD preoblem, but it connects and disconnects every several
seconds, like this:

May 22 14:26:28 gateway kernel: ugen1.2:  at usbus1
May 22 14:26:43 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:26:48 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:03 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:08 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:23 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:28 gateway kernel: ugen1.2:  at usbus1
May 22 14:27:43 gateway kernel: ugen1.2:  at usbus1
(disconnected)
May 22 14:27:48 gateway kernel: ugen1.2:  at usbus1

  It works (with sysutils/nut) when it is connected, but flickers!

  Is here any way to be sure, that this is UPS problem and not FreeBSD one?

  I'm running



Hi,

Try dumping the traffic using "usbdump -i usbus1 -f 2 " and look for 
completion errors. Might be a bug in the USB firmware of the UPS.


--HPS

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