Displaying 8 results from an estimated 8 matches for "tiocm_dtr".
2008 Mar 14
0
Sola 305 with INT-0051 cable
...1
This seems to agree with the definition of type 7 in genericups.h:
/* Type 7 */
{ "CyberPower",
"Power99",
"CyberPower Power99",
TIOCM_RTS, /* cable power: RTS */
TIOCM_CTS, TIOCM_CTS, /* online: CTS on */
TIOCM_CD, 0, /* low battery: CD off */
TIOCM_DTR /* shutdown: set DTR */
},
The powstatd document then defines the settings to use when connecting
using a INT-0051 as:
init0 rts init0 rng init0 dsr init1 dtr fail cts,0 low dcd,0 kill rts,1
My guesstimate is that this would correspond to an entry in the upstab
something like:
{ "Sola&...
2006 Jan 27
0
[PATCH] fentonups patch to make it work with some powercom ups's
...gt;
+#include <sys/types.h>
+#include <sys/termios.h>
#include "main.h"
#include "serial.h"
@@ -176,11 +179,27 @@ static char *get_id(void)
return NULL;
}
+static void set_powercom_lines (void)
+{
+// straced from powercom's upsmon
+//ioctl(4, TIOCMSET, [TIOCM_DTR|0x4000]) = 0
+
+ int dtr_bit = TIOCM_DTR|0x4000;
+ ioctl(upsfd, TIOCMSET, &dtr_bit);
+}
+
void upsdrv_initinfo(void)
{
int modelnum, i, ret;
char temp[256], model[32], *raw;
+ if (testvar("powercom")) {
+ set_powercom_lines();
+// straced from powercom's upsmon (reset...
2007 Jun 18
1
Megatec - modem control lines
...:
Index: /home/arjen/Devel/nut/trunk/drivers/megatec.c
===================================================================
--- trunk/drivers/megatec.c (revision 965)
+++ trunk/drivers/megatec.c (working copy)
@@ -853,13 +853,22 @@
void upsdrv_initups(void)
{
+ int dtr_bit = TIOCM_DTR;
+ int rts_bit = TIOCM_RTS;
+
upsfd = ser_open(device_path);
ser_set_speed(upsfd, device_path, B2400);
+
+ ioctl(upsfd, TIOCMBIS, &dtr_bit);
+ ioctl(upsfd, TIOCMBIC, &rts_bit);
}
void upsdrv_cleanup(void)
{
+ int dtr_bit = TIOCM_DTR;
+
+...
2007 Jan 02
5
Cpsups driver with a CyberPower OP1000E
...ied the SVN version both yesterday as well as today (seeing that there is some activity on the cpsups driver). Unfortunately this 'new' driver does not work for me at all.
Yesterday's SVN gave me the following trying to make:
cpsups.c: In function ?clr_cps_serial?:
cpsups.c:110: error: ?TIOCM_DTR? undeclared (first use in this function)
cpsups.c:110: error: (Each undeclared identifier is reported only once
cpsups.c:110: error: for each function it appears in.)
cpsups.c:112: warning: implicit declaration of function ?ioctl?
cpsups.c:112: error: ?TIOCMBIC? undeclared (first use in this functi...
2008 Dec 10
0
No subject
...= 0
12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig
-icanon -echo ...}) = 0
12369 ioctl(4, SNDCTL_TMR_START or TCSETS, {B1200 -opost -isig -icanon
-echo ...}) = 0
12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig
-icanon -echo ...}) = 0
12369 ioctl(4, TIOCMBIC, [TIOCM_DTR]) = 0
12369 ioctl(4, TIOCMBIS, [TIOCM_RTS]) = 0
12369 write(4, "\1"..., 1) = -1 EAGAIN (Resource
temporarily unavailable)
12369 write(2, "writing error\n"..., 14) = 14
Any hint please?
--
Zaar
2005 Oct 03
1
CyberPower SL-series
...ot;SL series",
+ "CyberPower SL",
+ TIOCM_RTS, /* cable power: RTS */
+ TIOCM_CTS, TIOCM_CTS, /* online: CTS on */
+ TIOCM_CAR, 0, /* low battery: CD (aka CAR) off
*/
+ TIOCM_DTR /* shutdown: DTR */
+ },
+
/* add any new entries directly above this line */
{ NULL,
As a side note, I originally tried to implement support in upsd.conf (as
below). This didn't work at all, the UPS was flagged as being On Battery
whe...
2007 Sep 03
0
Tr : adding Jageson Technology JASUNY UPS support to NUT
...oper in the file...so I also attached the
diff with tabs and formatting preserved.
[root at fc6 drivers]# diff -u genericups.h genericups.h.jasuny
--- genericups.h 2006-11-10 15:27:47.000000000 -0500
+++ genericups.h.jasuny 2007-08-19 11:57:02.000000000 -0400
@@ -259,6 +259,16 @@
TIOCM_DTR /* shutdown: DTR */
},
+ /* Type 23 (duplicate from 4)*/
+ { "Jageson Tech Co Ltd",
+ "Jasuny USPS",
+ "Jasuny USPS with RS232",
+ TIOCM_RTS, /* cable power: RTS...
2007 Dec 06
7
[PATCH] Fix ioemu compile
...om>
diff --git a/tools/ioemu/hw/serial.c b/tools/ioemu/hw/serial.c
--- a/tools/ioemu/hw/serial.c
+++ b/tools/ioemu/hw/serial.c
@@ -26,9 +26,15 @@
#include <sys/time.h>
#include <time.h>
#include <assert.h>
-#include <asm/termios.h>
//#define DEBUG_SERIAL
+
+#define TIOCM_DTR 0x002
+#define TIOCM_RTS 0x004
+#define TIOCM_CTS 0x020
+#define TIOCM_CAR 0x040
+#define TIOCM_RI 0x080
+#define TIOCM_DSR 0x100
#define UART_LCR_DLAB 0x80 /* Divisor latch access bit */
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http...