Firstly, you have to search what pins are the same.
Then ground pins. It is easy, 0 Ohm to the metal rim. Then the power, it is usually on the side part of the connector.
Then search the pairs: approx. 100 Ohms resistance is between them.
No other pins you need.
Usually, serially, after pairs there is ground.
Pairs start (from the direction pin1) with minus (-)