Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Richard S. Crawford
On Tue, 2004-02-03 at 11:39, Dave Margolis wrote:
> with my belkin upsd (aka bulldog), i don't remember what i did to
> recognize that anything was working, but i set the settings to shut down
> after 15 minutes.  when i pulled the power plug out, everybody logged in
> got a message via write that they had 15 minutes to log out or whatever.
> then, it did perform a clean shutdown after 15 mintues.  after that i went
> in and configured things a bit more...
> 
> it looks like you're there, you just have to figure out exactly which
> devide got picked up by hid.  my guess is /dev/input/js0 (since it
> mentioned its using a joystick driver).  give that try and see what
> happens.

Tried it... didn't work.  Sob.  The status line at the bottom of the
monitor window says "connection established", but it is displaying
nothing about the UPS device or about my computer.

-- 
Slainte,
Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
Howard Dean for America: http://www.deanforamerica.com
http://www.mossroot.com http://www.stonegoose.com
"It is only with our heart that we can see clearly.  What is essential
is invisible to the eye."  --Antoine de Saint Exupery
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Dave Margolis
with my belkin upsd (aka bulldog), i don't remember what i did to
recognize that anything was working, but i set the settings to shut down
after 15 minutes.  when i pulled the power plug out, everybody logged in
got a message via write that they had 15 minutes to log out or whatever.
then, it did perform a clean shutdown after 15 mintues.  after that i went
in and configured things a bit more...

it looks like you're there, you just have to figure out exactly which
devide got picked up by hid.  my guess is /dev/input/js0 (since it
mentioned its using a joystick driver).  give that try and see what
happens.

dave

On Tue, 3 Feb 2004, Richard Crawford wrote:

> Dave Margolis said:
>
> > somewhere in that belkin software there is a device setting.  the
> > default is /dev/ttyS0.
> >
> > maybe look in dmesg to see if it is registering a usb device?
>
> Here is the line that looks most relevant to me from dmesg:
>
> hiddev0: USB HID v1.00 Joystick [BELKIN UPS] on usb1:2.0
>
> Looks to me like it's showing up as a USB device.
>
> Right now I have the Belkin Bulldog sentry software pointing to
> /dev/ttyUSB0; at that setting it doesn't, at least, return an error
> saying, "Cannot connect to device".  It says it's connected, but it
> doesn't get any information from the UPS... nothing about voltage,
> capacity, nothing.
>
> I tried pointing it to /dev/ttyUSB1 and it wouldn't even connect.  Should
> I try pointing it at /dev/ttyUSB2?
>
>
> > my gut feeling is you should be able to get that to work.  if not
> > though, how about exchanging it for one of their serial models?  i have
> > a belkin ups that i've been really happy with.
>
> It looks like it would be a good product.  Heh.  On the positive side,
> once I got the ncurses issue sorted out, upsd seems to be running just
> fine.  I just wish I could figure out how to talk to it and get some
> information out of it.
>
>
> Sláinte,
> Richard S. Crawford (AIM: Buffalo2K)
>
> http://www.mossroot.com   http://www.stonegoose.com/catseyeview
> Howard Dean for America:  http://www.deanforamerica.com
> "I really didn't realize the librarians were, you know, such a dangerous
> group. They are subversive. You think they're just sitting there at the
> desk, all quiet and everything. They're like plotting the revolution, man.
> I wouldn't mess with them."
> --Michael Moore
>
>
> ___
> vox-tech mailing list
> [EMAIL PROTECTED]
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Richard Crawford
Dave Margolis said:

> somewhere in that belkin software there is a device setting.  the
> default is /dev/ttyS0.
>
> maybe look in dmesg to see if it is registering a usb device?

Here is the line that looks most relevant to me from dmesg:

hiddev0: USB HID v1.00 Joystick [BELKIN UPS] on usb1:2.0

Looks to me like it's showing up as a USB device.

Right now I have the Belkin Bulldog sentry software pointing to
/dev/ttyUSB0; at that setting it doesn't, at least, return an error
saying, "Cannot connect to device".  It says it's connected, but it
doesn't get any information from the UPS... nothing about voltage,
capacity, nothing.

I tried pointing it to /dev/ttyUSB1 and it wouldn't even connect.  Should
I try pointing it at /dev/ttyUSB2?


> my gut feeling is you should be able to get that to work.  if not
> though, how about exchanging it for one of their serial models?  i have
> a belkin ups that i've been really happy with.

It looks like it would be a good product.  Heh.  On the positive side,
once I got the ncurses issue sorted out, upsd seems to be running just
fine.  I just wish I could figure out how to talk to it and get some
information out of it.


Sláinte,
Richard S. Crawford (AIM: Buffalo2K)

http://www.mossroot.com   http://www.stonegoose.com/catseyeview
Howard Dean for America:  http://www.deanforamerica.com
"I really didn't realize the librarians were, you know, such a dangerous
group. They are subversive. You think they're just sitting there at the
desk, all quiet and everything. They're like plotting the revolution, man.
I wouldn't mess with them."
--Michael Moore


___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Dave Margolis
somewhere in that belkin software there is a device setting.  the default
is /dev/ttyS0.

maybe look in dmesg to see if it is registering a usb device?

my gut feeling is you should be able to get that to work.  if not though,
how about exchanging it for one of their serial models?  i have a belkin
ups that i've been really happy with.

dave m.

On Tue, 3 Feb 2004, Richard S. Crawford wrote:

> Unfortunately, the box on mine proudly proclaims that my model is USB
> only.  And there is indeed no serial port on the back.
>
> When Jennifer first found it on Belkin's website, I examined it and saw
> that the copy said it was compatible with Linux.  And, indeed, there is
> a Linux version of the software on the CD that came with the UPS.
> However, when I looked at the product description again on Belkin's
> website, I couldn't find anything saying it was Linux friendly.  I feel
> like I've been had.
>
> Assuming the software wants to talk to a serial port, and the device
> only has a USB port, is there a way to make them talk to each other?
>
>
> On Tue, 2004-02-03 at 00:55, Samuel N. Merritt wrote:
> > On Mon, Feb 02, 2004 at 10:53:47PM -0800, Richard S. Crawford wrote:
> > > Thanks, Pete and Ken.  That helped a lot!
> > >
> > > Of course, there are new issues now.  Like the fact that the device
> > > connects to the computer via a USB connection, but the software seems to
> > > want to talk to a serial port.  I'll get it working somehow.
> >
> > I have a Regulator Pro Gold, and it has a serial port as well as a USB
> > port. I could be mistaken, but I think the serial cable is just a plain
> > old serial cable.
> >
> > I had NUT working with that UPS for a couple years using the serial
> > cable with nearly zero effort. I tried once or twice to hook it up via
> > USB, but I never did get the software to do anything useful.
> --
> Slainte,
> Richard S. Crawford
> AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
> Howard Dean for America: http://www.deanforamerica.com
> http://www.mossroot.com http://www.stonegoose.com
> "It is only with our heart that we can see clearly.  What is essential
> is invisible to the eye."  --Antoine de Saint Exupery
> ___
> vox-tech mailing list
> [EMAIL PROTECTED]
> http://lists.lugod.org/mailman/listinfo/vox-tech
>


___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Jonathan Stickel
Ken Herron wrote:
--On Tuesday, February 03, 2004 06:23:43 AM -0800 "Richard S. Crawford" 
<[EMAIL PROTECTED]> wrote:

Assuming the software wants to talk to a serial port, and the device
only has a USB port, is there a way to make them talk to each other?


If the kernel supports this UPS, then when the UPS is plugged into a USB 
port, the kernel should create some devices for software to interact 
with it. If the UPS requires a serial-port device then I'd expect the 
kernel to create a serial port for it.

What does the kernel do when you plug the UPS into a USB port?

You will need USB Serial Converter support compiled into your kernel 
(probably default for RH8).

#
# USB Serial Converter support
#
CONFIG_USB_SERIAL=m
# CONFIG_USB_SERIAL_DEBUG is not set
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_BELKIN=m
...
When you plug in your "USB-serial" device, serial device(s) will 
"magically appear" in your /dev filesystem.  For my handspring cradle, 
it is /dev/usb/tts/0 and /dev/usb/tts/1.  Then you need to get software 
to talk to one of these.  Try some googling.

Jonathan

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Ken Herron
--On Tuesday, February 03, 2004 06:23:43 AM -0800 "Richard S. Crawford" 
<[EMAIL PROTECTED]> wrote:

Assuming the software wants to talk to a serial port, and the device
only has a USB port, is there a way to make them talk to each other?
If the kernel supports this UPS, then when the UPS is plugged into a USB 
port, the kernel should create some devices for software to interact with 
it. If the UPS requires a serial-port device then I'd expect the kernel 
to create a serial port for it.

What does the kernel do when you plug the UPS into a USB port?

--
Ken Herron
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


USB and serial (was Re: [vox-tech] lbncurses.so.4 issue)

2004-02-03 Thread Richard S. Crawford
Unfortunately, the box on mine proudly proclaims that my model is USB
only.  And there is indeed no serial port on the back.

When Jennifer first found it on Belkin's website, I examined it and saw
that the copy said it was compatible with Linux.  And, indeed, there is
a Linux version of the software on the CD that came with the UPS. 
However, when I looked at the product description again on Belkin's
website, I couldn't find anything saying it was Linux friendly.  I feel
like I've been had.

Assuming the software wants to talk to a serial port, and the device
only has a USB port, is there a way to make them talk to each other?


On Tue, 2004-02-03 at 00:55, Samuel N. Merritt wrote:
> On Mon, Feb 02, 2004 at 10:53:47PM -0800, Richard S. Crawford wrote:
> > Thanks, Pete and Ken.  That helped a lot!
> > 
> > Of course, there are new issues now.  Like the fact that the device
> > connects to the computer via a USB connection, but the software seems to
> > want to talk to a serial port.  I'll get it working somehow.
> 
> I have a Regulator Pro Gold, and it has a serial port as well as a USB
> port. I could be mistaken, but I think the serial cable is just a plain
> old serial cable.
> 
> I had NUT working with that UPS for a couple years using the serial
> cable with nearly zero effort. I tried once or twice to hook it up via
> USB, but I never did get the software to do anything useful. 
-- 
Slainte,
Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
Howard Dean for America: http://www.deanforamerica.com
http://www.mossroot.com http://www.stonegoose.com
"It is only with our heart that we can see clearly.  What is essential
is invisible to the eye."  --Antoine de Saint Exupery
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] lbncurses.so.4 issue

2004-02-03 Thread Samuel N. Merritt
On Mon, Feb 02, 2004 at 10:53:47PM -0800, Richard S. Crawford wrote:
> Thanks, Pete and Ken.  That helped a lot!
> 
> Of course, there are new issues now.  Like the fact that the device
> connects to the computer via a USB connection, but the software seems to
> want to talk to a serial port.  I'll get it working somehow.

I have a Regulator Pro Gold, and it has a serial port as well as a USB
port. I could be mistaken, but I think the serial cable is just a plain
old serial cable.

I had NUT working with that UPS for a couple years using the serial
cable with nearly zero effort. I tried once or twice to hook it up via
USB, but I never did get the software to do anything useful. 

-- 
Samuel Merritt
OpenPGP key: http://meat.andcheese.org/~spam/spam_at_andcheese_dot_org.asc
PGP information can be found at http://www.mindspring.com/~aegreene/pgp/


pgp0.pgp
Description: PGP signature


Re: [vox-tech] lbncurses.so.4 issue

2004-02-02 Thread Richard S. Crawford
Thanks, Pete and Ken.  That helped a lot!

Of course, there are new issues now.  Like the fact that the device
connects to the computer via a USB connection, but the software seems to
want to talk to a serial port.  I'll get it working somehow.

> 
-- 
Slainte,
Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
Howard Dean for America: http://www.deanforamerica.com
http://www.mossroot.com http://www.stonegoose.com
"It is only with our heart that we can see clearly.  What is essential
is invisible to the eye."  --Antoine de Saint Exupery
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] lbncurses.so.4 issue

2004-02-02 Thread Ken Herron
--On Monday, February 02, 2004 10:11:45 PM -0800 "Richard S. Crawford" 
<[EMAIL PROTECTED]> wrote:

My wife just picked up for us a Belkin UPS device: a "Regulator Pro Gold
Series", which looks pretty spiffy.  I hooked it up and attached my RH8
server to it, and now I'm trying to get the ups daemon installed.
Unfortunately, whenever I try to start up the daemon, I get this error:

"Error while loading shared libraries: libncurses.so.4: cannot open
shared object file: No such file or directory"
...which doesn't surprise me, since the software was tested against no
later version of RH than 6.2.
If you go to rpmfind.net and search on "libncurses.so.4", it lists an RPM 
called 	ncurses4-5.0-9.i386.rpm for RH 8.0. This is supposed to be a 
compatibility version of the ncurses package. You should have a copy of 
it on your RH8 installation CDs.



--
Ken Herron
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] lbncurses.so.4 issue

2004-02-02 Thread Peter Jay Salzman
On Mon 02 Feb 04, 10:11 PM, Richard S. Crawford said:
> My wife just picked up for us a Belkin UPS device: a "Regulator Pro Gold
> Series", which looks pretty spiffy.  I hooked it up and attached my RH8
> server to it, and now I'm trying to get the ups daemon installed.
> 
> Unfortunately, whenever I try to start up the daemon, I get this error:
> 
> "Error while loading shared libraries: libncurses.so.4: cannot open
> shared object file: No such file or directory"
> 
> ...which doesn't surprise me, since the software was tested against no
> later version of RH than 6.2.
> 
> My question is, is there a way to get it to talk to RH8?  I tried
> opening the "upsd" script, but it's a binary file and I can't look at
> the source code.  And while Belkin says it's compatible with Linux,
> there is no documentation on their website, and the documentation on the
> CD is lousy.

you need to install ncurses 4 (the current version is 5).  on debian,
it's simple:

   apt-get install libncurses4

and you're done.  debian allows you to have both versions 4 and 5
concurrently, but debian is pretty good about things like that.  for
redhat, you'll have to hunt down the ncurses 4 rpm.  to see what
versions of ncurses you presently have installed, do:

   rpm -qa | grep ncurses

i seem to recall rpmfind.net was a good resource.

you might want to read:

   http://www.dirac.org/linux/libraries.html

to learn a bit about libraries.  i wrote this when i was a real newbie.
i refer to ncurses 4 as being "new".   :)

pete

-- 
Make everything as simple as possible, but no simpler.  -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech