Skip to content

Commit

Permalink
adding all checksum algorithm informations
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil242 committed Apr 12, 2022
1 parent 5471714 commit 3f16f43
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions Protocol
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
This the UDP protocol of Besen WB with APP


**************************************************************************************************
Packet checksum
**************************************************************************************************

Each UDP packets have a checksum at the end, stored before the 2 last constant bytes.
The algorithm is quite simple (and scary!):
You just need to add each byte of the packet, byte per byte, from the first 0601… to the last byte before the checksum.
Each round you need to do a modulus 0X10000 to be sure the sum didn’t go behind 16 bits. And that’s it!
See the C code example in the folder Checksum.
Checksum is stored in Big Endian.


**************************************************************************************************
Command: Stop Charging
**************************************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ See for example https://community.home-assistant.io/t/wallbox-pulsar-plus-integr
- Understanding how the phone and the wallbox exchange data
- Replay successfully a past charging command, with an old timestamp without modifying it
- Stop charging command has been reversed engineered
- Analysed SAE J1772 max control pilot usage for max current.
- CRC algorithm reversed, understood and implemented
- Analysed SAE J1772 max control pilot usage for max current

#### In Progress:
- Start charging command reserve on the go
- CRC algorithm reversed and understood, but needs more checks
- Reversing the only available firmware for ARM board (unknown model)

#### TODO:
Expand Down

0 comments on commit 3f16f43

Please sign in to comment.