[opensuse] USB serial port on HP T1000 G3 UPS ?
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 .... -- Per Jessen, Zürich (21.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[10.08.2013 13:56] [Per Jessen]:
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 ....
Did you try ln -s /dev/usb/hiddev0 /dev/ttySx ? HTH, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Werner Flamme wrote:
[10.08.2013 13:56] [Per Jessen]:
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 ....
Did you try
ln -s /dev/usb/hiddev0 /dev/ttySx
?
HTH, Werner
Hi Werner yes, I did try that one, but the setup utility doesn't recognise it as a serial port: # LD_LIBRARY_PATH=$PWD ./DMSetup -log Shutting down UPS Device Manager Service: done. Do you wish to use SSL to communicate with HP Power Manager? [yN]: n Please enter a port to use for web communications [88]: Is your UPS connected to a network? [Yn]: n Please select a serial port to search for a UPS device on: 1) /dev/ttyS0 2) /dev/ttyS1 3) /dev/ttyS2 4) /dev/ttyS3 5) /dev/ttyS4 6) /dev/ttyS5 7) /dev/ttyS6 8) /dev/ttyS7 9) /dev/ttyS8 10) /dev/ttyS9 [1]: 10 Looking for serial devices: Failed to Open Communications Port. Failed to find device, please check your connections and try again. ttyS0 is a real serial port, which I tried too - there's no UPS connected, but the utility seems to recognise it as a serial port. -- Per Jessen, Zürich (21.5°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[11.08.2013 12:52] [Per Jessen]:
Werner Flamme wrote:
[10.08.2013 13:56] [Per Jessen]:
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 ....
Did you try
ln -s /dev/usb/hiddev0 /dev/ttySx
?
HTH, Werner
Hi Werner
yes, I did try that one, but the setup utility doesn't recognise it as a serial port:
# LD_LIBRARY_PATH=$PWD ./DMSetup -log Shutting down UPS Device Manager Service: done. Do you wish to use SSL to communicate with HP Power Manager? [yN]: n Please enter a port to use for web communications [88]: Is your UPS connected to a network? [Yn]: n Please select a serial port to search for a UPS device on: 1) /dev/ttyS0 2) /dev/ttyS1 3) /dev/ttyS2 4) /dev/ttyS3 5) /dev/ttyS4 6) /dev/ttyS5 7) /dev/ttyS6 8) /dev/ttyS7 9) /dev/ttyS8 10) /dev/ttyS9 [1]: 10 Looking for serial devices: Failed to Open Communications Port. Failed to find device, please check your connections and try again.
ttyS0 is a real serial port, which I tried too - there's no UPS connected, but the utility seems to recognise it as a serial port.
So, /dev/ttyS0 is a real port. Are the other mentioned ports also real? Do they exist (ll /dev/tty*) or are they only a proposal from the UPS manager? If they do not exist, link the port you connected your UPS to (you mentioned /dev/usb/hiddev0) to one of the non-existing ports in that list. HTH, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Werner Flamme wrote:
[11.08.2013 12:52] [Per Jessen]:
Werner Flamme wrote:
[10.08.2013 13:56] [Per Jessen]:
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 ....
Did you try
ln -s /dev/usb/hiddev0 /dev/ttySx
?
HTH, Werner
Hi Werner
yes, I did try that one, but the setup utility doesn't recognise it as a serial port:
# LD_LIBRARY_PATH=$PWD ./DMSetup -log Shutting down UPS Device Manager Service: done. Do you wish to use SSL to communicate with HP Power Manager? [yN]: n Please enter a port to use for web communications [88]: Is your UPS connected to a network? [Yn]: n Please select a serial port to search for a UPS device on: 1) /dev/ttyS0 2) /dev/ttyS1 3) /dev/ttyS2 4) /dev/ttyS3 5) /dev/ttyS4 6) /dev/ttyS5 7) /dev/ttyS6 8) /dev/ttyS7 9) /dev/ttyS8 10) /dev/ttyS9 [1]: 10 Looking for serial devices: Failed to Open Communications Port. Failed to find device, please check your connections and try again.
ttyS0 is a real serial port, which I tried too - there's no UPS connected, but the utility seems to recognise it as a serial port.
So, /dev/ttyS0 is a real port. Are the other mentioned ports also real? Do they exist (ll /dev/tty*) or are they only a proposal from the UPS manager?
They're only a proposal.
If they do not exist, link the port you connected your UPS to (you mentioned /dev/usb/hiddev0) to one of the non-existing ports in that list.
Yep, that's what I did - ttyS9. -- Per Jessen, Zürich (23.0°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[11.08.2013 14:40] [Per Jessen]:
Werner Flamme wrote:
[11.08.2013 12:52] [Per Jessen]:
Werner Flamme wrote:
[10.08.2013 13:56] [Per Jessen]:
I'm trying to use the HP Power Manager software which appears to require/expect a USB serial port when talking to the HP T1000 G3 UPS. The UPS _is_ connected via USB. The setup utility only works with /dev/ttySx but USB serial ports usually end up as /dev/ttyUSBx or in this case /dev/usb/hiddev0 ....
Did you try
ln -s /dev/usb/hiddev0 /dev/ttySx
?
HTH, Werner
Hi Werner
yes, I did try that one, but the setup utility doesn't recognise it as a serial port:
# LD_LIBRARY_PATH=$PWD ./DMSetup -log Shutting down UPS Device Manager Service: done. Do you wish to use SSL to communicate with HP Power Manager? [yN]: n Please enter a port to use for web communications [88]: Is your UPS connected to a network? [Yn]: n Please select a serial port to search for a UPS device on: 1) /dev/ttyS0 2) /dev/ttyS1 3) /dev/ttyS2 4) /dev/ttyS3 5) /dev/ttyS4 6) /dev/ttyS5 7) /dev/ttyS6 8) /dev/ttyS7 9) /dev/ttyS8 10) /dev/ttyS9 [1]: 10 Looking for serial devices: Failed to Open Communications Port. Failed to find device, please check your connections and try again.
ttyS0 is a real serial port, which I tried too - there's no UPS connected, but the utility seems to recognise it as a serial port.
So, /dev/ttyS0 is a real port. Are the other mentioned ports also real? Do they exist (ll /dev/tty*) or are they only a proposal from the UPS manager?
They're only a proposal.
If they do not exist, link the port you connected your UPS to (you mentioned /dev/usb/hiddev0) to one of the non-existing ports in that list.
Yep, that's what I did - ttyS9.
Ah, I see. Do you have the makedev package installed? If not, "zypper in makedev" an reading "man 8 makedev" may help. I think the "update" option looks promising. Or you use "mknod" to create /dev/ttyS9 manually, with the same parameters (major, minor, ...) as /dev/usb/hiddev0 has. So both devices should point to the same hardware... Or you find the file in /etc/udev/rules.d/ that is responsible for your /dev/usb/hiddev0 device, and add something like 'SYMLINK+="ttyS9"'. HTH, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 11/08/13 14:22, Werner Flamme escribió:
Ah, I see. Do you have the makedev package installed? If not, "zypper in makedev" an reading "man 8 makedev" may help. I think the "update" option looks promising.
Nooo.. Werner, you are giving all sorts of bad or really outdated advice.. you should not use makedev or any other sort of hack for dealing with device nodes.. nor use "ln -s" nor anything else than writting proper udev rules. It won't work. This is the deal: - If the package used to manage this UPS is included in the distribution, it has to be fixed to just work. - If this package is not part of openSUSE, you need to provide udev rules suitable for the task. Nothing else will really work and will break more soon than later. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 11/08/13 14:22, Werner Flamme escribió:
Ah, I see. Do you have the makedev package installed? If not, "zypper in makedev" an reading "man 8 makedev" may help. I think the "update" option looks promising.
Nooo.. Werner, you are giving all sorts of bad or really outdated advice.. you should not use makedev or any other sort of hack for dealing with device nodes.. nor use "ln -s" nor anything else than writting proper udev rules. It won't work.
This is the deal:
- If the package used to manage this UPS is included in the distribution, it has to be fixed to just work.
Unfortunately, it is not.
- If this package is not part of openSUSE, you need to provide udev rules suitable for the task.
Nothing else will really work and will break more soon than later.
The question seems to be - this software recognises /dev/ttyS0 as a "genuine" serial port (and attempts to talk to the UPS with that), but refuses to work with /dev/usb/hiddev0 no matter what I do. -- Per Jessen, Zürich (20.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 11/08/13 15:19, Per Jessen escribió:
The question seems to be - this software recognises /dev/ttyS0 as a "genuine" serial port (and attempts to talk to the UPS with that), but refuses to work with /dev/usb/hiddev0 no matter what I do.
The software in question, seems to be broken, it has to enumerate USB devices, filter them by class, vendor and by a list of specific ids, then attempt to communicate with the matching devices. Apparently you will have better luck using Network UPS Tools (NUT package) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
You gave to edit the config file in /etc/apcupsd/ named apcupsd.conf The entry is UPSCABLE usb Working perfectly with my APC Back-up RS 800 On Sun, Aug 11, 2013 at 12:42 PM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 11/08/13 15:19, Per Jessen escribió:
The question seems to be - this software recognises /dev/ttyS0 as a "genuine" serial port (and attempts to talk to the UPS with that), but refuses to work with /dev/usb/hiddev0 no matter what I do.
The software in question, seems to be broken, it has to enumerate USB devices, filter them by class, vendor and by a list of specific ids, then attempt to communicate with the matching devices.
Apparently you will have better luck using Network UPS Tools (NUT package)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- ____________ Apply appropriate technology. Use what works without prejudice. Steven L Hess ARS KC6KGE DM05gd22 Google Voice 661 769 6201 +SMS openSUSE Linux 12.3 KDE Known as FlameBait and The Sock Puppet of Doom. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 11/08/13 15:19, Per Jessen escribió:
The question seems to be - this software recognises /dev/ttyS0 as a "genuine" serial port (and attempts to talk to the UPS with that), but refuses to work with /dev/usb/hiddev0 no matter what I do.
The software in question, seems to be broken, it has to enumerate USB devices, filter them by class, vendor and by a list of specific ids, then attempt to communicate with the matching devices.
Apparently you will have better luck using Network UPS Tools (NUT package)
Yes, I think so too. -- Per Jessen, Zürich (18.4°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Werner Flamme wrote:
If they do not exist, link the port you connected your UPS to (you mentioned /dev/usb/hiddev0) to one of the non-existing ports in that list.
Yep, that's what I did - ttyS9.
Ah, I see. Do you have the makedev package installed? If not, "zypper in makedev" an reading "man 8 makedev" may help. I think the "update" option looks promising.
Or you use "mknod" to create /dev/ttyS9 manually, with the same parameters (major, minor, ...) as /dev/usb/hiddev0 has. So both devices should point to the same hardware...
Yes, I tried that too - I removed the original /dev/ttyS9, then mknod'ed a new one with the same major/minor as /dev/usb/hiddev0 - no improvement on the situation. -- Per Jessen, Zürich (20.9°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Per Jessen
-
Steven Hess
-
Werner Flamme