Menu

#5 BZ2200BI-BR com STATUS em branco e sem alarme

2.0
open
nobody
None
2021-01-21
2020-09-12
carlos
No

Olá pessoal,

Primeiramente muito obrigado pelo projeto.
Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao daria para se comunicar com ele.

Gostaria de saber se alguem pudesse me ajudar em três problemas.
1) Nao aparece nada no campo STATUS
2) O comando /sbin/apctest -d 100 fica parado aqui.
3) Outros scripts nao executam. commok offbattery...etc

Infos:

CentOS 7.7
Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
apcctrl-0.8.21.tar.gz
/dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
> APC      : 001,018,0443
> DATE     : 2020-09-12 14:47:45 -0400
> HOSTNAME : apcups
> VERSION  : 0.8.21 (May 10 2019) redhat
> UPSNAME  : myups
> CABLE    : Custom Cable Simple
> DRIVER   : BRAZIL UPS Driver
> UPSMODE  : Stand Alone
> STARTTIME: 2020-09-12 14:47:26 -0400
> STATUS   :
> MBATTCHG : 25 Percent
> MINTIMEL : 10 Minutes
> MAXTIME  : 0 Seconds
> NUMXFERS : 0
> TONBATT  : 0 Seconds
> CUMONBATT: 0 Seconds
> XOFFBATT : N/A
> STATFLAG : 0x05000000
> END APC  : 2020-09-12 14:55:24 -0400

2) O comando /sbin/apctest -d 100 fica parado aqui.

[root@apcups apcctrl]# /sbin/apctest -d 100

2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
Checking configuration ...
0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
0.000 apcctrl: drivers.c:119 Looking for driver: brazil
0.000 apcctrl: drivers.c:123 Driver dumb is configured.
0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
0.000 apcctrl: drivers.c:123 Driver net is configured.
0.000 apcctrl: drivers.c:123 Driver usb is configured.
0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
0.000 apcctrl: drivers.c:123 Driver brazil is configured.
0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
0.000 apcctrl: drivers.c:146 Attached to driver: brazil
sharenet.type = Network & ShareUPS Disabled
cable.type = Custom Cable Simple
mode.type = BRAZIL UPS Driver
Setting up the port ...
1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
1.388 apcctrl: brazildriver.c:136 Definindo a newtio
1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
1.388 apcctrl: brazildriver.c:166 Segundo tcflush
3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents = false

Related

Tickets: #5

Discussion

  • carlos

    carlos - 2020-09-12

    Acabei de ver que dava para aumentar o debug.

     
    • Wagner Popov dos Santos

      Carlos, boa tarde.

      Pode enviar um grande trecho de log com o debug em 200?

      Att,
      Wagner

      Em sáb, 2020-09-12 às 19:38 +0000, carlos escreveu:

      Acabei de ver que dava para aumentar o debug.

      Attachments:


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Sat Sep 12, 2020 07:00 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi
      que nao daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC
      2019 x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific
      model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents
      = false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

  • carlos

    carlos - 2020-09-13

    Ola @wpopov ! Obrigado pela resposta.

    No momento fiz 2 testes.
    O Centos7 está numa VM dentro do ESXI 6.7 com USB passthrough.
    Nao deveria ter problemas mas só pra validar estou fazendo o mesmo teste num raspberry também. Os dois aprensentam o mesmo problema.
    rpi uname -a
    Linux raspberrypi 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux

    Os dois com
    /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.

    Estou enviando 2 logs em anexo.
    centos.log
    rpi.log

     
    • Wagner Popov dos Santos

      Carlos, fiz uma análise superficial no log que você enviou. Tudo indica que o protocolo de comunicação é o mesmo que já era usado no modelo 2200bi-br, mas aparentemente existe alguma variação no código de identificação que eu desconhecia. A APC usa os códigos de identificação para diferenciar os vários modelos.

      Criei uma branch no repositorio git e peço que você teste ela. O comportamento esperado é que o nobreak será identificado mas os níveis de tensão podem ficar fora do esperado. Isso não causará nenhum problema porque o apcctrl não tem a capacidade de executar absolutamente nada que possa ser danoso. O máximo que pode acontecer em algum momento é o software iniciar o processo de shutdown por considerar que a baterias estão com a carga baixa.

      O nome da branch no repositório git é bz2200bi-br_code_191.

      Passos básicos para baixar a branch:
      git clone ssh://wpopov@git.code.sf.net/p/apcctrl/git apcctrl-git
      git checkout bz2200bi-br_code_191

       
  • carlos

    carlos - 2020-09-13

    Interessante é que assim q eu removo o USB ele dá o aviso.

    Broadcast message from root@apcups (Sun Sep 13 08:20:52 2020):
    
    Warning communications lost with UPS myups
    
     
  • carlos

    carlos - 2020-09-13

    @wpopov funcionou!!
    Muito obrigado pelo suporte super rapido!!

    2020-09-13 11:56:37 apctest 0.8.21 (May 10 2019) debian
    Checking configuration ...
    sharenet.type = Network & ShareUPS Disabled
    cable.type = Custom Cable Simple
    mode.type = BRAZIL UPS Driver
    Setting up the port ...
    Doing prep_device() ...
    
    You are using a APC Brazil type, so I'm entering BRAZIL test mode
    Hello, this is the apcctrl Cable Test program.
    This part of apctest is for testing APC-Microsol Brazil.
    Please select the function you want to perform.
    
    1) Query the UPS for all known values
    2) Query for last events
    3) Query the internal UPS clock and scheduler
    4) Schedule the UPS to shutdown in 1 minutes and restart 1 minute later.
    5) Cancel Schedule. Do not shutdown or start
    6) Test set input turn off
    7) Test set input Turn on
    8) Test battery health
    9) Generate data of timeleft functions
    Q) Quit
    
    Select function number: 1
    
    MODEL NAME:             APC Brazil BackUPS 2200 (code 191)
    LINE VOLTAGE:           139.2 V
    LINE NOMINAL:           115 V
    LINE FREQUENCY:         60.0 Hz
    LOAD ACT POWER:         3.6 %
    LOAD TOTAL POWER:       0.3 %
    OUT VOLTAGE:            10.4 V
    OUT VOLTAGE NOM:        115 V
    OUT CURRENT:            0.5 A
    OUT ACT POWER:          49.4 W
    OUT ACT POWER NOM:      1360.0 W
    OUT TOTAL POWER:        05.6 VA
    OUT TOTAL POWER NOM:    2200.0 VA
    BATTERY VOLTAGE:        26.5 V
    BATTERY VOLTAGE NOM:    24.0 V
    BATTERY CURRENT NOM:    14.0 A
    TEMPERATURE:            0.0 oC
    TIMELEFT ESTIMATE:      29.7 minutes
    FLAG LINE 220V:         false
    FLAG BATTERY CHARGING:  false
    FLAG BATTERY CRITICAL:  false
    FLAG LINE ON:           true
    FLAG OUT ON:            true
    FLAG OVERLOAD:          false
    

    Posso confiar nesses valores de OUT ACT POWER e OUT CURRENT?
    Eu sei que os valores não são precisos mas posso utilizá-los como parametro que pelo menos está aumentando ou diminuindo certo?

    Mais uma vez muito obrigado pela ajuda.

     
    • Wagner Popov dos Santos

      Carlos, quando você executou os teste habita alguma carga conectada no
      nobreak?

      O log parece indicar que não havia nada conectado.

      Esses valores de potência de saída são muito importantes para o cálculo da
      autonomia. Por isso, eles precisam ser corrigidos.

      Se possível, tente executar o teste de bateria do apctest

      T+
      Wagner

      Em dom, 13 de set de 2020 12:00, carlos agunicat@users.sourceforge.net
      escreveu:

      @wpopov funcionou!!
      Muito obrigado pelo suporte super rapido!!

      ```
      2020-09-13 11:56:37 apctest 0.8.21 (May 10 2019) debian
      Checking configuration ...
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      Doing prep_device() ...

      You are using a APC Brazil type, so I'm entering BRAZIL test mode
      Hello, this is the apcctrl Cable Test program.
      This part of apctest is for testing APC-Microsol Brazil.
      Please select the function you want to perform.

      1) Query the UPS for all known values
      2) Query for last events
      3) Query the internal UPS clock and scheduler
      4) Schedule the UPS to shutdown in 1 minutes and restart 1 minute later.
      5) Cancel Schedule. Do not shutdown or start
      6) Test set input turn off
      7) Test set input Turn on
      8) Test battery health
      9) Generate data of timeleft functions
      Q) Quit

      Select function number: 1

      MODEL NAME: APC Brazil BackUPS 2200 (code 191)
      LINE VOLTAGE: 139.2 V
      LINE NOMINAL: 115 V
      LINE FREQUENCY: 60.0 Hz
      LOAD ACT POWER: 3.6 %
      LOAD TOTAL POWER: 0.3 %
      OUT VOLTAGE: 10.4 V
      OUT VOLTAGE NOM: 115 V
      OUT CURRENT: 0.5 A
      OUT ACT POWER: 49.4 W
      OUT ACT POWER NOM: 1360.0 W
      OUT TOTAL POWER: 05.6 VA
      OUT TOTAL POWER NOM: 2200.0 VA
      BATTERY VOLTAGE: 26.5 V
      BATTERY VOLTAGE NOM: 24.0 V
      BATTERY CURRENT NOM: 14.0 A
      TEMPERATURE: 0.0 oC
      TIMELEFT ESTIMATE: 29.7 minutes
      FLAG LINE 220V: false
      FLAG BATTERY CHARGING: false
      FLAG BATTERY CRITICAL: false
      FLAG LINE ON: true
      FLAG OUT ON: true
      FLAG OVERLOAD: false
      ```

      Posso confiar nesses valores de OUT ACT POWER e OUT CURRENT?
      Eu sei que os valores não são precisos mas posso utilizá-los como
      parametro que pelo menos está aumentando ou diminuindo certo?

      Mais uma vez muito obrigado pela ajuda.


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Sun Sep 13, 2020 01:31 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao
      daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019
      x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents =
      false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

  • carlos

    carlos - 2020-09-14

    Ola @wpopov

    Se nao me engano nao havia nada.
    Para executar o teste eu preciso deixar alguma coisa conectada?
    Estranho estava fazendo uns testes de desligamento etc. e os únicos valores que mudam sao:
    BATTV BCHARGE TIMELEFT e TIMEONBATT.

    O BCHARGE só vai de 0 -> 50 -> 100.
    Mesmo com TIMEONBATT 0 -> 15 -> 30.

    Deixei um ventilador USB e uma IP CAM conectados e vou fazer o teste.
    Seria esse certo?
    8) Test battery health

    Obrigado.
    C.

     
  • carlos

    carlos - 2020-09-14

    Falei errado.
    Seria TIMELEFT 0 -> 15 -> 30.

    Acabei de ver..

    Atenção!!! Você não deve variar a carga no nobreak durante o teste. Você quer
    continuar?
    

    Vou recomeçar o teste.

     
  • carlos

    carlos - 2020-09-14

    Me tira uma dúvida por favor.
    Eu iniciei os testes com devices consumindo nas tomadas (ventilador USB girando por exemplo).
    Mas depois que começou o teste ele desligou as tomadas.
    Agora está em andamento mas como as tomadas estão desligadas acho que nunca vai sair de 100% certo?

      5491; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5492; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5493; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5494; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5495; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5496; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5498; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5499; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5500; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5501; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5502; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5503; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5504; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5505; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5506; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5507; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5508; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5509; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5510; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
      5512; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min
    
     
    • Wagner Popov dos Santos

      Carlos, isso é muito estranho. O teste do deveria desligar a entrada do
      nobreak. O teste desconecta automaticamente o nobreak da rede elétrica e
      reconecta automaticamente.

      Se ele estiver conectado na rede elétrica ele nunca vai sair de 100%.

      Agora, se ele estivesse desconectado da rede elétrica ele deveria consumir
      a bateria MESMO "sem" carga porque o circuito de chaveamento e o
      transformador não são perfeitos e eles vão consumir, pelo menos, uns 15% da
      potência máxima.

      Pelo visto o seu modelo vai exigir um trabalho maior de investigação.

      Vou pensar em um teste para testar se os comandos de desligamento são
      diferentes.

      O protocolo APC americano antigo permitia alterar a tensão e o do seu
      nobreak não permite. Por isso não há risco nesses testes.

      Em seg, 14 de set de 2020 11:59, carlos agunicat@users.sourceforge.net
      escreveu:

      Me tira uma dúvida por favor.
      Eu iniciei os testes com devices consumindo nas tomadas (ventilador USB
      girando por exemplo).
      Mas depois que começou o teste ele desligou as tomadas.
      Agora está em andamento mas como as tomadas estão desligadas acho que
      nunca vai sair de 100% certo?
      5491; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5492; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5493; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5494; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5495; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5496; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5498; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5499; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5500; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5501; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5502; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5503; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5504; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5505; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5506; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5507; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5508; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5509; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5510; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min 5512; Carga: 100.0%; Tensão: 25.00V; Out Power: 49.2W; Autonomia: 260.7 min


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Mon Sep 14, 2020 12:16 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao
      daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019
      x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents =
      false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

  • carlos

    carlos - 2020-09-14

    O nobreak está conectado à rede elétrica.
    Mas pelo que entendi o teste desconectaria e conectaria automaticamente isso? Deveria tirar?
    Esse comportamento eu "acho" que se deve ao fato que o nobreak não está mostrando os valores do BCHARGE entre 0-50-100.
    Tem uma foto do grafana que postei lá em cima e ele mostra indo de 50% pra 100% assim que, acredito eu, ele bateu 100%.
    ou seja agora a Carga deve estar abaixo de 100% mas vai mostrar 100% até chegar em 50%.
    Faz sentido?
    Se precisar de alguma informação adicional pode perguntar. Vou tentar providenciar.
    Muito obrigado pela ajuda.

     
    • Wagner Popov dos Santos

      Essa questão de 50% e 100% é normal. Deus eu explico.

      Você não precisa desconectar da rede elétrica. O teste deveria desconectar
      sozinho

      Em seg, 14 de set de 2020 12:26, carlos agunicat@users.sourceforge.net
      escreveu:

      O nobreak está conectado à rede elétrica.
      Mas pelo que entendi o teste desconectaria e conectaria automaticamente
      isso? Deveria tirar?
      Esse comportamento eu "acho" que se deve ao fato que o nobreak não está
      mostrando os valores do BCHARGE entre 0-50-100.
      Tem uma foto do grafana que postei lá em cima e ele mostra indo de 50% pra
      100% assim que, acredito eu, ele bateu 100%.
      ou seja agora a Carga deve estar abaixo de 100% mas vai mostrar 100% até
      chegar em 50%.
      Faz sentido?
      Se precisar de alguma informação adicional pode perguntar. Vou tentar
      providenciar.
      Muito obrigado pela ajuda.


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Mon Sep 14, 2020 02:59 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao
      daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019
      x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents =
      false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

    • Wagner Popov dos Santos

      Em relação ao bcharger ocorre porque o nobreak o nobreak informa que está
      carregando a bateria. Mas ele não informa qual a intensidade da corrente de
      carregamento e a tensão da bateria quando o nobreak está conectado a rede
      elétrica é na verdade a tensão do carregador de bateria e não a tensão da
      bateria. Ou seja, o bcharger é informado que está em 50% como uma forma de
      reportar que a bateria não está completamente carregada. Só seria possível
      informar um valor mais correto se o apcctrl monitorar a última carga da
      bateria sem conexão elétrica. Por exemplo: O nobreak estava funcionando com
      as baterias e a carga atingiu 80% e então a rede elétrica voltou a
      alimentar. Nesse ponto, a bateria estaria sendo carregada, mas poderíamos
      presumir que a carga da bateria seria de pelo menos 80%. Mas essa
      funcionalidade não foi implementada.

      Em seg, 14 de set de 2020 12:26, carlos agunicat@users.sourceforge.net
      escreveu:

      O nobreak está conectado à rede elétrica.
      Mas pelo que entendi o teste desconectaria e conectaria automaticamente
      isso? Deveria tirar?
      Esse comportamento eu "acho" que se deve ao fato que o nobreak não está
      mostrando os valores do BCHARGE entre 0-50-100.
      Tem uma foto do grafana que postei lá em cima e ele mostra indo de 50% pra
      100% assim que, acredito eu, ele bateu 100%.
      ou seja agora a Carga deve estar abaixo de 100% mas vai mostrar 100% até
      chegar em 50%.
      Faz sentido?
      Se precisar de alguma informação adicional pode perguntar. Vou tentar
      providenciar.
      Muito obrigado pela ajuda.


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Mon Sep 14, 2020 02:59 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao
      daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019
      x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents =
      false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

  • carlos

    carlos - 2020-09-14

    Entendi obrigado pela explicação.
    Nao sei o que aconteceu mas agora parece que está indo!

     1642; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.0W; Autonomia: 189.4 min
      1643; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.1W; Autonomia: 189.1 min
      1644; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.1W; Autonomia: 188.7 min
      1645; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.2W; Autonomia: 188.4 min
      1647; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.3W; Autonomia: 187.9 min
      1648; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.4W; Autonomia: 187.4 min
      1649; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.5W; Autonomia: 187.0 min
      1650; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.5W; Autonomia: 187.0 min
      1651; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.5W; Autonomia: 187.0 min
      1652; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.5W; Autonomia: 186.5 min
      1653; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.6W; Autonomia: 186.4 min
      1654; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.5W; Autonomia: 186.8 min
      1655; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.4W; Autonomia: 187.2 min
      1656; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.4W; Autonomia: 187.5 min
      1657; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.3W; Autonomia: 188.0 min
      1658; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.2W; Autonomia: 188.2 min
      1659; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.2W; Autonomia: 188.6 min
      1661; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.1W; Autonomia: 189.0 min
      1662; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.0W; Autonomia: 189.3 min
      1663; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.0W; Autonomia: 189.6 min
      1664; Carga: 81.8%; Tensão: 24.55V; Out Power: 53.0W; Autonomia: 189.8 min
      1665; Carga: 81.8%; Tensão: 24.55V; Out Power: 52.9W; Autonomia:
    
     
  • carlos

    carlos - 2020-09-15

    Estava indo tudo bem até a carga 81.8%

      6113; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.3W; Autonomia: 144.9 min
      6114; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.2W; Autonomia: 145.3 min
      6115; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.1W; Autonomia: 145.9 min
      6116; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.0W; Autonomia: 146.1 min
      6138; Carga: 64.8%; Tensão: 24.28V; Out Power: 52.6W; Autonomia: 151.9 min
      6157; Carga: 66.6%; Tensão: 24.31V; Out Power: 52.3W; Autonomia: 157.5 min
      6158; Carga: 68.3%; Tensão: 24.34V; Out Power: 51.8W; Autonomia: 164.2 min
      6159; Carga: 70.2%; Tensão: 24.37V; Out Power: 51.5W; Autonomia: 170.4 min
      6160; Carga: 72.0%; Tensão: 24.40V; Out Power: 51.1W; Autonomia: 176.9 min
      6161; Carga: 73.9%; Tensão: 24.43V; Out Power: 50.7W; Autonomia: 183.7 min
      6162; Carga: 75.8%; Tensão: 24.46V; Out Power: 50.3W; Autonomia: 191.2 min
      6164; Carga: 77.8%; Tensão: 24.49V; Out Power: 49.9W; Autonomia: 198.4 min
      6165; Carga: 79.7%; Tensão: 24.52V; Out Power: 49.5W; Autonomia: 205.8 min
      6166; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6167; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6168; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6169; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6170; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6171; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6172; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6173; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6174; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      6175; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
    

    muito tempo depois continua assim

       10571; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10572; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10573; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10574; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10575; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10576; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10577; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10578; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10579; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10580; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10581; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10582; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10583; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10585; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10586; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      10587; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
    
     
    • Wagner Popov dos Santos

      Carlos,

      A maior parte dos paramentos que o nobreak envia estão contidos dentro de
      um único byte e é preciso utilizar um valor de offset e uma taxa para
      converter o valor.

      Por exemplo:
      A tensão que você lê na bateria é calculada +- assim:

      Tensão = 20 + byte * 0,05

      Observe que a tensão nunca vai ficar abaixo de 20V e nunca maior que 32,75V.

      Se essas constantes não estiverem corretas o valor que o software vai te
      informar podem estar completamente errados...

      Melhor você deixar o nobreak carregando e não executar mais testes.

      Você consegue me passar todo o log de todo o teste? Ele é útil para achar
      os valores dessas constantes.

      Em seg, 14 de set de 2020 22:47, carlos agunicat@users.sourceforge.net
      escreveu:

      Estava indo tudo bem até a carga 81.8%
      6113; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.3W; Autonomia: 144.9 min 6114; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.2W; Autonomia: 145.3 min 6115; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.1W; Autonomia: 145.9 min 6116; Carga: 63.1%; Tensão: 24.25V; Out Power: 53.0W; Autonomia: 146.1 min 6138; Carga: 64.8%; Tensão: 24.28V; Out Power: 52.6W; Autonomia: 151.9 min 6157; Carga: 66.6%; Tensão: 24.31V; Out Power: 52.3W; Autonomia: 157.5 min 6158; Carga: 68.3%; Tensão: 24.34V; Out Power: 51.8W; Autonomia: 164.2 min 6159; Carga: 70.2%; Tensão: 24.37V; Out Power: 51.5W; Autonomia: 170.4 min 6160; Carga: 72.0%; Tensão: 24.40V; Out Power: 51.1W; Autonomia: 176.9 min 6161; Carga: 73.9%; Tensão: 24.43V; Out Power: 50.7W; Autonomia: 183.7 min 6162; Carga: 75.8%; Tensão: 24.46V; Out Power: 50.3W; Autonomia: 191.2 min 6164; Carga: 77.8%; Tensão: 24.49V; Out Power: 49.9W; Autonomia: 198.4 min 6165; Carga: 79.7%; Tensão: 24.52V; Out Power: 49.5W; Autonomia: 205.8 min 6166; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6167; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6168; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6169; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6170; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6171; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6172; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6173; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6174; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 6175; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min
      muito tempo depois continua assim
      10571; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10572; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10573; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10574; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10575; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10576; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10577; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10578; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10579; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10580; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10581; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10582; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10583; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10585; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10586; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min 10587; Carga: 81.8%; Tensão: 24.55V; Out Power: 49.2W; Autonomia: 213.2 min


      [tickets:#5] BZ2200BI-BR com STATUS em branco e sem alarme

      Status: open
      Milestone: 2.0
      Created: Sat Sep 12, 2020 07:00 PM UTC by carlos
      Last Updated: Mon Sep 14, 2020 11:19 PM UTC
      Owner: nobody

      Olá pessoal,

      Primeiramente muito obrigado pelo projeto.
      Esses nobreaks sao caro e sairia muito mais caro quando eu percebi que nao
      daria para se comunicar com ele.

      Gostaria de saber se alguem pudesse me ajudar em três problemas.
      1) Nao aparece nada no campo STATUS
      2) O comando /sbin/apctest -d 100 fica parado aqui.
      3) Outros scripts nao executam. commok offbattery...etc

      Infos:
      ~~~
      CentOS 7.7
      Linux apcups 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019
      x86_64 x86_64 x86_64 GNU/Linux
      apcctrl-0.8.21.tar.gz
      /dev/ttyACM0 - APC_BY_SCHNEIDER_ELECTRIC_APC_USB_SERIAL_CONVERTER.
      ~~~

      ~~~

      APC : 001,018,0443
      DATE : 2020-09-12 14:47:45 -0400
      HOSTNAME : apcups
      VERSION : 0.8.21 (May 10 2019) redhat
      UPSNAME : myups
      CABLE : Custom Cable Simple
      DRIVER : BRAZIL UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2020-09-12 14:47:26 -0400
      STATUS :
      MBATTCHG : 25 Percent
      MINTIMEL : 10 Minutes
      MAXTIME : 0 Seconds
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      END APC : 2020-09-12 14:55:24 -0400
      ~~~

      2) O comando /sbin/apctest -d 100 fica parado aqui.
      ~~~
      [root@apcups apcctrl]# /sbin/apctest -d 100

      2020-09-12 14:56:36 apctest 0.8.21 (May 10 2019) redhat
      Checking configuration ...
      0.000 apcctrl: newups.c:102 write_lock at drivers.c:117
      0.000 apcctrl: drivers.c:119 Looking for driver: brazil
      0.000 apcctrl: drivers.c:123 Driver dumb is configured.
      0.000 apcctrl: drivers.c:123 Driver apcsmart is configured.
      0.000 apcctrl: drivers.c:123 Driver net is configured.
      0.000 apcctrl: drivers.c:123 Driver usb is configured.
      0.000 apcctrl: drivers.c:123 Driver snmplite is configured.
      0.000 apcctrl: drivers.c:123 Driver brazil is configured.
      0.000 apcctrl: drivers.c:126 Driver brazil found and attached.
      0.000 apcctrl: newups.c:108 write_unlock at drivers.c:143
      0.000 apcctrl: drivers.c:145 Driver ptr=0x1a0e400
      0.000 apcctrl: drivers.c:146 Attached to driver: brazil
      sharenet.type = Network & ShareUPS Disabled
      cable.type = Custom Cable Simple
      mode.type = BRAZIL UPS Driver
      Setting up the port ...
      1.000 apcctrl: brazildriver.c:120 Opening port /dev/ttyACM0
      1.388 apcctrl: brazildriver.c:127 Chamando a função fcntl
      1.388 apcctrl: brazildriver.c:132 Carregando o oldtio
      1.388 apcctrl: brazildriver.c:136 Definindo a newtio
      1.388 apcctrl: brazildriver.c:160 Primeiro tcflush
      1.388 apcctrl: brazildriver.c:163 Setando a newtio na porta
      1.388 apcctrl: brazildriver.c:166 Segundo tcflush
      3.389 apcctrl: brazildriver.c:215 Setup UPS myups to load specific model.
      4.390 apcctrl: brazildriver.c:456 Lendo a porta USB/Serial. GetEvents =
      false
      ~~~


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/apcctrl/tickets/5/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       

      Related

      Tickets: #5

  • carlos

    carlos - 2020-09-15

    Ola @wpopov.

    Ok estou enviando todo o log do apctest
    apctest_all.log = apctest 2>&1 | tee apctest_all.log
    os outros sao os do programa.

    segue em anexo.
    Vou deixar ele quieto por ora. Ja cansei de ouvir o apito tambem rsrs

    Abs,
    C.

     
  • Thiago Pereira Ricciardi

    Olá Pessoal, tudo bem?

    Primeiramente agradeço muito o empenho e dedicação em criar essas extensões para o apcupsd, trabalho sensacional! Parabéns!

    Após dar uma olhada nos dados todos trocados aqui nesse ticket, consegui fazer o nobreak 2200VA funcionar com o apcctrl usando o branch específico, porém observa-se que os dados não batem (tenho um de 1500VA ligado na mesma linha).

    Gostariam que eu tirasse um log dos dados de ambos para podermos calibrar as equações? Como posso ajudar? Tenho experiência em programação, se me der um caminho posso tentar fazer um patch.

    Obrigado mais uma vez!

    Abraços!
    Thiago

     

Log in to post a comment.