Re: [Nut-upsuser] Mustek drivers
Citeren Kjell Claesson : [...] > So the driver should support the mustek protocol. Maybe. It could also be speaking a dialect of the Megatec protocol and use 'QS\r' to query for the status. The new 'blazer_(ser|usb)' drivers will support that, the 'megatec(_usb)' doesn't. [...] Running a driver in debug mode might help to find communication problems, but if the UPS 'speaks' a different protocol, it most likely won't reveal anything. At best it will just echo the command back to let us know it doesn't understand it. If available, running the software that was bundled with the UPS on a Windows box while running a serial port sniffer, usually provides enough info about the protocol to see what driver should support it. Best regards, Arjen -- Please keep list traffic on the list ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Mustek drivers
Den Thursday 18 December 2008 17.05.59 skrev du: > Hi Kjell, Hi Mohanjith, > The UPS is from one of the local manufacturers IE Tec. They no longer > produce this UPS. I tried all drivers with no luck, namely apcsmart, > belkin, belkinunv, bestuferrups, bestups, cpsups, cyberpower, > energizerups, etapro, everups, genericups, isbmex, liebert, > masterguard, mge‐shut, mge‐utalk, oneac, powercom, safenet, > snmp-ups, tripplite, tripplitesu, victronups. > If you look in the nut source docs/megatec.txt you find. quote The following drivers are targeted for "assimilation": * blazer (1) * fentonups (1) * mustek (1) * esupssmart (1) * ippon (1) * sms (1) * masterguard (3) (1) megatec already supercedes this driver in functionality. (2) megatec partially supercedes this driver in functionality, but some small features are missing (non-critical for normal operation). (3) megatec partially supercedes this driver in functionality, but some important features are missing, which means some hardware may not be supported. unquote So the driver should support the mustek protocol. > With genericups I tried all UPS types with no luck. I have hit a brick > wall. The generic is only for contact closure and if the ups support this you may have to use a differnet cable for this. > > Any ideas? Any help is appreciated. Looking at your second mail you run the upsdrvctl with debug. This would not run the driver with debug. You need to run it like. /path/to/driver/megatec -DD -a patriot You have to kill this with ctrl-c but you get debug info from the driver. Check the manual for megatec, there is some flags you may alter, like DTR and RTS in the ups.conf. Also the sendpace can be altered, this is the wait between characters. (default 100mS) Run the driver in debug mode. Alter the DTR RTS value in the config and run it again. Se if you have any responce from the Q1 command. If you get response alter the sendpace for relyable respons. As it is a text protocol you may try minicom or any terminal program and send Q1/r (Q1 followed by return) and check if you get any responce. ref: http://eu1.networkupstools.org/protocols/megatec.html Regards /Kjell ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Mustek drivers
Den Tuesday 16 December 2008 20.39.17 skrev Sudirikku Mohanjith: > Hi Kjell, OK Mohanjith, > Thanks for the quick reply, much appreciated. > > I tried the megatec driver with no luck. Bellow you will find part of > the ups.conf and the output from upsdrvctl. > > From /etc/nut/ups.conf > > [patriot] > driver = megatec > port = /dev/ttyS0 > desc = "Patriot UPS powering moha-gateway" > 8<-snip--- Maybe we should start from the begining. What is the brand and type of UPS? They have cleaned up the driver code in NUT, and made some driver handle more types. Because you could find drivers with almost the same code, and was not maintaind. So to fix this, the support was added into one driver. You have 'Patriot...' in the description, so if it is a 'Best Power Patriot' you should try the bestups driver. But tell us what ups you have and we can go from there. Regards /Kjell > > Den Tuesday 16 December 2008 15.48.48 skrev Sudirikku Mohanjith: > >> Hi, > > > > Hi Mohanjith, > > > >> I cannot find Mustek drivers or PowerMust drivers that support Mustek > >> UPSes in the NUT source. Looking at the source I see that mustek is > >> added to svn:ignore. Could I know where I can get either driver or > >> know why they were removed form the source? > > > > The source was full of drivers for the megatec protocol, so the mustek > > and powermust is dropped. Now it is supported by the megatec driver. > > > >> Please help me, I have a Mustek UPS that used to work on Fedora but no > >> longer on Debian for the obvious reason of not having any of the > >> mustek drivers. > > > > Test the megatec driver. > > > > /Kjell > > ___ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Mustek drivers
Hi Kjell, Thanks for the quick reply, much appreciated. I tried the megatec driver with no luck. Bellow you will find part of the ups.conf and the output from upsdrvctl. >From /etc/nut/ups.conf [patriot] driver = megatec port = /dev/ttyS0 desc = "Patriot UPS powering moha-gateway" # upsdrvctl - start patriot Network UPS Tools - UPS driver controller 2.2.2 Starting UPS: patriot exec: /lib/nut/megatec -a patriot Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec] Carlos Rodrigues (c) 2003-2008 Megatec protocol UPS not detected. Driver failed to start (exit status=1) Any help is much appreciated. Cheers, Mohanjith On Tue, Dec 16, 2008 at 10:27 PM, Kjell Claesson wrote: > Den Tuesday 16 December 2008 15.48.48 skrev Sudirikku Mohanjith: >> Hi, > Hi Mohanjith, >> I cannot find Mustek drivers or PowerMust drivers that support Mustek >> UPSes in the NUT source. Looking at the source I see that mustek is >> added to svn:ignore. Could I know where I can get either driver or >> know why they were removed form the source? >> > The source was full of drivers for the megatec protocol, so the mustek and > powermust is dropped. Now it is supported by the megatec driver. > >> Please help me, I have a Mustek UPS that used to work on Fedora but no >> longer on Debian for the obvious reason of not having any of the >> mustek drivers. > > Test the megatec driver. > > /Kjell > > ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Mustek drivers
Den Tuesday 16 December 2008 15.48.48 skrev Sudirikku Mohanjith: > Hi, Hi Mohanjith, > I cannot find Mustek drivers or PowerMust drivers that support Mustek > UPSes in the NUT source. Looking at the source I see that mustek is > added to svn:ignore. Could I know where I can get either driver or > know why they were removed form the source? > The source was full of drivers for the megatec protocol, so the mustek and powermust is dropped. Now it is supported by the megatec driver. > Please help me, I have a Mustek UPS that used to work on Fedora but no > longer on Debian for the obvious reason of not having any of the > mustek drivers. Test the megatec driver. /Kjell ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser