Displaying 20 results from an estimated 291 matches for "upsdrv_initup".
Did you mean:
upsdrv_initups
2010 Apr 19
2
Trouble detecting APC Smart-UPS connected via usb
Hello!
I have installed the nut package from the OpenBSD 4.4 packages tree, nut-2.2.1p0
I have a new APC Smart-UPS 750 which I plan to connect via USB. When I
try to start the usbhid-ups i get
debug level is '2'
upsdrv_initups...
No appropriate HID device found
No matching HID UPS found
for almost anything i try.
OpenBSD detects my UPS and assigns it to a device and it can be seen
using usbdevs. The only clue I have so far is that there should be
something with the USB subsystem.
Example line that does not work:
$ su...
2006 Sep 22
1
Stack corruption in newhidups.c
Hi,
(please let me know if there is a better place to submit bugs)
I run a FreeBSD box with stack-protector enabled, which raises a problem
in the upsdrv_initups() function of the newhidups.c module; the
regex_array variable is sized one item too small.
Regards,
Herve Masson
<<<<
void upsdrv_initups(void)
{
int i;
#ifndef SHUT_MODE
/*!
* SHUT is only supported by MGE UPS SYSTEMS units
* So we don't need the regex mec...
2009 Jul 06
3
Smart-UPS RT 3000 Baud Rate
...it is slightly different in 3
ways that I have found so far.
1. It's a Smart-UPS RT 3000 XL
2. The 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
thing...
2013 Jan 31
1
CyberPower on OpenIndiana
...bhid-ups doesn't seem to like it:
# usbhid-ups -DDDDDDD -a cyberpower
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
0.000000 send_to_all: SETINFO driver.parameter.port "/dev/usb/hid2"
0.000052 debug level is '7'
0.000331 upsdrv_initups...
0.001113 No appropriate HID device found
0.001152 No matching HID UPS found
Strangely enough if I pass -u root, it ignores my port setting and just tries to open the first thing in /dev/usb and exists:
# ./usbhid-ups -a cyberpower -DDDDDDD -u root
Network UPS Tools - Generic HID...
2007 May 25
0
Patch -- SVN revision in the version string
...===================================
--- drivers/bestups.c (revision 916)
+++ drivers/bestups.c (working copy)
@@ -395,7 +395,7 @@
void upsdrv_banner(void)
{
printf("Network UPS Tools - Best UPS driver %s (%s)\n",
- DRV_VERSION, UPS_VERSION);
+ DRV_VERSION, upsversion());
}
void upsdrv_initups(void)
Index: drivers/cpsups.c
===================================================================
--- drivers/cpsups.c (revision 916)
+++ drivers/cpsups.c (working copy)
@@ -464,7 +464,7 @@
void upsdrv_banner(void)
{
printf("Network UPS Tools - CyberPower text protocol UPS driver %s (%s)...
2015 Jun 27
2
Driver macosx-ups failing on Yosemite
...; --
> Charles Lepple
> clepple at gmail
sudo macosx-ups -DDDD -a cyberpower
Network UPS Tools - Mac OS X UPS meta-driver 1.0 (2.6.5-Unversioned directory)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '4'
0.000233 upsdrv_initups(): Power Sources blob:
<CFArray 0x7ffd18605480 [0x7fff7443bed0]>{type = immutable, count = 1, values = (
0 : <CFBasicHash 0x7ffd18605360 [0x7fff7443bed0]>{type = immutable dict, count = 10,
entries =>
0 : <CFString 0x7ffd18605800 [0x7fff7443bed0]>{contents = "Voltage&qu...
2008 Feb 01
1
genericups CP custom config not working
It look to me that overwriting UPSTYPE CP signal or polarity in ups.conf
have no effect.
Looking at drivers/main.c source show that &upstab[upstype].line_norm is
set to custom CP in initinfo() only _AFTER_ the serial signals are
actually set by upsdrv_initups().
2008 Feb 01
1
genericups CP custom config not working
It look to me that overwriting UPSTYPE CP signal or polarity in ups.conf
have no effect.
Looking at drivers/main.c source show that &upstab[upstype].line_norm is
set to custom CP in initinfo() only _AFTER_ the serial signals are
actually set by upsdrv_initups().
2018 Jul 21
0
Adding drivers to NUT?
...ted entirely in 'nutdrv_qx.c'.
With regard to 'protocols', nutdrv_qx works like this:
- 'nutdrv_qx.c''s `subdriver_list` lists the various (#include'd)
'protocols' the driver supports.
- Once nutdrv_qx has set up the communication with a supported device
in `upsdrv_initups()` (see below, for serial or USB devices), it gives
all (unless otherwise instructed by the user) 'protocols' in
`subdriver_list` a few tries by calling their 'claim()' function
(which usually tries to read some vars from the device to see if it's
actually 'speaking' th...
2018 Jul 18
2
Adding drivers to NUT?
Dear Daniele,
I'm trying to create a subdriver for 'nutdrv_qx' instead of modifying the Blazer as you suggested, but i honestly don't understand how to integrate usb-serial devices (some of our UPSs have USB but serial protocol Q1). i understand the serial version but not the USB one.
i also checked the "Claim" function, but i can't see drivers that uses the VID
2020 Apr 03
0
Patch to support Powercool PCRACK-1200VA
...gid_fix", "Apply the language ID workaround
to the krauler subdriver (0x409 or 0x4095)");
+
+ addvar(VAR_VALUE, "buflen_fix", "Apply the buflen workaround to the
krauler subdriver");
+
#endif /* QX_USB */
#ifdef QX_SERIAL
@@ -1822,7 +1834,8 @@ void upsdrv_initups(void)
getval("product") ||
getval("serial") ||
getval("bus") ||
- getval("langid_fix")
+ getval("langid_fix") ||
+ getval("buflen_fix")
) {
/* USB */
is_usb = 1;...
2013 Oct 09
2
Updated to 2.6.5, previously-working APC SmartUPS now fails completely
Here is the upsc output:
# /usr/local/ups/bin/snmp-ups -DD -a irs2-ups1
Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5)
0.000000 debug level is '2'
0.000327 SNMP UPS driver : entering upsdrv_initups()
0.000341 SNMP UPS driver : entering nut_snmp_init(snmp-ups)
0.056112 SNMP UPS driver : entering load_mib2nut(auto)
0.056126 trying the new match_sysoid() method
1.119440 match_sysoid: device sysOID value = .1.3.6.1.4.1.318
1.119456 match_sysoid: checking MIB ap...
2015 Jun 26
2
Driver macosx-ups failing on Yosemite
...on 0x00007fff8a074e24 ___forwarding___ + 1028
4 CoreFoundation 0x00007fff8a074998 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff89ffd11d CFStringGetCString + 173
6 macosx-ups 0x0000000104158ebb upsdrv_initups + 409
7 macosx-ups 0x0000000104159bd2 main + 1040
8 libdyld.dylib 0x00007fff9083e5c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
2010 Mar 19
1
usbhid-ups fails with Belkin F6C120-UNV in nut-2.4.3
I recently upgraded from nut-2.4.1 to 2.4.3 and my UPS stopped working.
usbhid-ups now fails two communicate with the UPS:
With 2.4.1:
# /sbin/usbhid-ups -D -a auto
Network UPS Tools - Generic HID driver 0.34 (2.4.1)
USB communication driver 0.31
debug level is '1'
upsdrv_initups...
Using subdriver: Belkin HID 0.12
Path: UPS.BELKINConfig.BELKINConfigVoltage, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 230.000000
Path: UPS.BELKINConfig.BELKINConfigFrequency, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 50.000000
Path: UPS.BELKINConfig.BELKINConfig...
2013 Apr 06
1
Problems with a Tripplite Smart150LCD UPS
...Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
0.000000 send_to_all: SETINFO driver.parameter.port "auto"
0.000027 send_to_all: SETINFO driver.parameter.productid "3016"
0.000044 debug level is '6'
0.000510 upsdrv_initups...
0.000884 Checking device (09AE/3016) (/dev/usb//dev/ugen1.3)
0.023325 - VendorID: 09ae
0.023348 - ProductID: 3016
0.023353 - Manufacturer: Tripp Lite
0.023357 - Product: TRIPP LITE UPS
0.023363 - Serial Number: unknown
0.023367 - Bus: /dev/usb...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
...-x vendor=X, vendorid=X, product=X, productid=X, serial=X */
nut_usb_addvars();
- addvar(VAR_VALUE, "langid_fix", "Apply the language ID workaround
to the krauler subdriver (0x409 or 0x4095)");
#endif /* QX_USB */
#ifdef QX_SERIAL
@@ -1822,7 +1787,8 @@ void upsdrv_initups(void)
getval("product") ||
getval("serial") ||
getval("bus") ||
- getval("langid_fix")
+ getval("langid_fix") ||
+ getval("buflen_fix")
) {
/* USB */
is_usb = 1;...
2014 Feb 25
2
Arch Linux and Tripp Lite web snmp card issues.
...et sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Network UPS Tools - Generic SNMP UPS driver 0.71 (2.7.1-signed-54-g348cd84)
0.000000 debug level is '3'
0.002205 SNMP UPS driver : entering upsdrv_initups()
0.002374 SNMP UPS driver : entering nut_snmp_init(snmp-ups)
0.025728 SNMP UPS driver : entering load_mib2nut(auto)
0.025765 trying the new match_sysoid() method
0.025785 Entering nut_snmp_get_str()
0.025804 nut_snmp_get(.1.3.6.1.2.1.1.2.0)
0.025823...
2013 Oct 09
0
Updated to 2.6.5, previously-working APC SmartUPS now fails completely
On Tue, 8 Oct 2013, Philip Tait wrote:
> Here is the upsc output:
>
> # /usr/local/ups/bin/snmp-ups -DD -a irs2-ups1
> Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5)
> 0.000000 debug level is '2'
> 0.000327 SNMP UPS driver : entering upsdrv_initups()
[snip]
> 4.457750 No supported device detected
I'm using a APC smart ups with a ap9630 card here just fine.
How about showing us the irs2-ups1 entry in ups.conf.
--
Tim Rice Multitalents
tim at multitalents.net
2011 Dec 17
1
[nut-commits] svn commit r3363 - in trunk: data docs/man drivers
...d patch, from Brian R. Smith and Aur?lien Grenotton)
...
> + if (testvar("langid_fix")) {
> + /* Hardcode lang to 0x4095 */
> + ret = usb_get_string(udev, command[i].index, 0x4095, buf, buflen);
> + }
Arnaud,
Could this code use the langid_fix value which is set in upsdrv_initups() instead of 0x4095? Or am I misunderstanding how this is supposed to work?
- Charles
2015 Jun 27
4
Driver macosx-ups failing on Yosemite
On Jun 27, 2015, at 9:17 AM, Charles Lepple <clepple at gmail.com> wrote:
> On Jun 26, 2015, at 11:07 PM, Sundeep Mediratta <smedius at gmail.com> wrote:
>
>> 0.000233 upsdrv_initups(): Power Sources blob:
>> <CFArray 0x7ffd18605480 [0x7fff7443bed0]>{type = immutable, count = 1, values = (
>> 0 : <CFBasicHash 0x7ffd18605360 [0x7fff7443bed0]>{type = immutable dict, count = 10,
>> entries =>
>
> Thanks. There is a subtle difference in the...