<div dir="ltr">It seems to be usb to serial device so try /dev/ttyUSB0<br><br>-- <br>Ori Idan<br><br><br><div class="gmail_quote">2009/8/19 Daniel Feiglin <span dir="ltr">&lt;<a href="mailto:dilogsys@inter.net.il">dilogsys@inter.net.il</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello folks!<br>
<br>
I use a SL1000 UPS. The model is marketed by Advice, and looks like<br>
their continuation of the Sustainer UPS line. It comes with both a<br>
serial and USB port. The serial version of the SL line always worked OK<br>
under Linux with their grotty (but adequate) UPSMON program, which comes<br>
with the unit (or may be downloaded from the Powercom site.<br>
www dot pcmups dot com dot tw).<br>
<br>
My current workstation does not have any serial ports, so the supplied<br>
UPSMON will not work.<br>
<br>
As proof of hardware integrity for what follows, I ran up the supplied<br>
Windows UPS software on an XP client running under VMware. The new USB<br>
device was detected and everything worked as it should.<br>
<br>
Back to Linux:<br>
I&#39;m running openSUSE 11.1 with KDE 3.5 fully updated.<br>
<br>
First, the relevant line from lsusb:<br>
<br>
Bus 004 Device 008: ID 0d9f:0002 Powercom Co., Ltd<br>
<br>
Next, an extract from the YAST hardware Information module:<br>
<br>
----- hal device list -----<br>
  0: udi = &#39;/org/freedesktop/Hal/devices/usb_device_d9f_2_noserial_if0&#39;<br>
  info.subsystem = &#39;usb&#39;<br>
  usb.interface.number = 0 (0x0)<br>
  info.linux.driver = &#39;usbhid&#39;<br>
  usb.product = &#39;USB HID Interface&#39;<br>
  usb.device_subclass = 0 (0x0)<br>
  usb.interface.class = 3 (0x3)<br>
  info.product = &#39;USB HID Interface&#39;<br>
  usb.linux.sysfs_path =<br>
&#39;/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0&#39;<br>
  usb.speed = 1.50000<br>
  usb.interface.subclass = 0 (0x0)<br>
<br>
  info.udi = &#39;/org/freedesktop/Hal/devices/usb_device_d9f_2_noserial_if0&#39;<br>
  usb.device_revision_bcd = 0 (0x0)<br>
  usb.device_protocol = 0 (0x0)<br>
  usb.interface.protocol = 0 (0x0)<br>
  usb.configuration_value = 1 (0x1)<br>
  usb.version = 1.00000<br>
  usb.max_power = 100 (0x64)<br>
  usb.vendor_id = 3487 (0xd9f)<br>
  linux.sysfs_path = &#39;/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0&#39;<br>
  usb.num_configurations = 1 (0x1)<br>
  usb.is_self_powered = false<br>
  info.parent = &#39;/org/freedesktop/Hal/devices/usb_device_d9f_2_noserial&#39;<br>
  usb.num_ports = 0 (0x0)<br>
  usb.product_id = 2 (0x2)<br>
  usb.num_interfaces = 1 (0x1)<br>
  usb.can_wake_up = false<br>
  usb.linux.device_number = 7 (0x7)<br>
  usb.vendor = &#39;Powercom Co., Ltd&#39;<br>
  linux.hotplug_type = 2 (0x2)<br>
  usb.device_class = 0 (0x0)<br>
  usb.bus_number = 4 (0x4)<br>
  linux.subsystem = &#39;usb&#39;<br>
<br>
  1: udi = &#39;/org/freedesktop/Hal/devices/usb_device_d9f_2_noserial&#39;<br>
  info.subsystem = &#39;usb_device&#39;<br>
  info.linux.driver = &#39;usb&#39;<br>
  usb_device.product = &#39;USB to Serial&#39;<br>
  linux.device_file = &#39;/dev/bus/usb/004/007&#39; &lt;&lt;------------- That&#39;s it<br>
  usb_device.linux.sysfs_path =<br>
&#39;/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1&#39;<br>
  info.product = &#39;USB to Serial&#39;<br>
  usb_device.device_revision_bcd = 0 (0x0)<br>
  usb_device.configuration_value = 1 (0x1)<br>
  usb_device.max_power = 100 (0x64)<br>
<br>
  info.udi = &#39;/org/freedesktop/Hal/devices/usb_device_d9f_2_noserial&#39;<br>
  usb_device.num_configurations = 1 (0x1)<br>
  usb_device.num_ports = 0 (0x0)<br>
  usb_device.num_interfaces = 1 (0x1)<br>
  usb_device.linux.device_number = 7 (0x7)<br>
  usb_device.device_class = 0 (0x0)<br>
  linux.sysfs_path = &#39;/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1&#39;<br>
  usb_device.device_subclass = 0 (0x0)<br>
  info.vendor = &#39;Powercom Co., Ltd&#39;<br>
  usb_device.speed = 1.50000<br>
  info.parent =<br>
&#39;/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_0&#39;<br>
  usb_device.device_protocol = 0 (0x0)<br>
  usb_device.version = 1.00000<br>
  usb_device.vendor_id = 3487 (0xd9f)<br>
  usb_device.is_self_powered = false<br>
  usb_device.product_id = 2 (0x2)<br>
  usb_device.can_wake_up = false<br>
  linux.hotplug_type = 2 (0x2)<br>
  usb_device.vendor = &#39;Powercom Co., Ltd&#39;<br>
  usb_device.bus_number = 4 (0x4)<br>
  linux.subsystem = &#39;usb&#39;<br>
<br>
For some reason, the printout did not include this:<br>
<br>
Drivers<br>
   Modules<br>
      Active: Yes<br>
      modprobe: Yes<br>
      modules<br>
           modprobe cypress_m8<br>
Drivers<br>
   Modules<br>
      Active: Yes<br>
      modprobe: Yes<br>
      modules<br>
           modprobe usbhid<br>
<br>
I installed nut. It has a configuration file, /etc/ups/ups.conf, which<br>
requires this:<br>
<br>
[upsname]<br>
      driver = &lt;drivername&gt;<br>
       port = &lt;portname&gt;<br>
    &lt; any other directives here &gt;<br>
<br>
The critical items are drivername and portname.<br>
The nut documentation suggests the use of /dev/hiddev0 for portname,<br>
however I don&#39;t have any /dev/hiddev0, 1, 2 ... entries. (nor do they<br>
exist in some sub-direcory).<br>
<br>
As an inspired (?) guess, I tried driver = powercom and port = /dev/ttyS0.<br>
<br>
The upsd daemon started , but was unable to communicate with the device:<br>
Here are the last few entries from syslog:<br>
<br>
Aug 18 13:40:11 danny upsmon[15804]: Poll UPS [myups@localhost] failed -<br>
Data stale<br>
<br>
Aug 18 13:40:12 danny powercom[15796]: data receiving error (-1 instead<br>
of 11 bytes)<br>
<br>
Aug 18 13:40:16 danny upsmon[15804]: Poll UPS [myups@localhost] failed -<br>
Data stale<br>
<br>
Aug 18 13:40:17 danny powercom[15796]: data receiving error (-1 instead<br>
of 11 bytes)<br>
<br>
<br>
It&#39;s easy to see what&#39;s happening: The poller sends a Ctl A (I think) to<br>
the UPS and should get back 11 bytes of status data.<br>
<br>
<br>
And so to the $64,000 question: What should I be using for these two<br>
parameters?<br>
<br>
<br>
An RTFM would be fine, but go find the FM to R!<br>
<font color="#888888"><br>
<br>
Daniel<br>
<br>
<br>
<br>
<br>
<br>
</font><br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>