DualSense-Windows icon indicating copy to clipboard operation
DualSense-Windows copied to clipboard

Which CRC32 algorithm for PS5 Controller BT package? [Help wanted]

Open nonobody15 opened this issue 1 year ago • 2 comments

Hi, i am trying to use the PS5 controller via bluetooth with a microcontroller (ESP32) and the Arduino framework. This library offers the possibility to receive and process the input from the controller without problems. The previous version (for the PS4 controller) also offers the functionality to send an output and for example control the RGB LED of the controller. Unfortunately, this function is not adapted in the library for the PS5 controller, so it does not work. Therefore I try to implement this function based on this repository. I have already posted my current status here. My question: Which algorithm must be used to calculate the CRC32 checksum? I have of course looked at the algorithm in DS_CRC32.cpp. However, when I run it on my ESP32 (32bit), it gives a result that I can't find in this online calculator that I use as a reference. Therefore, my question is how I can check whether the ESP32 calculates the checksum correctly. I would be very happy if someone can help me further. If there are any uncertainties regarding my question, please bring them to my attention.

nonobody15 avatar Mar 18 '23 15:03 nonobody15