Open leleobhz opened 1 year ago
I've asked on the mailing list if someone better versed with the driver structure is online these summer days. Perhaps also CC @blaa who was fixing a subdriver recently.
If no quick solutions come up, a sparrow in hand is better than a swan in the sky, for a first catch anyway ;)
I'm not well informed as of now, but:
So. I'm unsure where you're with the driver. But it should be easy to write a subdriver to handle communications, and if those are binary only - just synthesize a valid ASCII response in Q1-related format (megatec maybe?) and don't even touch the dialects.
This should be rather easy but it has this nah feeling because you'd go binary--parsing-->data--synthesis-->ascii--parsing-->data
. But it might be in total much less code.
Subdriver I was writing had a weird binary protocol, but in the end it was used to transmit a valid ASCII megatec response. So I just parsed the binary to retrieve the message. Unsure how it works with yours.
Hi @jimklimov
im looking in the documentation to create a "qx" sub-driver, and i got some questions, if this driver is a qx compatible sub-driver.
The "leading" on "item_t", is a char, but in the "Q" command on SMS 1Phase, the valid answer can be 3 values (<.>,=).
I Thinking in maybe open a PR from this driver and after that, migrate the driver if need some changes to qx driver itself.
You are ok with that ?
Hi @blaa ! My only concern is the "valid value" that can be readed on "leading" can be a option between 3 possibilities. but the Qx sub-driver only accepts one. Im building the sub-driver based on a megatec-hex driver, its basically the same thing.
I'm trying to make nut work with my SMS Manager III using the nutdrv_qx driver with no luck.
Here's my ups.conf
pollinterval = 15
maxretry = 3
offdelay = 120
ondelay = 240
[apc]
# SMS Manager III
driver = nutdrv_qx
port = /dev/ttyUSB0
desc = "SMS Manager III"
Am I missing something?
@cristovamperes in nuts 2.8.0 up, there is a SMS driver, that i built.
Here is the MAN https://github.com/networkupstools/nut/blob/master/docs/man/sms_ser.txt
I'm running proxmox with bullseye so the package available is < 2.8.0. Created a new lxc with debian, updated to bookwork passingthrought the usb port. Using apt install nut was able to install 2.8.0-7
# nut-scanner -V
Network UPS Tools - 2.8.0
But running nut-scanner -U won't detect the UPS and after checking /lib/nut/ for the sms_ser driver found out that it's not there.
Sorry @cristovamperes
The merge was for 2.8.1 milestone...
Great! It's now running. Testing with PeaNUT from https://github.com/Brandawg93/PeaNUT
Worked great whe using with SMS PRO 1500va, really thank you guys.
Is it possible to implement the battery runtime by the data got?
Hello!
I'm trying to read SMS Manager III without sucess. I've built NUT for Docker and published at https://github.com/leleobhz/docker-nut (To use glibc-based compilation) and as stated at https://networkupstools.org/stable-hcl.html - This nobreak is served by blazer_ser. Since this driver was superseed by nutdrv_qx, I'm trying to use it.
With the following configuration:
Resulting this
ups.conf
:Running driver directly returns:
/nut/bin/nutdrv_qx -V
/nut/bin/nutdrv_qx -a NobreakZenith -DDD
For reference. lsusb of this device:
And tracing this nobreak history, in past SMS was this driver: https://alioth-lists.debian.net/pipermail/nut-upsdev/2013-January/006379.html
This is a issue with
nutdrv_qx
driver, there is any configuration required I'm missing there or this is in fact a bug ofnutdrv_qx
?