Said KÖKÇAM
2010-Feb-08 00:07 UTC
[Nut-upsuser] megatec and blazer drivers for (brand)Tuncmatik (series)Newtech Pro 1KVA
Hi,
I would like to report that Tuncmatik Newtech Pro 1 KVA
(http://www.tuncmatik.com/en-US/productDetail.asp?RecID=290) works
with nut(2.4.1) blazer_usb, blazer_ser and megatec drivers.
The UPS came with an usb cable and a java based software for both
linux and windows, named ViewPower
(http://www-power-software-download.com). This UPS has double
interface a USB interface and a serial interface.
Perhaps other models from this manufacturer may also work with these
drivers. I attached a copy of upsc outputs of these drivers and output
of an experimental modified megatec driver supporting more features of
this UPS. I also attached explanation of extended megatec protocol
this UPS use as far as i was able to analyze. (other UPS's from this
manufacturer and other manufacturers might also be using this
protocol). AFAIK currently there is no official nut driver supporting
this protocol. I would be very happy if this information helps nut
users and developement of nut. I would appreciate your comments.
Thanks for your consideration.
Best wishes to all
Said K?K?AM
-------------- next part --------------
Extended megatec protocol
[CMD] [RESPONSE]
*UPS information (Mfg, Model, FW)
[I] # HV 1K 00001903
*UPS ratings (Voltage, Current, Nominal BattVolt, Nominal frequency)
[F] #220.0 004 036.0 50.0
*UPS ratings (new)
[QRI] (220.0 004 036.0 50.0
*UPS status (input V, fault V, output V, load, output freq, batt current, UPS
temp, flags -> 8 bit)
[Q1] (209.7 209.7 219.7 019 50.0 2.32 23.3 00000001
*UPS status (input V, fault V, output V, load, output freq, batt voltage, UPS
temp, flags -> 8 bit)
[QS] (209.7 209.7 219.7 020 50.0 41.8 23.3 00000001
*UPS status (new) (in V, in F, out V, out F, out Current, load, unknown1,
unknown2, batt volt, unknown3, UPS temp, flags->12 bit)
[QGS] (209.7 50.0 219.7 50.0 000.8 019 374.9 374.3 041.8 ---.- 023.3
100000000001
*Battery status (Batt Volt, Nr of batt packs, Nr of batt packs in parallel,
%battery charge, expected runtime in minutes)
[QBV] (041.8 03 01 100 058
*Wide battery status ??? less battery less zeroes ???
[QWS] (0000000000000000000000000000000000000000000000000000000000000000
*UPS serial number
[QID] (83120911100735
*UPS firmware revision
[QVFW] (VERFW:00019.03
*UPS option flags (letters following E are enabled, letters following D are
disabled)
[QFLAG] (EpbshcDrovegfjl
*What is this ?
[QMD] (############G1K ###1000 80 1/1 220 220 03 12.0
*Programmable outlet status (if on response is '1', if off response is
'0')
[QSK1] (1
*UPS mode (if on battery it is 'B', on AC power it is 'L')
[QMOD] (L
*Toggle beeper (obsolote command, not supported)
[Q] (NAK (response is NAK => This command is rejected)
*Beeper off (works only when beeper is buzzing)
[BZOFF] (ACK (if UPS is on AC power response is NAK)
*Beeper on
[BZON] (ACK
*Turn off the load
[SOFF] (ACK
*Turn on the load
[SON] (ACK
*Test battery
[T01] (ACK (Test for 1 min)
*Test battery deep ?
[TL] (ACK
*Cancel test
[CT] (ACK (if test is in progress response is ACK else NAK)
*Shutdown
[S01] (ACK (Shutdown 1 min later)
*Shutdown and restart
[S01R0001] (ACK (Shutdown 1 min later and restart 1 min from shutdown)
*Cancel shutdown
[CS] (ACK
*Disable beeper while on battery
[PDB] (ACK
*Enable beeper while on battery
[PEE] (ACK
*Disable beeper while on bypass
[PDP] (ACK
*Enable beeper while on bypass
[PEP] (ACK
*Disable bypass when off
[PDO] (ACK
*Enable bypass when off
[PEO] (ACK
*Disable auto reboot
[PDR] (ACK
*Enable auto reboot
[PER] (ACK
*Disable eco mode (Eco mode bypasses when input voltages are within adjusted
voltage range)
[PDE] (ACK
*Enable eco mode
[PEE] (ACK
*Disable bypass when UPS is off
[PDO] (ACK
*Enable bypass when UPS is off
[PEO] (ACK
*Disable cold start
[PDC] (ACK
*Enable cold start
[PEC] (ACK
*Disable converter mode (Frequency converter mode)
[PDV] (ACK
*Enable converter mode
[PEV] (NAK (probably)
*Disable deep discharge protection
[PDS] (ACK
*Enable deep discharge protection
[PES] (ACK
*Disable bypass not allowed
[PDF] (ACK
*Enable bypass not allowed
[PEF] (ACK
*Disable site fault detection
[PDL] (ACK
*Enable site fault detection
[PEL] (ACK
*Disable programmable outlet control on battery mode
[PDJ] (ACK
*Enable programmable outlet control on battery mode
[PEJ] (ACK
Option Flags
'b' "beep_on_battery"
'p' "beep_on_bypass"
'o' "bypass_when_off"
'e' "eco_mode"
'r' "auto_reboot"
'c' "cold_start"
'v' "converter_mode"
's' "deep_discharge_protection"
'f' "bypass_not_allowed"
'l' "site_fault_detection"
'j' "programmable_outlet_control_on_battery_mode"
'g' "???unknown???"
'h' "???unknown???"
**Things not yet known**
Howto program the programmable outlet to shut down in set minutes while in
battery mode
Howto set eco mode accepted voltage levels
Howto set frequency converter frequencies
***Things not yet noticed***
Many things...
-------------- next part --------------
[upsc output with megatec driver]
battery.charge: 100.0
battery.voltage: 2.32
battery.voltage.nominal: 36.0
driver.name: megatec
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.4.1
driver.version.internal: 1.6
input.frequency: 50.0
input.frequency.nominal: 50.0
input.voltage: 214.4
input.voltage.fault: 214.4
input.voltage.maximum: 214.5
input.voltage.minimum: 213.9
input.voltage.nominal: 220.0
output.voltage: 219.8
ups.beeper.status: enabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.load: 20.0
ups.mfr:
ups.model: HV 1K 00001903
ups.serial: unknown
ups.status: OL
ups.temperature: 23.3
ups.type: online
[upsc output with modified megatec driver (newtech.c)]
battery.charge: 99.0
battery.voltage: 41.80
battery.voltage.nominal: 36.0
driver.name: newtech
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.4.1
driver.version.internal: 0.10
input.frequency: 50.0
input.frequency.nominal: 50.0
input.voltage: 213.9
input.voltage.maximum: 213.9
input.voltage.minimum: 213.9
input.voltage.nominal: 220.0
options.auto_reboot: disabled
options.beep_on_battery: enabled
options.beep_on_bypass: enabled
options.bypass_not_allowed: disabled
options.bypass_when_off: disabled
options.cold_start: enabled
options.converter_mode: disabled
options.deep_discharge_protection: enabled
options.eco_mode: disabled
options.programmable_outlet: enabled
options.programmable_outlet_control_on_battery_mode: disabled
options.site_fault_detection: disabled
output.current: 1.0
output.frequency: 50.0
output.voltage: 219.8
ups.beeper.status: enabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.firmware: 00019.03
ups.load: 21.0
ups.mfr:
ups.model: HV 1K 00001903
ups.serial: 83120911100735
ups.status: OL
ups.temperature: 23.3
ups.type: online
[upsc output with blazer_ser]
battery.voltage: 41.76
battery.voltage.nominal: 36.0
beeper.status: enabled
driver.name: blazer_ser
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.4.1
driver.version.internal: 1.51
input.current.nominal: 4.0
input.frequency: 50.0
input.frequency.nominal: 50
input.voltage: 214.5
input.voltage.fault: 214.5
input.voltage.nominal: 220
output.voltage: 219.8
ups.delay.shutdown: 30
ups.delay.start: 180
ups.firmware: 00001903
ups.load: 20
ups.mfg:
ups.model: HV 1K
ups.status: OL
ups.temperature: 23.3
ups.type: online
[upsc output with blazer_usb]
battery.voltage: 41.76
battery.voltage.nominal: 36.0
beeper.status: enabled
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.1
driver.version.internal: 0.03
input.current.nominal: 4.0
input.frequency: 50.0
input.frequency.nominal: 50
input.voltage: 214.4
input.voltage.fault: 214.4
input.voltage.nominal: 220
output.voltage: 219.8
ups.delay.shutdown: 30
ups.delay.start: 180
ups.firmware: 00001903
ups.load: 19
ups.mfg:
ups.model: HV 1K
ups.productid: 5161
ups.status: OL
ups.temperature: 23.3
ups.type: online
ups.vendorid: 0665
Arjen de Korte
2010-Feb-08 09:48 UTC
[Nut-upsuser] megatec and blazer drivers for (brand)Tuncmatik (series)Newtech Pro 1KVA
Citeren Said K?K?AM <skokcam op googlemail.com>:> I would like to report that Tuncmatik Newtech Pro 1 KVA > (http://www.tuncmatik.com/en-US/productDetail.asp?RecID=290) works > with nut(2.4.1) blazer_usb, blazer_ser and megatec drivers.That's good to know. We'll add them to the list of supported devices. Thanks for letting us know.> Perhaps other models from this manufacturer may also work with these > drivers. I attached a copy of upsc outputs of these drivers and output > of an experimental modified megatec driver supporting more features of > this UPS. I also attached explanation of extended megatec protocol > this UPS use as far as i was able to analyze. (other UPS's from this > manufacturer and other manufacturers might also be using this > protocol). AFAIK currently there is no official nut driver supporting > this protocol. I would be very happy if this information helps nut > users and developement of nut. I would appreciate your comments.Despite your efforts, I'm reluctant to add these changes to the drivers. The reason is two-fold: 1) The added functionality doesn't seem to be vital for *monitoring* of the UPS, but instead are things that may need configuration once (and not changing on a regular basis). 2) The added functions are not core Megatec/Q1 protocol compliant. The second part is what worries me most. There are numerous extensions to the Megatec/Q1 protocol from various sources. Sadly, many vendors (and Tuncmatic is no exception here) do this in a way that violates the protocol (the ACK and NAK responses for instance). Worse, some devices will not accept extended queries/commands and instead will lock up solid if you try them. This means that adding them for the benefit of Tuncmatic owners, may render these drivers useless for others. I'm not convinced that the added value justifies this risk. Best regards, Arjen -- Please keep list traffic on the list