<!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>&nbsp;</DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>I am connecting a 
ups via a&nbsp;usb to serial converter.&nbsp; 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&nbsp;that&nbsp;I 
added to the&nbsp;top of the 025_nut-usbups.rules file&nbsp;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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial 
size=2>[myups]<BR>&nbsp;&nbsp; driver = megatec<BR>&nbsp;&nbsp; port = 
/dev/upsserial2usb<BR>&nbsp;&nbsp; desc = "Local UPS"</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>And here is the 
problem:&nbsp;upsdrvctl will fail to start when pointed to the symlink that the 
udev&nbsp;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>&nbsp;</DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial size=2>I have also tried 
using NAME="upsserial2usb" in the rules file.&nbsp; Same issue 
however.</FONT></SPAN></DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=285393609-12052008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>