SMS Brazil Protocols
====================
Using the PowerView (accompanying UPS application for Windows) as source,
there is a folder, called `protocols` inside the installed directory, e.g.
`"C:\Alerta24h\SMS_Power_View\resource"`. There are 4 protocol files
(`monofasico.xml`, `trifasico.xml`, `upsilon.xml` and `voltronic.xml`),
and one file called `verificaProtocolo.xml`.
The file `verificaProtocolo.xml` has serial/USB commands to be sent,
to detect the UPS device.
The file contents are:
.verificaProtocolo.xml
[source,xml]
----
QSG
isNobreakVoltronic
Resgata medidores e status do UPS
G1
isNobreakTrifasico
Detecta se o no-break é trifásico
I
isNobreakMonofasico
Detecta se o no-break é monofásico
Q1
isNobreakSinusTriad
Resgata medidores e status do UPS
----
In the `sms_ser.c` and `sms_ser.h` there is only the `monofasico.xml` implementation, because is describes my UPS and I can implement and validate it. But it is totally valid if someone has another SMS_Brazil UPS and wanted to include another protocol, you can send me an email (looking in the `sms_ser.h` source to get it).
Here is the `monofasico.xml` protocol:
.monofasico.xml
[source,xml]
----
Q
MedidoresEstado
Resgata medidores e status do UPS
Q
MedidoresEstadoDefault
Resgata um bean com os valores pré-definidos para os medidores e status do UPS
I
Informacoes
Resgata informações do UPS
I
InformacoesDefault
Resgata informações do UPS
The
F
Caracteristicas
Resgata características do UPS
F
CaracteristicasDefault
Resgata características default do UPS
M
MudaBeep
Muda o beep
L
TesteBateriaBaixa
Teste até bateria baixa
T
TestePorSegundos
Teste por 'n' segundos
S
ShutdownPorSegundos
Shutdown em n segundos
R
ShutdownRestore
Shutdown e restore
D
CancelarTeste
Cancelamento de Teste
C
CancelarShutdownRestore
Cancelamento de Shutdown ou restore
----