mystified Posted May 4, 2007 Author Report Share Posted May 4, 2007 unplugged and plugged it back in and now all I get is no response from ups. I'm not making any progress! Quote Link to comment Share on other sites More sharing options...
daniewicz Posted May 5, 2007 Report Share Posted May 5, 2007 Well Mysti I feel like I am the person responsible for getting you to try NUT. So I will tell you all I know about the subject. OK, so maybe that is not so impressive but here goes... Maybe something here will be of help. In addition to the obvious differences between your situation (Gentoo) and my situation (Mandriva), my UPS communicates via a serial cable. If I am not mistaken, your UPS uses USB. On my Mandriva 2005 box I installed The Network UPS Tools (NUT) version 2.0.1 nut-2.0.1-2mdk nut-server-2.0.1-2mdk In /etc/ups the following files were manually edited: /etc/ups/ups.conf /etc/ups/upsd.users /etc/ups/upsmon.conf in ups.conf the following was added: [myups] driver = apcsmart port = /dev/ttyS0 cable = 940-0024C in upsd.users the following was added: # Supervision user [admin] password = mypass allowfrom = localhost actions = SET instcmds = ALL # Protection user [monuser] password = mypass allowfrom = localhost upsmon master in upsmon.conf the following was added: MONITOR myups@localhost 1 monuser mypass master documentation can be found in: /usr/share/doc the status of the ups can be checked with: upsc myups@localhost Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 Thanks, well it's finding the drivers now and everything wants to work except I must be using the wrong portm it the only other thing that I can figure because it can't communicate with it. I'm using the same port as you are, not usb, because I googled and that's what port it told me to use. So I guess my next step is to try other ports. All 50+ something of them! :o Unless somebody has a better idea of how to figure out what port it's using? I know tty0 - tty5 are being used by other processes because I saw it when I ran ps aux. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 5, 2007 Report Share Posted May 5, 2007 In your ups.conf try port = auto Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 I tried that once but I'll try it again. The only other thing I noticed is that he has a cable type and I don't. But I have no idea what kind of cable this is except a serial cable. Any idea what number that would be? Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 5, 2007 Report Share Posted May 5, 2007 No I don't, leave it blank... remove that line and try it. Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 auto only works for usb. And unfortunately I can't use usb because I have no drivers. I contacted intel and the only ones they have for linux are suse and redhat. Won't work for me. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 5, 2007 Report Share Posted May 5, 2007 I'm sorry, I thought the one you purchased was usb. :blink: So your using a serial connection? Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 Yes I am. I'm trying to google and find ports suggested. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 5, 2007 Report Share Posted May 5, 2007 If your not using any serial ports for anything else, google says it's probably /dev/ttyS0 or /dev/ttyS1 You've probably seen this, but just in case: HOWTO_NUT Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 Thanks, when I use /dev/ttyS0 it can't find the ups. when I try /dev/ttyS1 I get this: tcgetattr(/dev/ttyS1): Input/output error Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 I know what the problem is but not how to fix it. If I do cat /dev/ttyS0 I get no response. It's not being detected. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 5, 2007 Report Share Posted May 5, 2007 Does Gentoo have setserial and statserial utilities? You could use these to help resolve the problem. Quote Link to comment Share on other sites More sharing options...
mystified Posted May 5, 2007 Author Report Share Posted May 5, 2007 They have a setserial but not a statserial. Quote Link to comment Share on other sites More sharing options...
daniewicz Posted May 6, 2007 Report Share Posted May 6, 2007 I used the following to identify my serial controller: cat /proc/pci Look for "serial controller" and find the IRQ and IO ports. Then use the setserial command to set up the serial port. For example, to setup com 2: setserial /dev/ttyS1 irq 10 port 0xa400 Make sure your serial ports are activated in your BIOS too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.