Arnaud QUETTE
2007-Sep-03 13:22 UTC
[Nut-upsdev] Tr : adding Jageson Technology JASUNY UPS support to NUT
Hi Shanan, Since I'm lagging too much on this point, I've forwarded your mail to the NUT development list, in the hope that another developer will have a bit of time to merge your patch. thanks for your contribution, Arnaud Quette -- Free Software Developer - http://arnaud.quette.free.fr/ Debian Developer - http://people.debian.org/~aquette/ Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Ubuntu Media Center (UMC) Project Leader - https://launchpad.net/~umc-team ----- R?achemin? par Arnaud QUETTE/OPS/EMEA le 03/09/2007 12:19 ----- "Shanan Levin" <shananlevin at usgeosystems.com> 19/08/2007 18:06 A arnaud.quette at mgeups.com cc "Noel Yim" <noel at jageson.com> Objet adding Jageson Technology JASUNY UPS support to NUT Hi, I would like to add support for Jageson Technology JASUNY UPS support to NUT. The JASUNY Uninterruptible Switching Power Supplies (USPS) are a group of UPS products with serial interfaces (http://jageson.com/product.php). All of the JASUNY UPS products implement the same interface for UPS communication via serial port. Therefore the manufacturer would like to be added as officially supported by NUT with the following driver type (using the /driver/genericups.h already built into NUT) by adding the following lines: /* Type 23 (duplicate from 4)*/ { "Jageson Tech Co Ltd", "Jasuny USPS", "Jasuny USPS with RS232", TIOCM_RTS, /* cable power: RTS */ TIOCM_CTS, TIOCM_CTS, /* online: CTS on */ TIOCM_CD, 0, /* low battery: CD off */ 0 /* shutdown: none */ } A diff -u follows per the /docs/developers.txt file. My mail client won't let me keep the tabs proper 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 */ + TIOCM_CTS, TIOCM_CTS, /* online: CTS on */ + TIOCM_CD, 0, /* low battery: CD off */ + 0 /* shutdown: none */ + } + /* add any new entries directly above this line */ { NULL, One more thing, we have tested this code change (on Fedora Core 6) using 2.2.0 and used our "Type 23" with some of our power supplies. I also ran "make distcheck-light" to verify our changes to genericups.h did not introduce any errors. It ran cleanly, without error. Please contact me if you need any additional information. Thanks, Shanan Levin U.S. Geosystems, LLC -------------- next part -------------- A non-text attachment was scrubbed... Name: genericups.h.diff Type: application/octet-stream Size: 514 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20070903/39642734/attachment.obj