December 31, 201312 yr Hi, I ve got an APC smart 1000 ups connected on serial port installed from UNMENU an running 5.03 stable. Whatever settings I have got the UPSCABLE is set to usb (I checked it through apcupsd.conf) I ve made a custom unmenu install of apcupsd in which I altered the above line of the custom conf file i created (in package folder) to: PACKAGE_INSTALLATION sed -i -e "s/^UPSCABLE smart/UPSCABLE smart/" /etc/apcupsd/apcupsd.conf Still upscable not set to smart as its required to run from serial port. I have to mention that I m using an original APC network to serial cable that came with my ups and serial port is configured as ttyS0. ps: I am running the latest apcupsd 3.14.10
December 31, 201312 yr I believe the command you're looking for is: sed -i -e "s/UPSCABLE usb/UPSCABLE smart/" /etc/apcupsd/apcupsd.conf Kevin
December 31, 201312 yr Author thanks!!! that really did it! UPSCABLE was set to smart! but unfortunately apcupsd still doesnt work... I even set the UPSCABLE as the apc cable number i ve got but still nothing...
December 31, 201312 yr You may have to set UPSTYPE to "apcsmart" for your setup. Just in case you haven't found it, here's a link to docs: http://www.apcupsd.com/manual/manual.html Kevin
January 3, 201412 yr Author Unfortunately I have already read the manual and already set UPSTYPE to apcsmart. I just came across to this link: http://apcupsd-ups-control-software.10985.n7.nabble.com/The-new-APC-SMT-series-UPS-td1178.html where people state about APCs new (not that new) standard called microlink and the issue with serial communication with apcupsd. Of course there is an option for buying a legacy communication card for about 50usd. the ups is an APC SMT1000I: http://www.apc.com/resource/include/techspec_index.cfm?base_sku=SMT1000I
January 4, 201412 yr Author I am trying to setup a prolific 2303 usb to serial cable just to check if this will work. Server kernel: usbcore: registered new interface driver usbserial Server kernel: usbcore: registered new interface driver pl2303 Server kernel: usbserial: USB Serial support registered for pl2303 Server kernel: pl2303 4-2:1.0: pl2303 converter detected Server kernel: usb 4-2: pl2303 converter now attached to ttyUSB0 Everything seems to be ok. I changed the custom apcupsd unmenu conf file to: PACKAGE_INSTALLATION [ "${vDEVICE-NO}" = "YES" ] && sed -i -e "s/^UPSTYPE usb/UPSTYPE apcsmart/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^DEVICE \/dev\/ttyUSB0/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/UPSCABLE usb/UPSCABLE smart/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^MINUTES 3/MINUTES ${vMINUTES-5}/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^BATTERYLEVEL 5/BATTERYLEVEL ${vBATTERYLEVEL-5}/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^TIMEOUT 0/TIMEOUT ${vTIMEOUT-0}/" /etc/apcupsd/apcupsd.conf but ttyUSB0 doesnt get set. Instead it still tries to communicate with ttyS0...
January 4, 201412 yr Author the main problem was with 3.14.10 version of apcupsd. 3.14.3 runs better and every value can be changed from UNMENU with no issues and no need of custom configuration. Unfortunately even with usb to serial still it doesnt work. If anyone connected successfully a ups of that series please let me know...
January 4, 201412 yr I am trying to setup a prolific 2303 usb to serial cable just to check if this will work. Server kernel: usbcore: registered new interface driver usbserial Server kernel: usbcore: registered new interface driver pl2303 Server kernel: usbserial: USB Serial support registered for pl2303 Server kernel: pl2303 4-2:1.0: pl2303 converter detected Server kernel: usb 4-2: pl2303 converter now attached to ttyUSB0 Everything seems to be ok. I changed the custom apcupsd unmenu conf file to: PACKAGE_INSTALLATION [ "${vDEVICE-NO}" = "YES" ] && sed -i -e "s/^UPSTYPE usb/UPSTYPE apcsmart/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^DEVICE \/dev\/ttyUSB0/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/UPSCABLE usb/UPSCABLE smart/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^MINUTES 3/MINUTES ${vMINUTES-5}/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^BATTERYLEVEL 5/BATTERYLEVEL ${vBATTERYLEVEL-5}/" /etc/apcupsd/apcupsd.conf PACKAGE_INSTALLATION sed -i -e "s/^TIMEOUT 0/TIMEOUT ${vTIMEOUT-0}/" /etc/apcupsd/apcupsd.conf but ttyUSB0 doesnt get set. Instead it still tries to communicate with ttyS0... probably because sed -i -e "s/^DEVICE \/dev\/ttyUSB0/" /etc/apcupsd/apcupsd.conf is not a valid syntax "sed" command. Try it on the command line... You'll see the errors.
January 5, 201412 yr Author Thanks Joe L! I fixed that as I saw the error under unmenu but it seems that 14.3 version of apcupsd is much more trouble free so I used the old one instead of 14.10. I have got some good news with the microlink protocol. Here is a response from APC staff: 2.) We realize that a SmartSlot card is not an ideal solution and we intend that it will only be a transition to products that would natively offer a publicly available protocol. We engaged with the apcupsd development community to try to find a better long term solution. While it took longer than anyone had hoped we have recently released a firmware update for certain Smart-UPS SMT models (UPS 09.1) which supports an open protocol that can be used by developers (including apcupsd) to communicate with the UPS. The documentation for this protocol should be available on our web site within a few weeks. Our intent is that all future Micro-Link based Smart-UPS will also include the open protocol described above. http://forums.apc.com/thread/5374?start=30&tstart=0 I ll check for a firmware update...
Archived
This topic is now archived and is closed to further replies.