klaasdc / apcups-serial-test

Test application to communicate with an APC UPS over RS232 with the Microlink protocol
https://sites.google.com/site/klaasdc/apc-smartups-decode
GNU General Public License v2.0
18 stars 1 forks source link

Request for Hex Dump #2

Open Maxqia opened 9 months ago

Maxqia commented 9 months ago

Hello! I've done some more reverse engineering into the MicroLink protocol. It seems like the first pages that are recieved from the UPS are a description of the data types and the data available for a specific UPS model. I'm wondering if you have a hex dump of the pages from your UPS so I could look at it to try to figure out which types are what. Thanks! Max

Neon27 commented 9 months ago

Hi Max!

It has been a LOOOONG time haha. I entertained this project years ago, and no longer work for that company.

However, I managed to dig up some of my old research, have a look at the attached EXCEL sheet. I think the information you're looking for is on sheet "Instruction Set".

You are correct, when you first connect to the UPS it performs a MASSIVE memory dump, and you get all that information from that initial transaction. I think it completes its scan when it reaches memory location 7F (HEX). I have noticed that the location of the data doesn't always reside in the same address ID's, depending on the version of the firmware, the whole memory map shifts up or down.

Kind regards, Ed

On Tue, Jan 9, 2024 at 12:41 AM Max @.***> wrote:

Hello! I've done some more reverse engineering into the MicroLink protocol. It seems like the first pages that are recieved from the UPS are a description of the data types and the data available for a specific UPS model. I'm wondering if you have a hex dump of the pages from your UPS so I could look at it to try to figure out which types are what. Thanks! Max

— Reply to this email directly, view it on GitHub https://github.com/klaasdc/apcups-serial-test/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3JP3Z6CH2ZPQQGSWSXZJLYNTJ7XAVCNFSM6AAAAABBSQ7DLOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TCNRWGU4DENA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

klaasdc commented 9 months ago

Hi Max (and Ed),

I still have the logged serial output in my backups. I will dig them out in the next days.

Kind regards Klaas

klaasdc commented 9 months ago

Attached is the recorded serial communication between the UPS and APC Powerchute: serial_capture_apcups.zip

Maxqia commented 7 months ago

@Neon27 can you attach it via github, seems like it got lost via email