APC SMART UPS 1000 + EP45-UD3P is it possible?


screwonbudnik20

Recommended Posts

According to the web-page description for that motherboard, there is an internal header for a serial port.  All you probably need is a cable to attach to it.

Newegg must have it wrong then. It doesn't list any serial port on newegg for his board.

 

screwonbudnik20, once you get it connected, you will probably need run something like this to monitor the ups and take action when there is a problem.

 

Regarding the usb to serial converter. You may need to load a driver for it, and the linux kernel seems to have A LOT of them.

                                  --- USB Serial Converter support                                                                         ? ?
  ? ?                                   -*-   Functions for loading firmware on EZUSB chips                                                      ? ?
  ? ?                                   [*]   USB Generic Serial Driver                                                                          ? ?
  ? ?                                   < >   USB AIRcable Bluetooth Dongle Driver                                                               ? ?
  ? ?                                   <M>   USB ARK Micro 3116 USB Serial Driver                                                               ? ?
  ? ?                                   <M>   USB Belkin and Peracom Single Port Serial Driver                                                   ? ?
  ? ?                                   < >   USB Winchiphead CH341 Single Port Serial Driver                                                    ? ?
  ? ?                                   <M>   USB ConnectTech WhiteHEAT Serial Driver                                                            ? ?
  ? ?                                   <M>   USB Digi International AccelePort USB Serial Driver                                                ? ?
  ? ?                                   < >   USB CP210x family of UART Bridge Controllers                                                       ? ?
  ? ?                                   <M>   USB Cypress M8 USB Serial Driver                                                                   ? ?
  ? ?                                   <M>   USB Empeg empeg-car Mark I/II Driver                                                               ? ?
  ? ?                                   <M>   USB FTDI Single Port Serial Driver                                                                 ? ?
  ? ?                                   <M>   USB Fundamental Software Dongle Driver                                                             ? ?
  ? ?                                   <M>   USB Handspring Visor / Palm m50x / Sony Clie Driver                                                ? ?
  ? ?                                   <M>   USB PocketPC PDA Driver                                                                            ? ?
  ? ?                                   <M>   USB IR Dongle Serial Driver                                                                        ? ?
  ? ?                                   <M>   USB Inside Out Edgeport Serial Driver                                                              ? ?
  ? ?                                   <M>   USB Inside Out Edgeport Serial Driver (TI devices)                                                 ? ?
  ? ?                                   <M>   USB Garmin GPS driver                                                                              ? ?
  ? ?                                   <M>   USB IPWireless (3G UMTS TDD) Driver                                                                ? ?
  ? ?                                   < >   USB Infinity USB Unlimited Phoenix Driver                                                          ? ?
  ? ?                                   <M>   USB Keyspan PDA Single Port Serial Driver                                                          ? ?
  ? ?                                   <M>   USB Keyspan USA-xxx Serial Driver                                                                  ? ?
  ? ?                                   <M>   USB KL5KUSB105 (Palmconnect) Driver                                                                ? ?
  ? ?                                   <M>   USB KOBIL chipcard reader                                                                          ? ?
  ? ?                                   <M>   USB MCT Single Port Serial Driver                                                                  ? ?
  ? ?                                   < >   USB Moschip 7720 Serial Driver                                                                     ? ?
  ? ?                                   < >   USB Moschip 7840/7820 USB Serial Driver                                                            ? ?
  ? ?                                   < >   USB Motorola Phone modem driver                                                                    ? ?
  ? ?                                   <M>   USB Navman GPS device                                                                              ? ?
  ? ?                                   <M>   USB Prolific 2303 Single Port Serial Driver                                                        ? ?
  ? ?                                   <M>   USB Ours Technology Inc. OTi-6858 USB To RS232 Bridge Controller                                   ? ?
  ? ?                                   < >   USB Qualcomm Serial modem                                                                          ? ?
  ? ?                                   < >   USB SPCP8x5 USB To Serial Driver                                                                   ? ?
  ? ?                                   <M>   USB HP4x Calculators support                                                                       ? ?
  ? ?                                   <M>   USB Safe Serial (Encapsulated) Driver                                                              ? ?
  ? ?                                   [ ]     USB Secure Encapsulated Driver - Padded                                                          ? ?
  ? ?                                   < >   USB Siemens MPI driver                                                                             ? ?
  ? ?                                   <M>   USB Sierra Wireless Driver                                                                         ? ?
  ? ?                                   < >   USB Symbol Barcode driver (serial mode)                                                            ? ?
  ? ?                                   <M>   USB TI 3410/5052 Serial Driver                                                                     ? ?
  ? ?                                   <M>   USB REINER SCT cyberJack pinpad/e-com chipcard reader                                              ? ?
  ? ?                                   <M>   USB Xircom / Entregra Single Port Serial Driver                                                    ? ?
  ? ?                                   <M>   USB driver for GSM and CDMA modems                                                                 ? ?
  ? ?                                   <M>   USB ZyXEL omni.net LCD Plus Driver                                                                 ? ?
  ? ?                                   < >   USB Opticon Barcode driver (serial mode)                                  

Link to comment

According to the web-page description for that motherboard, there is an internal header for a serial port.  All you probably need is a cable to attach to it.

Newegg must have it wrong then. It doesn't list any serial port on newegg for his board.

I actually took the time to look in the manual for his motherboard.  It says it has a serial port and a parallel port on headers on the MB:

 

Internal Connectors  

1 x 24-pin ATX main power connector

1 x 8-pin ATX 12V power connector

1 x floppy disk drive connector

1 x IDE connector

8 x SATA 3Gb/s connectors

1 x CPU fan header

2 x system fan headers

1 x power fan header

1 x front panel header

1 x front panel audio header

1 x CD In connector

1 x S/PDIF In header

1 x S/PDIF Out header

2 x USB 2.0/1.1 headers

1 x IEEE 1394a header

1 x parallel port header

1 x serial port header

1 x power LED header

1 x chassis intrusion header

serial-port.JPG.2f3720a74dd995fbcf9ddaaf51e6aca8.JPG

Link to comment

All you probably need to do is to delete or comment out this following line in the /boot/packages/apcupsd-unmenu-package.conf file used by unMENU

 

PACKAGE_INSTALLATION sed -i -e "s/^DEVICE \/dev\/ttyS0/#DEVICE \/dev\/ttyS0/" /etc/apcupsd/apcupsd.conf

 

It adds a "#" to the front of the line showing the "DEVICE" the UPS is connected to.  

For a USB connection the device can't be specified as the serial port.  But you want it to be the serial port for your UPS.  (The original edit in the above PACKAGE_INSTALLATION line puts a "#" character at the front of the line, commenting it out, ans lets the UPS use the USB connection)

 

You do want to specify the port, and I see from your syslog that it is /dev/ttyS0 exactly as originally specified.

 

Just either delete the line, or change the identifier from "PACKAGE_INSTALLATION" on the one line that specifies the DEVICE to anything else, "NOT_NEEDED" for example so it is not recognized as part of the installation instructions, and remove the apcupsd*.manual_install file and re-install it.

 

Then, you'll probably need to reboot to get apcupsd to re-read the new configuration file.

Link to comment

I deleted that line. It will be a few hours before I can reboot, I upgraded my parity drive. I bet all will go well.

You will need to delete the apcupsd-3.14.3-i486-1kjz.tgz.auto_install and apcupsd-3.14.3-i486-1kjz.tgz.manual_install files affiliated with the apcupsd package and re-create them by pressing the buttons on the unMENU page.  Those files will both be in the /boot/packages directory.  Or, you can delete the specific line that edited the DEVICE line from within each of them.
Link to comment

I may have to reinstall unmenu, as I don't have the apc button on the package page anymore.

You don't need to re-install it, just put a apcupsd-unmenu-package.conf file in the /boot/packages directory once again.  (and edit it once more)  and then refresh the package manager web-page. 

 

You probably got a tiny bit aggressive when you deleted the .manual_install and .auto_install files.

 

Link to comment

In addition to the fatal errors, do the ones above and below have to do with the apc-ups

 

 

Feb 16 18:33:16 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

Feb 16 18:35:30 Tower last message repeated 2 times

Feb 16 18:37:43 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

Feb 16 18:46:17 Tower last message repeated 5 times

Feb 16 18:46:21 Tower apcupsd[7736]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see .

Feb 16 18:46:21 Tower apcupsd[7736]: apcupsd error shutdown completed

Feb 16 18:46:24 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

 

 

Link to comment

In addition to the fatal errors, do the ones above and below have to do with the apc-ups

 

 

Feb 16 18:33:16 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

Feb 16 18:35:30 Tower last message repeated 2 times

Feb 16 18:37:43 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

Feb 16 18:46:17 Tower last message repeated 5 times

Feb 16 18:46:21 Tower apcupsd[7736]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see .

Feb 16 18:46:21 Tower apcupsd[7736]: apcupsd error shutdown completed

Feb 16 18:46:24 Tower unmenu[1531]: ls: cannot access /boot/custom/etc/rc.d/*: No such file or directory

 

 

no.
Link to comment

Earlier it seemed you did not understand why I was requesting you to replace/remove files.  I figured you'd ask for help if you got stuck.

 

You will probably like this version of the package manager plugin, along with an updated apcupsd-unmenu-package.conf file.  It lets you set the configurable parameters without having to edit the file by hand.

 

I've been working on it, but have not yet published it.  Would you like to try it?

You would just need to put into place the new package-manager plugin file and the new apcupsd .conf file.  It should be able to do the rest...  I need a person to test it and provide feedback...  You willing to try?

 

Joe L.

5n6pzt.jpg

Link to comment

OK,

make an "old" directory under the unmenu directory by typing

mkdir /boot/unmenu/old

 

move the /boot/unmenu/990-unmenu-wget.awk file (the old package manager plugin) to the "old" directory by typing:

mv /boot/unmenu/990-unmenu-wget.awk /boot/unmenu/old/

 

You might want to save a copy of your original apcupsd-unmenu-package.conf file somewhere...

download the attached zip file.   Newer version attached later in this thread.

un-zip it in the /boot/unmenu folder.  It will replace the 990-unmenu-wget.awk file.  It will also contain a new apcupsd-unmenu-package.conf file.  You can put it in the /boot/packages folder or leave it in the /boot/unmenu folder

(your choice, as unMENU will move it to the /boot/packages folder from the unmenu folder for you)

 

Click off of the package manager in unmenu, then back onto it and you should see the new form with the configuration variables.    Edit the variables as desired, save the changes, and press the install button.

 

The edit fields have no sanity checks, so don't put alpha characters where numbers are expected... it won't work too well if you do.

 

You should only need change the NO in the first field to a YES.  (entered in ALL CAPS as YES)

 

If it works as desired, you should not have to edit the package.conf file by hand at all.

 

Joe L.

Link to comment

Basically, it appears that it is trying to open the serial port device /dev/ttys0 and is unable to open it.

 

It still is referring to it as a USB device though... perhaps we need to do more to change the "type" 

 

I'll do a bit more reading of the apcupsd docs.

 

I assume the new package-manager works?  Any feedback?

 

Joe L.

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.