2010/3/14 IT Department ULQS <it at quality.ua>:>
> I try send this email to 'carlos.efr at mail.telepac.pt' but:
> Fri 2010-03-12 19:26:13: <-- 550-The account has been suspended
> Fri 2010-03-12 19:26:13: <-- 550 A conta do destinatario encontra-se
> suspensa (#5.1.1)
right, Carlos is retired from the NUT team.
moreover the megatec and megatec_usb driver are obsolete, and replaced
by blazer and blazer_usb.
please, try blazer for further testing.
and switch to NUT 2.4.3.
> I hope you process the results of my work.
>
>
> My UPS ?Sinapse MSII6000? used megatec protocol on COM-port.
> http://sinapse.ua/product/ups_sinapse/Sinapse/Sinapse_9103?cs_lang=ru
> After some tunning it working with NUT.
> ________________________________________
>
> Value:
> ? ? ? ?READ_PACE ? ?300000 ?/* interval to wait between sending a command
> and reading the response (usec) */
> to small for me and driver work not perfectly with my ups (frequently Q1
=>
> FAILED [short read] or other error)
>
> Especially is clearly seen in Check sub-procedure: ? ? ?/* Check for a
> compatible UPS and for a reliable connection... */ with 5 frequently
> request.
>
> I set it to 600000 usec and my problem go.
>
> May be put ? READ_PACE ? ?to config file ? It's best improvement.
> __________________________________________
>
> After this lines:
> ? ? ? ?upsdebugx(1, "Cancelling any pending shutdown or battery
test.");
> ? ? ? ?ser_send_pace(upsfd, send_pace, "C%c", ENDCHAR);
> need pause (READ_PACE for example) for UPS execute command. My UPS stupid
> after 'C' and not accept immediately next command on
'upsdrv_initinfo'
> procedure.
> I strongly recommend to add its.
> ________________________________________________
>
> I think line:
>
> send_pace = CLAMP(atoi(getval("sendpace")), 1, 1000) * 1000;
> need replaced by
> send_pace = CLAMP(atoi(getval("sendpace")), 0, 1000) * 1000;
>
> Why limiting minimal value to 1 millisecond ? I recommend to allow set
> 'send_pace' to ZERO if set ' sendpace=0' in config file
'ups.conf'.
>
> For Example i test NUT in guest OS in virtual mashine with attached
> COM-port, and only after i set 'send_pace' to ZERO in driver source
code,
> driver start working with my UPS. With ZERO 'send_pace' it work
fine.
> ________________________________________________
>
> And at the end - part of my config (ups.conf), needed for correct working
> and displayed data with my UPS.
>
> [sinapse]
> ? ? ? ?driver = megatec
> ? ? ? ?port = /dev/ttyu0
> ? ? ? ?desc = "Sinapse 6000"
> ? ? ? ?sendpace=10 ? ? ? ? ? ? # or less, but not more 10
> ? ? ? ?battvoltmult=108 ? ? ? ?# for same as on LCD-display on UPS device
> ? ? ? ?battvolts=1.90:2.2400
> _____________________________________________________
>
> RESULTS:
>
> proxy# ./megatec -DDD -a sinapse
> Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
> debug level is '3'
> DTR=1, RTS=0
> Default command send pace is 100000 usec.
> Parameter [sendpace]: [0]
> Command send pace changed to 10000 usec.
> Starting UPS detection process...
> Asking for UPS information [I]...
> I => OK [#Sinapse ? ? ? ? MS II ? ? ?MS3006AG ?]
> I VALUES => [Sinapse MS II MS3006AG]
> Asking for UPS status [Q1]...
> Q1 => OK [(212.0 190.0 230.9 018 49.9 2.24 37.0 00000001]
> Q1 VALUES => [212.0 190.0 230.9 18.0 49.9 2.2 37.0 00000001]
> Asking for UPS status [Q1]...
> Q1 => OK [(212.0 190.0 230.9 018 49.9 2.24 37.0 00000001]
> Q1 VALUES => [212.0 190.0 230.9 18.0 49.9 2.2 37.0 00000001]
> Asking for UPS status [Q1]...
> Q1 => OK [(212.0 190.0 230.8 018 49.9 2.24 37.0 00000001]
> Q1 VALUES => [212.0 190.0 230.8 18.0 49.9 2.2 37.0 00000001]
> Asking for UPS status [Q1]...
> Q1 => OK [(212.1 190.0 230.9 018 49.9 2.24 37.0 00000001]
> Q1 VALUES => [212.1 190.0 230.9 18.0 49.9 2.2 37.0 00000001]
> Asking for UPS status [Q1]...
> Q1 => OK [(212.1 190.0 230.9 018 49.9 2.24 37.0 00000001]
> Q1 VALUES => [212.1 190.0 230.9 18.0 49.9 2.2 37.0 00000001]
> 0 out of 5 detection attempts failed (minimum failures: 2).
> Cancelling any pending shutdown or battery test.
> Asking for UPS information [I]...
> I => OK [#Sinapse ? ? ? ? MS II ? ? ?MS3006AG ?]
> I VALUES => [Sinapse MS II MS3006AG]
> Megatec protocol UPS detected [Sinapse MS II MS3006AG].
> Parameter [ignoreoff]: [false]
> Asking for UPS power ratings [F]...
> F => OK [#230.0 026 240.0 50.0]
> F VALUES => [230.0 26.0 240.0 50.0]
> Unsupported battery voltage (240.0V).
> This UPS has an unsupported combination of battery voltage/number of
> batteries.
> Parameter [battvoltmult]: [108]
> The battery voltage reported by the UPS will be multiplied by 108.0.
> Parameter [battvolts]: [1.90:2.2400]
> Overriding battery voltage interval [1.9V, 2.2V].
> Done setting up the UPS.
> Asking for UPS status [Q1]...
> Q1 => OK [(211.7 190.0 230.8 019 49.9 2.24 37.0 00000001]
> Q1 VALUES => [211.7 190.0 230.8 19.0 49.9 2.2 37.0 00000001]
> Calculated battery charge: 100.0%
> _________________________________________________
>
>
> SORRY for my English.
> I wanted to write this letter :)
> And answer me if my letter useful.
once more, try blazer with NUT 2.4.3, and tell us back how it works.
cheers,
Arnaud