Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / Hardware / October 2004



Tip: Looking for answers? Try searching our database.

Programmer-ish question on USB Device (Energizer UPS)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric Schneck - 04 Sep 2004 00:59 GMT
I recently purchased an Energizer UPS for my Mac.
It comes with PC software (natch) but no Mac drivers.
I found a Linux package (NUT) that compiles on the Mac, but it requires
the device to mount under /dev/usb..., but it is an HID device, and I
cannot figure out how to mount it under Panther.
Does anyone know how to mount an HID device on a filesystem, or this
there some software to do this, or am I totally lost here?

TIA.

Eric
Gregory Weston - 04 Sep 2004 01:29 GMT
> I recently purchased an Energizer UPS for my Mac.
> It comes with PC software (natch) but no Mac drivers.
[quoted text clipped - 3 lines]
> Does anyone know how to mount an HID device on a filesystem, or this
> there some software to do this, or am I totally lost here?

What version of the OS are you using. If it's 10.3, it's possible the OS
already has support.

Signature

Standard output is like your butt. Everyone has one. When using a bathroom,
they all default to going into a toilet. However, a person can redirect his
"standard output" to somewhere else, if he so chooses.  - Jeremy Nixon

Eric Schneck - 05 Sep 2004 02:28 GMT
>>I recently purchased an Energizer UPS for my Mac.
>>It comes with PC software (natch) but no Mac drivers.
[quoted text clipped - 6 lines]
> What version of the OS are you using. If it's 10.3, it's possible the OS
> already has support.

I am running 10.3.5. There appears to be some support built in.
When I run the HID Device Explorer program, the UPS shows up as
"Simulation Spaceship Simulation Device 1" (No, I am not making this up)
It has vendor ID 3487, and some of the usages show information, as
though the UPS were transmitting information.
Is there some way to tell whether the device is mounted, or to tell what
device it is mounted as?

Eric
Gregory Weston - 05 Sep 2004 05:27 GMT
> >>I recently purchased an Energizer UPS for my Mac.
> >>It comes with PC software (natch) but no Mac drivers.
[quoted text clipped - 14 lines]
> Is there some way to tell whether the device is mounted, or to tell what
> device it is mounted as?

Actually, the first thing I'd look at is, IIRC, the Energy Saver pane of
System Preferences. I believe that's where the settings show up when a
recognizable UPS is attached.

G

Signature

Standard output is like your butt. Everyone has one. When using a bathroom,
they all default to going into a toilet. However, a person can redirect his
"standard output" to somewhere else, if he so chooses.  - Jeremy Nixon

Eric Schneck - 05 Sep 2004 14:22 GMT
>>>>I recently purchased an Energizer UPS for my Mac.
>>>>It comes with PC software (natch) but no Mac drivers.
[quoted text clipped - 20 lines]
>
> G

I wish that it were a "recognizable UPS", but it is not (I checked the
Energy Saver prefs and the help file to make sure.)
I have installed the Network UPS Tools (NUT) softwarem but that software
requires a Unix-style device name (/dev/usb/...) and I cannot find or
make such a mount point.

Eric
clvrmnky - 13 Sep 2004 19:29 GMT
[...]
> I wish that it were a "recognizable UPS", but it is not (I checked the
> Energy Saver prefs and the help file to make sure.)
> I have installed the Network UPS Tools (NUT) softwarem but that software
> requires a Unix-style device name (/dev/usb/...) and I cannot find or
> make such a mount point.

That is not a mount point.  /dev/usb/... are special filesystem nodes
that correspond with block devices.  You do not want to mount this
device anywhere (especially on it's block control device node), but have
the ups daemon monitor this device node that corresponds to the UPS
device.  Communication is done through this port, and both the daemon
and the UPS have to speak the same language once the connection is sound.

Take a look at the NUT documentation.  The ups.conf takes a "port="
config.  Often this port is a serial port, which is likely to work on a
wider variety of systems.  OS X handles USB access via USB Device
Arbitration mechanisms, some of which require a kernel extension.  That
is, there is no simple Unix block device representing the various USB
devices that OS X can handle.

A look at http://us1.networkupstools.org/compat/ indicates that NUT does
not have tested support for "Energizer" products.  It may work with the
serial port (if you are lucky) with existing drivers.  However, it may
be that the NUT project needs someone to support this hardware explicitly.

Heck, some UPS devices even need special cables to work with alternate
systems.

My advice: get a UPS device that works with OS X out of the box, or
review the supported NUT configs and get hardware that is known to work
with that.  Assume a sort of FreeBSD system for OS X, which implies
getting a device that talks via the serial port.  This can be a problem
for OS X, obviously, so caveat emptor.

Another solution might be to have an edge or server box that _can_ talk
to a UPS device send network traffic to a listening daemon on your OS X
machine(s) to tell it/them to shut down gracefully.
Eric Schneck - 07 Oct 2004 23:29 GMT
> [...]
>
[quoted text clipped - 10 lines]
> device.  Communication is done through this port, and both the daemon
> and the UPS have to speak the same language once the connection is sound.
<snip>

OK. Thanks for clarifying that for me.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.