Sergiy Kazakov
2006-Oct-14 11:18 UTC
[Nut-upsuser] Re: unisys UPS using RD, genericups does not
Hello, ahgu>I have a unisys UPS, I probed the RS232 and notice that pin 2, >(receive data) is going from -6v (OL) to 12v(OB), but I don't see the >setting for the genericups. Seems nobody else is using the RD pin?>Any driver I can use?>Thanks >-AndrewTry RX as signal name (not RD). -- Best regards, Sergiy mailto:rendol@mail.zp.ua
Charles Lepple
2006-Oct-14 12:44 UTC
[Nut-upsuser] Re: unisys UPS using RD, genericups does not
On 10/14/06, Sergiy Kazakov <rendol@mail.zp.ua> wrote:> Hello, ahgu > >I have a unisys UPS, I probed the RS232 and notice that pin 2, > >(receive data) is going from -6v (OL) to 12v(OB), but I don't see the > >setting for the genericups. Seems nobody else is using the RD pin? > > >Any driver I can use? > > >Thanks > >-Andrew > Try RX as signal name (not RD).I don't think that you can easily read the level of the RX pin, and even if you could, you would need to change the code: http://boxster.ghz.cc/projects/nut/browser/trunk/drivers/genericups.c#L58 Note that the valid inputs are CTS, DCD and RNG. You can detect a "break" condition on the RX input, but the code to determine when the pin changed from break to idle would be tough to debug, and probably very system-dependent. -- - Charles Lepple