search for: tiocmbic

Displaying 4 results from an estimated 4 matches for "tiocmbic".

2009 Feb 04
2
[nut-commits] svn commit r1765 - in trunk: . drivers man
...uot;ups.delay.shutdown", "Override > shutdown delay (120s)"); > 959 addvar(VAR_VALUE, "ups.delay.start", "Override restart > delay (10s)"); This doesn't work without using getval() somewhere in the driver. > 971 ioctl(upsfd, TIOCMBIC, &rts_bit); > 972 ioctl(upsfd, TIOCMBIC, &dtr_bit); We have library functions in serial.c to handle this. Use them. Best regards, Arjen -- Please keep list traffic on the list
2007 Jun 18
1
Megatec - modem control lines
...(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 lines before, so the state would have been ...
2007 Jan 02
5
Cpsups driver with a CyberPower OP1000E
...r_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 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/nu...
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