Displaying 3 results from an estimated 3 matches for "tiocmbis".
Did you mean:
tiocmbic
2007 Jan 02
5
Cpsups driver with a CyberPower OP1000E
...ach function it appears in.)
cpsups.c:112: warning: implicit declaration of function ?ioctl?
cpsups.c:112: error: ?TIOCMBIC? undeclared (first use in this function)
cpsups.c: In function ?set_cps_serial?:
cpsups.c:117: error: ?TIOCM_DTR? undeclared (first use in this function)
cpsups.c:119: error: ?TIOCMBIS? undeclared (first use in this function)
make[1]: *** [cpsups.o] Error 1
make[1]: Leaving directory `/usr/local/nut-svn20070101/drivers'
make: *** [all-recursive] Error 1
Applying the following fix at least got it compiled:
--- cpsups.h.orig 2007-01-01 22:24:00.000000000 +0100
+++ cpsups...
2008 Dec 10
0
No subject
...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
2007 Jun 18
1
Megatec - modem control lines
...vision 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;
+
+ ioctl(upsfd, TIOCMBIC, &dtr_bit);
ser_close(upsfd, device_path);
}
This should be backwards compatible, since we never did anything with
these...