Skip to content

drivers/nutdrv_qx_megatec.c: add QX_FLAG_ABSENT to "ups.firmware"…#3438

Open
jimklimov wants to merge 1 commit into
networkupstools:masterfrom
jimklimov:issue-3436
Open

drivers/nutdrv_qx_megatec.c: add QX_FLAG_ABSENT to "ups.firmware"…#3438
jimklimov wants to merge 1 commit into
networkupstools:masterfrom
jimklimov:issue-3436

Conversation

@jimklimov
Copy link
Copy Markdown
Member

@jimklimov jimklimov commented May 13, 2026

…so devices with all-spaces in that field can still be recognized

Closes: #3436

An UPS returned a reply to the I query which the subdriver interpreted as lack of "ups.firmware" and discarded the device as unsupported, unless novendor was added into the settings (which needs an end-user to discover that this option exists and might help).

According to an experiment in that issue discussion, this change should not impact well-behaved devices which report a real manufacturer string here.

One point not decided yet is whether the NUT driver should stick with the returned value (all-spaces or trimmed-empty string), or stick some fallback like UNKNOWN in there?

Thanks @siravijbb

…devices with all-spaces in that field can still be recognized [networkupstools#3436]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Co-authored-by: Jim Klimov <jimklimov+nut@gmail.com>
Co-authored-by: Siravijbb <siravijbb@gmail.com>
@jimklimov jimklimov added this to the 2.8.6 milestone May 13, 2026
@jimklimov jimklimov added service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others USB VID=0001 PID=0000 (Fry's Electronics/MEC0003) Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...) labels May 13, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

A ZIP file with standard source tarball and another tarball with pre-built docs for commit d02483e is temporarily available: NUT-tarballs-PR-3438.zip.

@AppVeyorBot
Copy link
Copy Markdown

Build nut 2.8.5.4711-master completed (commit ebdae20b5f by @jimklimov)

@AppVeyorBot
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others service/daemon start/stop General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug USB VID=0001 PID=0000 (Fry's Electronics/MEC0003) Seems to be a generic USB chip interfacing many devices and protocols (Qx, USB HID, ATCL...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sudo upscmd -u XXX -p XXX test.battery.start.XXX all type causing segmentation false

2 participants