• APC Powerchute

    From Davey@21:1/5 to All on Sun May 8 15:04:38 2022
    I am trying to communicate with my APC UPS. It has a data port, and
    comes with an RJ45-to-USB cable (the first time I have seen one of
    them). My laptop runs Ubuntu 18.04LTS.

    If I run the laptop and then plug in the AP cable, it doesn't appear
    to see it at all, it doesn't show any sign of it, and a command of
    'lshw' shows nothing, as does 'lsusb'.
    If I boot up with the cable attached, then it defaults into
    maintenance mode. The 'lshw' command then shows the APC device
    attached, but I don't know how to go further. Any attempt at rebooting
    just goes back to the same maintenance mode.

    I know I don't know much about this aspect of Command Line Programming,
    any help would be much appreciated.

    --
    Davey.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Coen@21:1/5 to Davey on Sun May 8 18:36:44 2022
    Hello Davey!

    Sunday May 08 2022 15:04, Davey wrote to All:

    I am trying to communicate with my APC UPS. It has a data port, and
    comes with an RJ45-to-USB cable (the first time I have seen one of
    them). My laptop runs Ubuntu 18.04LTS.

    If I run the laptop and then plug in the AP cable, it doesn't appear
    to see it at all, it doesn't show any sign of it, and a command of
    'lshw' shows nothing, as does 'lsusb'.
    If I boot up with the cable attached, then it defaults into
    maintenance mode. The 'lshw' command then shows the APC device
    attached, but I don't know how to go further. Any attempt at rebooting
    just goes back to the same maintenance mode.

    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up on their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is 3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a Smart UPS (cabled via usb).



    Vincent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Davey on Sun May 8 18:23:07 2022
    Davey wrote:

    I am trying to communicate with my APC UPS.

    <https://networkupstools.org>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davey@21:1/5 to Vincent Coen on Sun May 8 19:32:39 2022
    On Sun, 08 May 2022 18:36:44 +0100
    "Vincent Coen" <VBCoen@gmail.com> wrote:

    Hello Davey!

    Sunday May 08 2022 15:04, Davey wrote to All:

    I am trying to communicate with my APC UPS. It has a data port, and
    comes with an RJ45-to-USB cable (the first time I have seen one of
    them). My laptop runs Ubuntu 18.04LTS.

    If I run the laptop and then plug in the AP cable, it doesn't
    appear to see it at all, it doesn't show any sign of it, and a
    command of 'lshw' shows nothing, as does 'lsusb'.
    If I boot up with the cable attached, then it defaults into
    maintenance mode. The 'lshw' command then shows the APC device
    attached, but I don't know how to go further. Any attempt at
    rebooting just goes back to the same maintenance mode.

    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up on
    their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is 3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a Smart
    UPS (cabled via usb).



    Vincent



    Thanks, Vince and Andy, both. I'll follow both up and see where they
    lead.
    --
    Davey.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davey@21:1/5 to Vincent Coen on Wed May 11 11:32:24 2022
    On Sun, 08 May 2022 18:36:44 +0100
    "Vincent Coen" <VBCoen@gmail.com> wrote:

    Hello Davey!

    Sunday May 08 2022 15:04, Davey wrote to All:

    I am trying to communicate with my APC UPS. It has a data port, and
    comes with an RJ45-to-USB cable (the first time I have seen one of
    them). My laptop runs Ubuntu 18.04LTS.

    If I run the laptop and then plug in the AP cable, it doesn't
    appear to see it at all, it doesn't show any sign of it, and a
    command of 'lshw' shows nothing, as does 'lsusb'.
    If I boot up with the cable attached, then it defaults into
    maintenance mode. The 'lshw' command then shows the APC device
    attached, but I don't know how to go further. Any attempt at
    rebooting just goes back to the same maintenance mode.

    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up on
    their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is 3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a Smart
    UPS (cabled via usb).



    Vincent



    I have installed apcupsd, and it seems to run, but I am having trouble
    still getting the communication working. More later, after I can get
    back to it and try again.
    I'm using : http://www.apcupsd.org/manual/manual.html#choosing-a-configuration-type
    as my guide.
    --
    Davey.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Coen@21:1/5 to Davey on Wed May 11 14:03:20 2022
    Hello Davey!

    Wednesday May 11 2022 11:32, Davey wrote to All:


    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up
    on their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is
    3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a Smart
    UPS (cabled via usb).


    I have installed apcupsd, and it seems to run, but I am having trouble
    still getting the communication working. More later, after I can get
    back to it and try again.
    I'm using : http://www.apcupsd.org/manual/manual.html#choosing-a-configuration-typ
    e as my guide.

    The first consideration is what comms link does the ups have - all the
    one's used her use USB when used with SMART UPS's so the comms is straight forward so here is the contents from my main conf files but FIRST change
    the file 'changeme' : i.e., on mine its :

    first few lines on that need changes and note I use Linux so if you use
    Windows it may need to be different :

    --
    SYSADMIN=vince
    APCUPSD_MAIL="mail"

    HOSTNAME=`study.applewood`
    --

    For apcupsd.conf again the important bits:

    --
    UPSNAME SMT1000i <<<< change for your model
    UPSCABLE 940-0625A <<<< USB cable
    UPSTYPE modbus
    #apcsmart
    DEVICE /dev/ttyS0

    ONBATTERYDELAY 10
    BATTERYLEVEL 25
    MINUTES 15
    TIMEOUT 0
    ANNOY 300
    ANNOYDELAY 180
    NOLOGON disable
    KILLDELAY 0

    --

    There are more for this file and if you want the lot just say so.

    There are other files / scripts that I have changed but regardless when you
    are happy, run the test prog, apctest this is a interactive program and
    will validate your changes.



    Vincent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davey@21:1/5 to Vincent Coen on Wed May 11 17:27:06 2022
    On Wed, 11 May 2022 14:03:20 +0100
    "Vincent Coen" <VBCoen@gmail.com> wrote:

    Hello Davey!

    Wednesday May 11 2022 11:32, Davey wrote to All:


    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up
    on their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is
    3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a
    Smart UPS (cabled via usb).


    I have installed apcupsd, and it seems to run, but I am having
    trouble still getting the communication working. More later, after
    I can get back to it and try again.
    I'm using : http://www.apcupsd.org/manual/manual.html#choosing-a-configuration-typ
    e as my guide.

    The first consideration is what comms link does the ups have - all the
    one's used her use USB when used with SMART UPS's so the comms is
    straight forward so here is the contents from my main conf files but
    FIRST change the file 'changeme' : i.e., on mine its :

    first few lines on that need changes and note I use Linux so if you
    use Windows it may need to be different :


    Briefly, I use Ubuntu, so that is at least one thing less to worry
    about.
    I'll take your file and see what I need to do with it. More later, many
    thanks.
    --
    Davey.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davey@21:1/5 to Vincent Coen on Sat May 14 12:25:57 2022
    On Wed, 11 May 2022 14:03:20 +0100
    "Vincent Coen" <VBCoen@gmail.com> wrote:

    Hello Davey!

    Wednesday May 11 2022 11:32, Davey wrote to All:


    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave up
    on their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is
    3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a
    Smart UPS (cabled via usb).


    I have installed apcupsd, and it seems to run, but I am having
    trouble still getting the communication working. More later, after
    I can get back to it and try again.
    I'm using : http://www.apcupsd.org/manual/manual.html#choosing-a-configuration-typ
    e as my guide.

    The first consideration is what comms link does the ups have - all the
    one's used her use USB when used with SMART UPS's so the comms is
    straight forward so here is the contents from my main conf files but
    FIRST change the file 'changeme' : i.e., on mine its :

    first few lines on that need changes and note I use Linux so if you
    use Windows it may need to be different :


    Vince,
    Well, I have edited the two files referenced to match your settings as
    far as I can see, with changes for my unit, of course. Any other
    settings that might be effective would be appreciated. I haven't
    connected up to the UPS again yet, I'll wait until I think I am ready.
    Thanks for your help.

    --
    Davey.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Coen@21:1/5 to Davey on Sun May 15 14:27:02 2022
    Hello Davey!

    Saturday May 14 2022 12:25, Davey wrote to All:

    <1652274200@f1.n250.z2.fidonet.ftn>
    "Vincent Coen" <VBCoen@gmail.com> wrote:

    Hello Davey!

    Wednesday May 11 2022 11:32, Davey wrote to All:


    I know I don't know much about this aspect of Command Line
    Programming, any help would be much appreciated.

    I use APC UPS's unit too and have done for many year but I gave
    up
    on their software a very long time ago after switching to Linux.

    I recommend using apcupsd which on my system (Mageia v8) is
    3.14.14-3.

    If your distro does not have it or is very old try :

    http://www.apcupsd.org and current version IS 3.14.14.

    If you need help with the configs I can post mine as used on a
    Smart UPS (cabled via usb).


    I have installed apcupsd, and it seems to run, but I am having
    trouble still getting the communication working. More later,
    after
    I can get back to it and try again.
    I'm using :

    http://www.apcupsd.org/manual/manual.html#choosing-a-configuration-t
    yp
    e as my guide.

    The first consideration is what comms link does the ups have - all
    the one's used her use USB when used with SMART UPS's so the comms
    is straight forward so here is the contents from my main conf files
    but FIRST change the file 'changeme' : i.e., on mine its : first
    few lines on that need changes and note I use Linux so if you use
    Windows it may need to be different :

    Vince,
    Well, I have edited the two files referenced to match your settings as
    far as I can see, with changes for my unit, of course. Any other
    settings that might be effective would be appreciated. I haven't
    connected up to the UPS again yet, I'll wait until I think I am ready. Thanks for your help.


    If you email me with yours I will archive my changed config files and send
    them to you - You will need to read and if needed change each to match your hardware (UPS).



    Vincent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)