Douglas A. Augusto
2014-Mar-20 14:01 UTC
[Nut-upsuser] Unable to set up a "serial-over-USB" UPS (APC BZ2200BI-BR)
Dear NUT users/developers, I'm having trouble while trying to configure the UPS APC BZ2200BI-BR[1] in NUT, which despite having a USB cable it apparently communicates using the serial protocol. The relevant output of 'lsusb' is: Bus 002 Device 004: ID 051d:c812 American Power Conversion The device is registered as /dev/ttyACM0 and uses the kernel module 'cdc_acm' (USB Abstract Control Model driver). I've tried most of the listed APC compatible drivers [2] and they all failed. I'm using NUT version 2.7.1. For instance, using 'usbhid-ups': # /lib/nut/usbhid-ups -a apc -u root -x vendorid=051d -x productid=c812 -D Network UPS Tools - Generic HID driver 0.38 (2.7.1) USB communication driver 0.32 0.000000 debug level is '1' 0.000320 upsdrv_initups... 2.011341 No matching HID UPS found And 'apcsmart': # /lib/nut/apcsmart -a apc -u root -D Network UPS Tools - APC Smart protocol driver 3.1 (2.7.1) APC command table version 3.1 0.000000 debug level is '1' 12.432541 unable to detect an APC Smart protocol UPS on port /dev/ttyACM0 check the cabling, port name or model name and try again Moreover, as suggested in [3], I tried without success to force the 'usbserial' module to load the device as a USB device and hopefully register it as /dev/ttyUSBx: # modprobe usbserial vendor=0x051d product=0xc812 I couldn't be able to set up the UPS under apcupsd as well. Any ideas? 1. http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=BZ2200BI-BR 2. http://www.networkupstools.org/stable-hcl.html 3. http://lists.alioth.debian.org/pipermail/nut-upsuser/2006-November/001780.html Thank you, -- Douglas A. Augusto
Charles Lepple
2014-Jun-04 12:09 UTC
[Nut-upsuser] Unable to set up a "serial-over-USB" UPS (APC BZ2200BI-BR)
On Mar 20, 2014, at 10:01 AM, Douglas A. Augusto wrote:> Dear NUT users/developers, > > I'm having trouble while trying to configure the UPS APC BZ2200BI-BR[1] in NUT, > which despite having a USB cable it apparently communicates using the serial > protocol. > > The relevant output of 'lsusb' is: > > Bus 002 Device 004: ID 051d:c812 American Power ConversionDouglas, It sounds like you have an UPS which was originally manufactured by Microsol. http://forums.freenas.org/index.php?threads/nobreak-bz1200-br-back-ups-rs-1200va-600w-bivolt-115-nt.20247/ http://article.gmane.org/gmane.comp.monitoring.nut.devel/6685 Bruno, Does your UPS show up as a USB ACM device in FreeBSD? Do you think that you and Douglas have the same basic UPS with different battery capacities? http://article.gmane.org/gmane.comp.monitoring.nut.user/8443 -- Charles Lepple clepple at gmail
Bruno Salvador
2014-Jun-04 12:44 UTC
[Nut-upsuser] Unable to set up a "serial-over-USB" UPS (APC BZ2200BI-BR)
Hello Charles and Douglas, I really believe that BZ2200-BR model is the same as mine BZ1200-BR, with different capacity. If you see the BZ2200-BR specs you will notice the manufacturer "APC-Microsol". Those no-breaks have a USB port in it, but in fact it is a serial<->usb cable, usually uses the port "/dev/cuaU0". In mine, the serial<->usb chip is from FTDI, and its recognized by FreeNAS with any additional drivers. And for sure, you can never use the genuine APC driver with those Microsol nobreaks. What Douglas can do is to patch the solis executable in /usr/local/libexec/nut/solis inside freenas, with the patches that I have posted in the forum: This will work for FreeNAS last version 9.2.1.5. http://forums.freenas.org/index.php?threads/nobreak-bz1200-br-back-ups-rs-1200va-600w-bivolt-115-nt.20247/ *Instructions: * 1) Open the "*/usr/local/libexec/nut/solis*" executable in any hex editor 2) Search for the bytes 3D *A0* 00 00 00 75 8D 80 3D 77 11 21 00 FE 75 84 3) Change the "*A0*" to "*B0*" 4) Search for the bytes: *76* 29 BF A6 9C 40 00 E8 C7 F9 FF FF E9 15 FF FF 5) Change the "*76" *for* "EB"* 6) Save the file 7) Mount as write the Freenas filesystem using *mount -uw /* 8) Copy the cracked solis to* /usr/local/libexec/nut* 9) Mount the filesystem as readonly *mount -ur /* 10) Reboot. As soon as I discover what are the configure settings that FreeNAS uses to complile NUT, I'll create a original driver and send to NUT project to be included on next versions. Let me know if you need any more info. BR Bruno 2014-06-04 9:09 GMT-03:00 Charles Lepple <clepple at gmail.com>:> On Mar 20, 2014, at 10:01 AM, Douglas A. Augusto wrote: > > > Dear NUT users/developers, > > > > I'm having trouble while trying to configure the UPS APC BZ2200BI-BR[1] > in NUT, > > which despite having a USB cable it apparently communicates using the > serial > > protocol. > > > > The relevant output of 'lsusb' is: > > > > Bus 002 Device 004: ID 051d:c812 American Power Conversion > > > Douglas, > > It sounds like you have an UPS which was originally manufactured by > Microsol. > > > http://forums.freenas.org/index.php?threads/nobreak-bz1200-br-back-ups-rs-1200va-600w-bivolt-115-nt.20247/ > > http://article.gmane.org/gmane.comp.monitoring.nut.devel/6685 > > Bruno, > > Does your UPS show up as a USB ACM device in FreeBSD? Do you think that > you and Douglas have the same basic UPS with different battery capacities? > > http://article.gmane.org/gmane.comp.monitoring.nut.user/8443 > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140604/1df16ac1/attachment.html>