-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miscellaneous additions to the Megatec protocol variants #58
Comments
@dvdesolve : thanks!
Do you know if there is really no leading parenthesis, or is this a typo? (It is same way in original document) |
…T 3/1 driver development [networkupstools#58] * networkupstools#58 * networkupstools/nut#2712 Signed-off-by: Jim Klimov <[email protected]>
…just table formatting for pretty asciidoc rendering [networkupstools#58] Signed-off-by: Jim Klimov <[email protected]>
I'm not sure, because this is the info which I got on that web page. However I think that it should start with |
…mment about one questionable example reply [#58] Signed-off-by: Jim Klimov <[email protected]>
Also I want to enlist some other commands which I was able to sniff during WinPower testing. However, my UPS (Innova RT 3/1 20K) answered
I can also try to check conversations between WinPower and 850, 1500 and 2200 Back Basic models, if it would be useful |
I think it might be, thanks |
Checked for 850 version (I think that 650 will behave the same) via USB sniffer. In case of unknown request 650/850 model answers that request back. EDIT: checked 1500/2200 as well. The behavior is exactly the same. So, it looks like 650/850/1500/2200 models are just siblings from the firmware point of view. Looking at the whole info that I was able to get I can conclude that, at least, WinPower tries to discover device type by issuing some sort of ping requests ( May be other families with additional properties (3/1, 3/3, with bypass, ECO/HE models etc) will answer to the |
Well, polling by device model does make sense, as long as there is some classifier of models to their concept of what NUT would call protocols in nutdrv_qx or subdrivers in usnhid-ups... |
I think that the very first classifier is BTW I was able to grep huge list of commands which are known to the WinPower software. It already contains a lot of well-known queries, though it lacks some of sniffed ones. Here it is:
|
|
Many thanks to the @shangjiaxuan for Santek command list. I was able to translate it and compare with my current findings about new Qx protocol dialects (namely
|
Also need to add: according to the Santak specs the meaning of status bits |
I want to add some extra info about Megatec protocol. That's a partial translation of this web page - some obvious and well-known parts are omitted, as well as dubious points. Also some info obtained from RS232 sniffering is added too. NB: not all UPSes are capable to answer/consume these commands!
EDIT: for
Q2
,Q6
andWA
commands see update in this commentAR?
,AR0
,AR1
AR1
). If option is off (AR0
) then UPS will stay powered off even after mains return and should be switched on manually by using power buttonAT?
,AT0
,AT1
BL?
,BL
BPS
(230.4 000.0 000.0 49.9
. Fields 1--3 should be L1-N, L2-N and L3-N input bypass voltages, field 4 is input bypass frequencyEB?
,EBnn
EF?
EV?
FW?
GR?
,GR0
,GR1
IP?
,IPN
,IPW
,IPG
IPN
), wide (IPW
), generator (IPG
). Corresponding LEDs will be toggled for Smart Winner UPSM
P
,T
,V
,C
and some othersQ2
Q1
). Typical answer:(226.6 224.3 228.0 226.6 229.9 000.0 000.0 000 000 000 49.9 327.6 18.0 00000000 999.24 100 02 00 00 00 00 00000000 11
. As far as I was able to decipher this first three fields correspond to the L1-N, L2-N and L3-N input voltages, fifth field is output voltage (3/1 Ippon UPS was tested though, may be fields 5--7 correspond to the L1-N, L2-N and L3-N output voltages) eleventh field seems to be frequency (don't know, input or output), twelfth field is battery voltage, thirteenth field is temperature, 15th field may be estimated runtime (in minutes?) and 16th field is battery level (in percents, with leading zero). However, I'm not sure about fields 4, 6--11, 14--23Q4
(MMM.M ???.? ???.? NNN.N PPP.P ??? QQQ RR.R ??? ??? SS.S TT.T flags
. Some flags:E
- test in progress,A
- mains fault, on battery,C
- bypass/AVR modeQ6
(227.0 225.6 230.0 50.0 229.9 000.0 000.0 49.9 007 000 000 327.8 000.0 23.0 06932 100 32 00000000 00000000 11
. Fields 1--3 are L1-N, L2-N and L3-N input voltages, field 4 is input frequency, fields 5--7 should be L1-N, L2-N and L3-N output voltages, field 8 is output frequency, field 9 is load (in percents, with leading zero), field 12 is battery voltage, field 14 is temperature, field 15 is estimated runtime (in seconds), field 16 is battery level (in percents, with leading zero)QBL
(026.5 02 01 068 255
. Field 1 is battery voltage, field 2 is a number of batteries connected in series, field 3 is a number of batteries connected in parallel, field 4 is battery level (in percents, with leading zero), field 5 is estimated runtime (in minutes?)QI
QLDL
QMD
QMF
QMOD
QOF
QP
(45.0 55.0 176 264 EpbraDokc
. Fields 1 and 2 are low and high limits for input bypass frequency, fields 3 and 4 are the same but for the voltage, field 5 is flagsQRI
QVFW
SASV07?
GASV07D
stringTC?
V
165 200 220 240 275
. Field 1 is low limit for battery transition, field 2 is low limit for engaging AVR boost, field 3 is nominal voltage, field 4 is high limit for engaging AVR buck, field 5 is high limit for battery transitionV?
V220
,V230
,V240
WH
(00 00.00 00.00 INN3T20K 2 3/1 6 230 50.00 024 02.00 005.00 015.00 005 00 40 110 276 45.00 55.00
. Seems to be model code (field 4), topology (field 6), nominal voltage (field 8) and frequency (field 9), number of batteries (field 10)WA
(001.4 000.0 000.0 001.4 000.0 000.0 001.4 001.4 006.5 000.0 000.0 007 00000000
. Fields 1 and 7 seems to be real power measurements on output while fields 4 and 8 - the full one. This example a bit clumsy because in that case cos(phi) was about 1, but in another measurements I was able to get different readings. Not sure why these fields are in pairs (m. b. rolling average?). Field 9 is a current (amps), field 12 - load (percents)The text was updated successfully, but these errors were encountered: