APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Issues related to hardware problems
jlgazoli
Posts: 35
Joined: 2012/04/10 01:09:16
Location: Brazil - SP

APC Driver - SGM Protocol - Future Technology Devices Intern

Post by jlgazoli » 2012/06/07 16:33:13

Hello all.
I have an APC UPS model, according to the manufacturer's website, the software uses AutoShutdown SGM and not PowerChute protocol. The package apcupsd does not recognize the uninterruptible power supply. Someone could point the way to find the correct driver for this communication?

The apcupsd configuration file could be causing the problem?

Thank you all.

manufacturer's website:
http://www.apc.com/resource/include/techspec_index.cfm?base_sku=BZ1200-BR&tab=software

[root@linuxserver UPS]# lsusb
[code]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
[/code]

#cat /var/log/apcupsd.events
[code]
2012-06-07 13:26:49 -0300 apcupsd FATAL ERROR in linux-usb.c at line 609
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
2012-06-07 13:26:49 -0300 apcupsd error shutdown completed
[/code]

[root@linuxserver UPS]# cat /etc/apcupsd/apcupsd.conf | grep -v "#"
[code]
UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 30
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 4
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
[/code]


[root@linuxserver UPS]# lsmod | grep usb
[code]
usbserial 31340 1 ftdi_sio
[/code]

jlgazoli
Posts: 35
Joined: 2012/04/10 01:09:16
Location: Brazil - SP

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by jlgazoli » 2012/06/07 16:54:52

Hello everybody.
Problem solved.
I made the following changes in the configuration file and it worked perfectly.
Excuse me for taking the time to you.
A great day.


[root@linuxserver UPS]# cat /etc/apcupsd/apcupsd.conf | grep -v "#"
[code]
# changed
# #######
UPSCABLE simple
UPSTYPE dumb
DEVICE /dev/ttyUSB0
# #################
POLLTIME 30
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 4
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
[/code]




[root@linuxserver UPS]# service apcupsd status
[code]
apcupsd (pid 9969) est? em execu??o...
APC : 001,018,0502
DATE : 2012-06-07 13:48:51 -0300
HOSTNAME : linuxserver.dominiolocal
VERSION : 3.14.10 (13 September 2011) redhat
UPSNAME : linuxserver.dominiolocal
CABLE : Custom Cable Simple
DRIVER : DUMB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2012-06-07 13:48:35 -0300
STATUS : ONLINE
MBATTCHG : 5 Percent
MINTIMEL : 4 Minutes
MAXTIME : 0 Seconds
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
STATFLAG : 0x07000008 Status Flag
END APC : 2012-06-07 13:51:04 -0300
[/code]

jlgazoli
Posts: 35
Joined: 2012/04/10 01:09:16
Location: Brazil - SP

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by jlgazoli » 2012/06/07 17:09:41

Hello again.
Despite having communicated the information is greatly reduced compared with other models PowerChute.
The CGI software did not work : (


[root@linuxserver UPS]# service apcupsd status
[code]
apcupsd (pid 14235) est? em execu??o...
APC : 001,018,0502
DATE : 2012-06-07 14:03:41 -0300
HOSTNAME : linuxserver.dominiolocal
VERSION : 3.14.10 (13 September 2011) redhat
UPSNAME : linuxserver.dominiolocal
CABLE : Custom Cable Simple
DRIVER : DUMB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2012-06-07 14:03:36 -0300
STATUS : ONLINE
MBATTCHG : 5 Percent
MINTIMEL : 4 Minutes
MAXTIME : 0 Seconds
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
STATFLAG : 0x07000008 Status Flag
END APC : 2012-06-07 14:03:41 -0300
[/code]

gpupo
Posts: 1
Joined: 2012/06/26 12:46:55
Contact:

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by gpupo » 2012/06/26 12:50:13

I have the same situation.
You managed to successfully configure your UPS?

salatiel
Posts: 2
Joined: 2013/04/12 18:15:35

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by salatiel » 2013/04/12 18:21:02

Well, its an old topic but maybe it can help someone else.

Unfortunately APC bought Brazilian Microsol and started to sell Microsol Models as APC. APCUPSd won't work with it.

I build a small python script that reads the data from the UPS every 30 seconds so it will know when it is in battery mode and take proper actions. If you need, contact me and i can send you. (e pode falar portugues mesmo)

Prisantos
Posts: 6
Joined: 2013/05/21 13:34:59
Location: Brasil - SP

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by Prisantos » 2013/05/23 12:12:46

Hi!

I bought the expensive APC Smart-UPS SUA1000-BR and now I have this big problem.


Thank you for any help!
Priscila.


"salatiel":
Gostaria muito de informa??es sobre a solu??o que voc? encontrou.
Como n?o consigo entrar em contato diretamente com voc?, por favor, entre em contato comigo.

salatiel
Posts: 2
Joined: 2013/04/12 18:15:35

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by salatiel » 2013/07/06 22:51:58

Priscilla, me passe um email de contato.

kleberleal
Posts: 1
Joined: 2013/08/22 12:23:00

Re: APC Driver - SGM Protocol - Future Technology Devices International, Ltd FT232 USB-Serial (UART)

Post by kleberleal » 2013/08/22 12:26:06

Salatiel,
estou interessado no script python que voc? fez para ler o status da UPS.
Me passe tamb?m, por favor.

kleber.leal+centos@gmail.com

Kleber

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Salathiel,
I'm interested in the python script you made to read the status of the UPS.
Pass me too, please.

kleber.leal+centos@gmail.com

Kleber

mmartinho
Posts: 1
Joined: 2013/12/09 22:12:34

Re: APC Driver - SGM Protocol - Future Technology Devices In

Post by mmartinho » 2013/12/09 22:30:01

Salatiel, eu também comprei um Nobreak APC "BR", que na verdade é Microsol, tentei o software da própria APC um tal de SGM LITE sem sucesso, gostaria de saber se poderia compartilhar comigo o seu script para monitorar o status do nobreak?
Last edited by mmartinho on 2014/10/07 19:53:34, edited 1 time in total.

melcon
Posts: 1
Joined: 2014/02/21 02:24:44

Re: APC Driver - SGM Protocol - Future Technology Devices In

Post by melcon » 2014/02/21 02:28:50

Would you please be so kind and send me the script for the UPS?

ambriento+ups at gmail dot com

Thanks in advance.

Post Reply