Just dropping by to show my gratitude and post a more recent update on this. I had no end of problems "decoding" the wiring on my DS-2CD2383G0 which stopped functioning after relocation. I assume during the removal and installation the pigtail became damaged.
One thing all the various threads on the forums talk about is "cutting off the RJ45 end", but none really go to town on replacing the entire pigtail, or rewiring from the ZH JST connector.
On my failed DS-2CD2383G0 I started by chopping off the RJ45 and simply testing the wiring. I had no joy, and ended up performing various cuts further down the cabling, until I was pretty much left with just the ZH on the PCB. By this point the frustration was setting in and out came the swear words, and multimeter.
Even then I was struggling. There was something about the wording in a post on another forum "
Note - on the later (G1) cameras, Hikvision have swapped pins 4 and 5 (Grey and Purple)." that kept running over my head... mine's not a G1, but, it's relatively new
ish...
One thing that stumped me, is that unlike me, I'd failed to take screenshots of the camera and wiring before I started to chop things up. Which didn't help my reverse engineering, and finding a close up picture of the ZH JST pins/cable wasn't easy, I had to rely on grainy/paused YouTube videos.
Anyway, after a lot of trial and error, I was able to get the camera up and running. Here is it in images... hopefully this might help someone, if not myself in a few years should I need to revisit this. What this doesn't show is the 2187 attempts I had prior. This is effectively "the good", ie. the working state.
One thing that sent me down the right path, was shaving back the original RJ45 connector to review the pinout. Pin 4 being purple contradicted things I'd read... so I swapped them at the ZH JST end and things started to look up.
Pay close attention to this table... this is what I ended up with.
...and also see the differences in the image of the ZH JST and the RJ45 end shown below.
Wiring up like this (as above) finally kicked things to life. The LED on the PCB finally started to light up...
First images! Finally...
Now we're all good, time to strip things back and wire up a makeshift female ethernet port.
Trusty thumbs up.