Re: [Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
On Wed, Sep 5, 2012 at 5:58 PM, Arnaud Quette aquette@gmail.com wrote: The only thing plugged into this UPS is the power supply for the RaspberryPi - nut reports the load as 0.0% :) I'm going to also plug in the 5-port switch and ADSL modem/router, I expect to be online for some time when there is a local power failure :D RPi is maybe too green (Ie not consuming enough power) to be visible. I'm interesting in the result with more load... RPi normally is consuming about 2W (if it doesn't have to power anything via USB), so way under 0.5% of an average UPS. Couple of weeks ago when I was running my tests nut@RPi was reliably reporting the about 33% of load I have on my UPS (for the time being I have also a cheap kill-a-watt meter on the UPS input): ups.firmware: Cont:00.50 Inve:01.50 ups.load: 33.3 ups.mfr: Eaton ups.model: POWERWARE UPS700i ups.power.nominal: 700 Cheers, Massimo ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
On Fri, Aug 10, 2012 at 12:22 PM, Arnaud Quette aquette@gmail.com wrote: Hi Massimo and Greg, Hello Arnaud, instead of receiving the whole 171 bytes transfer in one single gulp. thus, the data of the 2nd sequence is missing (after 3b ab 01): 28 82 c0 01 00 02 00 00 80 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 80 40 00 00 00 00 00 00 03 00 08 16 00 00 00 0b 00 6b Exactly. would you be able to compile code for testing patches? you will then just need to replace the driver on the RPi. Yes I can do that. Actually I was already able to compile on the RPi the just-released 2.6.5 (although I did notice there was no change in bcmxcp_usb code). Obviously no improvement regarding this specific issue. Cheers, Massimo ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
Hello Arnaud, thanks for the effort for the patch! I took most of this afternoon looking at this issue, and this should be fixed with the attached patch It applies fine on 2.6.5, using the following command: # cd nut-2.6.5 # patch -p0 /path/to/xcp-rcv-loop.diff # make I've tested it on a 5110 only currently, so it's not applied to the development tree. for testing purpose, I've also used a byte frame size, to be in your condition (Ie, set the 4th param of usb_interrupt_read() to '8'). please tell me back how it behave on RPi. note that I'll probably have to do some code adjustment, and obviously regression testing on other units, before committing the patch to the main source tree. I applied your patch to the 2.6.5 code and run only the bcmxcp_usb driver and... I'm not sure that everything is ok. If I run the driver as ./bcmxcp_usb -u root -a ups it launches, but after a second I get a Communications with UPS lost: get_answer: not the right sequence received 0!!!. However the driver seems still to keep running. I also tried to start the driver under debug (-). In attachment you can see the output (until I typed ctrl-c), that also include some some of the 'communication lost' messages. Cheers, Massimo bcmxcp_patched.txt.gz Description: GNU Zip compressed data ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
[Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
I'm going to go with the last option I have, and will replace this UPS with one that works with this combination of architecture and OS! :) yup, still an option ;) Hello, I have the same issue with Raspberry Pi (running 'raspbian') and Powerware 5110, and I'd like to help to solve it, as I don't have the priviledge to replace UPS :-). I'm moving my nut server from an old NSLU2 with debian squeeze (where it was working properly) to RPi as I need a miniserver with more memory to run also other tasks. So, is there any debug information that I can provide to help ? # uname -a Linux raspi0 3.1.9+ #272 PREEMPT Tue Aug 7 22:51:44 BST 2012 armv6l GNU/Linux # ldd bcmxcp_usb /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x40148000) libusb-0.1.so.4 = /lib/arm-linux-gnueabihf/libusb-0.1.so.4 (0x40151000) libpthread.so.0 = /lib/arm-linux-gnueabihf/libpthread.so.0 (0x40024000) libc.so.6 = /lib/arm-linux-gnueabihf/libc.so.6 (0x4016) /lib/arm-linux-gnueabihf/ld-linux.so.3 = /lib/ld-linux-armhf.so.3 (0x4005) # dpkg --list | grep -E 'nut-server|libc6|raspi-copies-and-fills' ii libc6:armhf 2.13-33 Embedded GNU C Library: Shared libraries ii libc6-dev:armhf 2.13-33 Embedded GNU C Library: Development Libraries and Header Files ii nut-server2.6.4-1 network UPS tools - core system ii raspi-copies-and-fills0.1 Optimised memcpy/memset implementation for ARM11 used in Raspberry Pi Cheers, Massimo ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser