screwonbudnik20 Posted February 12, 2010 Share Posted February 12, 2010 The ups has serial connector the mother board does not. I have a adapter from serial to usb and a serial cable. The adapter came with a driver disk. I am lost from here any help is appreciated. Link to comment
screwonbudnik20 Posted February 12, 2010 Author Share Posted February 12, 2010 I think I may need to order the adapter from APC that goes from serial to usb. It's like 35 bucks. There has to be a cheaper alternative. Link to comment
Joe L. Posted February 12, 2010 Share Posted February 12, 2010 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. Link to comment
xamindar Posted February 13, 2010 Share Posted February 13, 2010 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
Joe L. Posted February 13, 2010 Share Posted February 13, 2010 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 Link to comment
screwonbudnik20 Posted February 13, 2010 Author Share Posted February 13, 2010 I do have an internal port. I will have to find an adapter for it. It is the small rectangle 9 pin instead of a db9. If I could find a good pinout I could modify a serial cable to work I think. Link to comment
Joe L. Posted February 13, 2010 Share Posted February 13, 2010 I do have an internal port. I will have to find an adapter for it. It is the small rectangle 9 pin instead of a db9. If I could find a good pinout I could modify a serial cable to work I think. Look at the image I attached to the prior post. It has the pinout. Link to comment
screwonbudnik20 Posted February 13, 2010 Author Share Posted February 13, 2010 Thnaks Joe. I went ahead and ordered the motherboard adapter on the bay for 7 bucks shipped. I have the the cable from apc, so I should be good to go once the motherboard adapter arrives. Link to comment
xamindar Posted February 13, 2010 Share Posted February 13, 2010 Aww, I remember old 486 and pentium computers I used to have had those serial cables. Too bad you had to pay $7 for it but at least you found one. Link to comment
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 I've got the motherboard adapter installed, and the serial port turned on in the bios, the serial cable from apc installed....still no go. I think it has something to do with the config file for the apc package but I have no idea how to check it...please help. syslog-2010-02-16.txt Link to comment
Joe L. Posted February 16, 2010 Share Posted February 16, 2010 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
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 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. Link to comment
Joe L. Posted February 16, 2010 Share Posted February 16, 2010 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
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 Ok...do I need to do that now or after I reboot? Link to comment
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 I may have to reinstall unmenu, as I don't have the apc button on the package page anymore. Link to comment
Joe L. Posted February 16, 2010 Share Posted February 16, 2010 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
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 I deleted the specific line in manual install file. I dont have an auto install file. I need some help understanding why I need to re-create the files I just modified. Won't that put them back to their original config? Link to comment
screwonbudnik20 Posted February 16, 2010 Author Share Posted February 16, 2010 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
Joe L. Posted February 17, 2010 Share Posted February 17, 2010 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
screwonbudnik20 Posted February 17, 2010 Author Share Posted February 17, 2010 Great now I'm really lost. lol I've got to much to learn. Link to comment
Joe L. Posted February 17, 2010 Share Posted February 17, 2010 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. Link to comment
screwonbudnik20 Posted February 17, 2010 Author Share Posted February 17, 2010 Sure why not. If I can do it anyone can. Let me know what I can do to help. Link to comment
Joe L. Posted February 17, 2010 Share Posted February 17, 2010 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
screwonbudnik20 Posted February 17, 2010 Author Share Posted February 17, 2010 Here is what we have now. syslog-2010-02-17.txt Link to comment
Joe L. Posted February 17, 2010 Share Posted February 17, 2010 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.