Skip to content

Anker prime#16

Merged
flip-dots merged 31 commits intomainfrom
anker_prime
Mar 30, 2026
Merged

Anker prime#16
flip-dots merged 31 commits intomainfrom
anker_prime

Conversation

@flip-dots
Copy link
Copy Markdown
Owner

This PR adds support for the Anker Prime 160w charger and probably the 250w one as well which was meant to be supported but almost certainly did not work.

Anker Prime devices seem to use a somewhat similar but also very different protocol. The encryption scheme is pretty different, it uses AES GCM instead of AES CBC, uses a MAC to validate packets, encrypts the initial negotiation using a static key, uses 12-bytes for a nonce instead of 16-bytes as an IV and uses no padding, but the overall packet structure is the same, anyway you get the picture.

As it stands this just reports telemetry data but I will probably add some controls later, and probably move things about as I decide how to best handle these two different device types/classes (Solix and Prime).

See #9 for context.

This was referenced Mar 22, 2026
@flip-dots
Copy link
Copy Markdown
Owner Author

This PR is not perfect, there are some code smells I plan on fixing and I am still not sure about the structure, but since others are working on adding support for other devices #28 #27 I think its probably best to merge this now for its improved logging and better structure which make it easier to override specific functions for classes and fix the other issues later under #19 when I get around to cleaning things up. Its not like this is super unstable, I have been testing it with my prime charger 160w and its been super solid.

@flip-dots flip-dots merged commit e27eb4b into main Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant