<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>Hi
All</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>I am connecting a
ups via a usb to serial converter. Works fine, however when the
converter is unplugged and plugged back in, udev creates another device e.g
instead of ttyUSB0 it creates ttyUSB1. Here is the udev rule that I
added to the top of the 025_nut-usbups.rules file in order to create a
static symlink should udev decide to create the device as either ttyUSB0 or
ttyUSB1.</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>KERNEL=="ttyUSB?",
MODE="664" GROUP="nut", SYMLINK+="upsserial2usb"</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>The ups.conf file is
set to use the newly created symlink /dev/upsserial2usb</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2>[myups]<BR> driver = megatec<BR> port =
/dev/upsserial2usb<BR> desc = "Local UPS"</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>And here is the
problem: upsdrvctl will fail to start when pointed to the symlink that the
udev rule creates, but will start normally when set to use /dev/ttyUSB0 for
example.</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>I have also tried
using NAME="upsserial2usb" in the rules file. Same issue
however.</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>Sean</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></FONT></SPAN>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>