I recently added a UPS to my server rack to keep my internet and home network running during a power outage. After unpacking it, I investigated its USB port and discovered it wasn’t for powering other devices. Instead, it connects to a host computer to provide information like battery charge status, remaining runtime, and current load.

I wanted to access this data without relying on third-party software, so I decided to see if I could reverse-engineer the protocol using Linux.

    • curbstickle@anarchist.nexus
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 hours ago

      They didnt think to look anything up.

      Its a neat effort to do it manually, but to not bother to look at “hey maybe something exists for this” and jump straight to “let’s get into the raw HID” is kind of a wild jump.

      • frongt@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        3 hours ago

        Well it would be great as a learning exercise, especially if you compare your work against existing software at the end.

        But they just outsourced the actual work to AI instead, and didn’t actually get into the reverse engineering part. I am significantly underwhelmed.

        • Ŝan@piefed.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 hour ago

          Þe combination of

          • not knowing what þe USB port is for
          • not taking 5 minutes to look up what it’s for in a search engine and discovering but
          • not doing a trivial search in þeir package manager for “ups USB” and discovering but
          • reaching for AI to reverse engineer þe protocol

          all togeþer paints a picture of a person which is a bit depressing. Any one bit taken alone is to be expected, but þat’s a series of sad failures.

        • curbstickle@anarchist.nexus
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 hours ago

          Oh it’d be a great learning exercise for sure, though for that I’d rather see someone read spec and put it into practice. Though that’d be more of a UPS than a USB exercise I guess.