search for: b2400

Displaying 13 results from an estimated 13 matches for "b2400".

Did you mean: 2400
2009 Jul 06
3
Smart-UPS RT 3000 Baud Rate
...940-0095B cable now uses an RJ45 connector at the UPS end. 3. It now requires a baud rate of 9600 instead of the 2400 used previously. Can anyone tell me if modifying drivers/apcsmart.c void upsdrv_initups(void) { char *cable; upsfd = ser_open(device_path); ser_set_speed(upsfd, device_path, B2400); to void upsdrv_initups(void) { char *cable; upsfd = ser_open(device_path); ser_set_speed(upsfd, device_path, B9600); all that is required in order to get nut to talk to it, or will other things need changing? Regards, Richard
2015 Apr 01
2
mge-shut driver fails almost after every reboot
Hello all, OS name: FreeNAS 9.3 NUT version: 2.7.2 NUT installed method: Bundled with FreenNAS 9.3 Device: EATON 5SC 1000 (http://powerquality.eaton.com/Products-services/Backup-Power-UPS/5SC.aspx?cx=5&wtredirect=www.eaton.com/5SC&GUID=B81251A4-F34E-4373-94B3-B4FB3D0CBCA8) Problem description: This was originally reported as bug to FreeNAS
2006 Oct 18
1
nut 2.0.4 won't compile on AIX 5.3
.../usr/vac/bin/cc -I../include -O -c bestups.c "serial.h", line 11.4: 1506-205 (S) #error "No <sys/termios.h> available. Unable to continue." "serial.h", line 20.45: 1506-046 (S) Syntax error. "bestups.c", line 405.43: 1506-045 (S) Undeclared identifier B2400. make: The error code from the last command is 1. Stop. make: The error code from the last command is 1. Stop. $ The config.log file is on http://www.stupendous.org/config.log . This error (and the config.log file I mentioned) occurred using the IBM C compiler, vac.c version 6. I also tried us...
2015 Apr 02
0
mge-shut driver fails almost after every reboot
...s the following: --- ../nut-2.7.1/drivers/libshut.c 2013-10-02 14:16:42.000000000 +0200 +++ drivers/libshut.c 2014-02-25 16:39:34.000000000 +0100 @@ -312,7 +312,7 @@ /* FIXME: add variable baudrate detection */ *upsfd = ser_open(device_path); ser_set_speed(*upsfd, device_path, B2400); - setline(*upsfd, 0); + setline(*upsfd, 1); /* initialise communication */ if (!shut_synchronise(*upsfd)) This is tied to the PnP feature, and was reverted with the following commit: https://github.com/networkupstools/nut/commit/75b0ce8b952d7c55880f7a019ba61ec05b45e6a7 Never h...
2007 Jun 18
1
Megatec - modem control lines
...unk/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; + + ioctl(upsfd, TIOCMBIC, &dtr_bit); ser_close(upsfd, device_path); } This should be backwards compatible, sinc...
2009 Aug 14
2
Bestfortress driver, network serial patch for nut-2.0
...nel: (european voltage level) parameter factory default range INFO_LOWXFER 196 V p7=nnn 160-210 INFO_HIGHXFER 254 V p8=nnn 215-274 INFO_LOBATTIME 2 min p2=n 1-5 comm mode p6=0 dumb DONT USE (will lose access to parameter setting!) p6=1 B1200 p6=2 B2400 P6=3 B4800 p6=4 B9600 maybe cycle through speeds to autodetect? echo off e0 echo on e1 */ dstate_setinfo("input.transfer.low", "%s", ""); dstate_setflags("input.transfer.low", ST_FLAG_STRING | ST_FLAG_RW); dstate_setaux("i...
2015 Apr 02
2
mge-shut driver fails almost after every reboot
...nut-2.7.1/drivers/libshut.c 2013-10-02 14:16:42.000000000 +0200 > +++ drivers/libshut.c 2014-02-25 16:39:34.000000000 +0100 > @@ -312,7 +312,7 @@ > /* FIXME: add variable baudrate detection */ > *upsfd = ser_open(device_path); > ser_set_speed(*upsfd, device_path, B2400); > - setline(*upsfd, 0); > + setline(*upsfd, 1); > > /* initialise communication */ > if (!shut_synchronise(*upsfd)) > > > This is tied to the PnP feature, and was reverted with the following > commit: > https://github.com/networkupstools/nut/commit/7...
2006 Dec 05
3
megatec over USB - new driver patch
...UPS_VERSION); + printf("Network UPS Tools - Megatec protocol driver %s[%s] (%s)\n", DRV_VERSION, comm->name, UPS_VERSION); printf("Carlos Rodrigues (c) 2003-2006\n\n"); } - void upsdrv_initups(void) { - upsfd = ser_open(device_path); - ser_set_speed(upsfd, device_path, B2400); + comm->open(device_path); } void upsdrv_cleanup(void) { - ser_close(upsfd, device_path); + comm->close(device_path); } diff -Naur drivers_orig/megatec.h drivers/megatec.h --- drivers_orig/megatec.h 2006-12-04 13:08:58.000000000 +0300 +++ drivers/megatec.h 2006-12-03 16:01:19.00...
2006 May 12
1
Fwd: RE New xanto driver for NUT
Dear Andreas, some googling revealed, you created a driver for the xanto series of online-usv.de. In what state it is currently? I've to manage a S2000 and would like to use nut for it, is it usable by now? Do you need another tester? TIA, Pete
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
...rsion 1.0 based on liebert.c from R.Gregory (http://www.csc.liv.ac.uk/~greg/projects/liebertserial/) Spiros Ioannou, sivann at gmail.com 2009 Compile with: gcc -O2 upsesp2.c -o upsesp2 Run with: ./upsesp2 /dev/ttyS0 Replace ttyS0 with your serial port (ttyS1, ...etc). */ #define BAUDRATE B2400 #define _POSIX_SOURCE 1 /* POSIX compliant source */ #define FALSE 0 #define TRUE 1 #define NCMD 100 /*max number of commands*/ #define MAXAGE 5 /*max seconds to accept data as current*/ #define IsBitSet(val, bit) ((val) & (1 << (bit))) char str[128]; /*********************************...
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...tocol driver %s > [%s]\n", UPS_VERSION, DRV_VERSION, progname); > printf("Carlos Rodrigues (c) 2003-2007\n\n"); > } > > > void upsdrv_initups(void) > { > ! upsfd = ser_open(device_path); > ! ser_set_speed(upsfd, device_path, B2400); > } > > > void upsdrv_cleanup(void) > { > ! ser_close(upsfd, device_path); > } > > > --- 766,785 ---- > > void upsdrv_banner(void) > { > ! printf("Network UPS Tools - Megatec protocol driver %s[%s] > (%s)\n&quot...
2005 Dec 19
0
new(er) SEC driver.
...OUTPUT_POWER "output.power" #define SEC_STR_OUTPUT_VOLTAGE "output.voltage" #define SEC_SIZE (256) #include "sec.h" /* Some baud rates for setup_serial() */ #define SEC_NUMBAUDS 5 static struct baud_rate_t baud_rates[SEC_NUMBAUDS] = { { B1200, 1200 }, { B2400, 2400 }, { B4800, 4800 }, { B9600, 9600 }, { B19200, 19200 }, }; /* Exhaustive information for each possible variable */ static const struct sec_varlist_t sec_varlist[SEC_NUMVARS] = { { SEC_UNUSED, "", 0.0, "", 0,...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *